Home
last modified time | relevance | path

Searched refs:g (Results 1 – 25 of 137) sorted by relevance

123456

/lvgl-latest/src/core/
Dlv_group.c30 static void lv_group_refocus(lv_group_t * g);
31 static lv_indev_t * get_indev(const lv_group_t * g);
164 lv_group_t * g = lv_obj_get_group(obj); in lv_group_remove_obj() local
165 if(g == NULL) return; in lv_group_remove_obj()
170 if(g->obj_focus && *g->obj_focus == obj) { in lv_group_remove_obj()
171 if(g->frozen) g->frozen = 0; in lv_group_remove_obj()
174 … if(lv_ll_get_head(&g->obj_ll) == g->obj_focus && lv_ll_get_tail(&g->obj_ll) == g->obj_focus) { in lv_group_remove_obj()
175 lv_obj_send_event(*g->obj_focus, LV_EVENT_DEFOCUSED, get_indev(g)); in lv_group_remove_obj()
179 lv_group_refocus(g); in lv_group_remove_obj()
186 if(g->obj_focus && *g->obj_focus == obj) { in lv_group_remove_obj()
[all …]
/lvgl-latest/src/indev/
Dlv_indev_gesture.c432 lv_indev_gesture_t * g = info; in process_touch_event() local
437 motion_idx = get_motion_idx(touch->id, g); in process_touch_event()
441 if(g->finger_cnt == LV_GESTURE_MAX_POINTS) { in process_touch_event()
447 motion = &g->motions[g->finger_cnt]; in process_touch_event()
455 g->finger_cnt++; in process_touch_event()
460 if(motion_idx == g->finger_cnt - 1) { in process_touch_event()
463 motion = get_motion(touch->id, g); in process_touch_event()
471 len = (g->finger_cnt - 1) - motion_idx; in process_touch_event()
472 lv_memmove(g->motions + motion_idx, in process_touch_event()
473 g->motions + motion_idx + 1, in process_touch_event()
[all …]
Dlv_indev.c769 lv_group_t * g = i->group; in indev_keypad_proc() local
770 if(g == NULL) return; in indev_keypad_proc()
772 indev_obj_act = lv_group_get_focused(g); in indev_keypad_proc()
790 … lv_group_set_editing(g, false); /*Editing is not used by KEYPAD is be sure it is disabled*/ in indev_keypad_proc()
791 lv_group_focus_next(g); in indev_keypad_proc()
796 … lv_group_set_editing(g, false); /*Editing is not used by KEYPAD is be sure it is disabled*/ in indev_keypad_proc()
797 lv_group_focus_prev(g); in indev_keypad_proc()
804 lv_group_send_data(g, LV_KEY_ENTER); in indev_keypad_proc()
812 lv_group_send_data(g, LV_KEY_ESC); in indev_keypad_proc()
819 lv_group_send_data(g, data->key); in indev_keypad_proc()
[all …]
/lvgl-latest/src/misc/
Dlv_color.c143 uint8_t r, g, b; in lv_color_hsv_to_rgb() local
161 g = t; in lv_color_hsv_to_rgb()
166 g = v; in lv_color_hsv_to_rgb()
171 g = v; in lv_color_hsv_to_rgb()
176 g = q; in lv_color_hsv_to_rgb()
181 g = p; in lv_color_hsv_to_rgb()
186 g = p; in lv_color_hsv_to_rgb()
191 lv_color_t result = lv_color_make(r, g, b); in lv_color_hsv_to_rgb()
198 uint16_t g = ((uint32_t)g8 << 10) / 255; in lv_color_rgb_to_hsv() local
201 uint16_t rgbMin = r < g ? (r < b ? r : b) : (g < b ? g : b); in lv_color_rgb_to_hsv()
[all …]
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_vector.c38 uint8_t g; member
66 color->g = c->green; in lv_color_to_tvg()
193 stops[i].g = s->color.green; in _setup_gradient()
206 static void _set_paint_stroke_gradient(Tvg_Paint * obj, const lv_vector_gradient_t * g, const lv_ma… in _set_paint_stroke_gradient() argument
209 if(g->style == LV_VECTOR_GRADIENT_STYLE_RADIAL) { in _set_paint_stroke_gradient()
211 tvg_radial_gradient_set(grad, g->cx, g->cy, g->cr); in _set_paint_stroke_gradient()
212 _setup_gradient(grad, g, m); in _set_paint_stroke_gradient()
217 tvg_linear_gradient_set(grad, g->x1, g->y1, g->x2, g->y2); in _set_paint_stroke_gradient()
218 _setup_gradient(grad, g, m); in _set_paint_stroke_gradient()
228 tvg_shape_set_stroke_color(obj, c.r, c.g, c.b, c.a); in _set_paint_stroke()
[all …]
Dlv_draw_sw_letter.c121 …glyph_draw_dsc->glyph_data = lv_font_get_glyph_bitmap(glyph_draw_dsc->g, glyph_draw_dsc->_draw_buf… in draw_letter_cb()
137 …glyph_draw_dsc->glyph_data = lv_font_get_glyph_bitmap(glyph_draw_dsc->g, glyph_draw_dsc->_draw_buf… in draw_letter_cb()
148 .y = glyph_draw_dsc->g->box_h + glyph_draw_dsc->g->ofs_y in draw_letter_cb()
/lvgl-latest/src/draw/
Dlv_draw_label.c141 lv_font_glyph_dsc_t g; in lv_draw_character() local
142 lv_font_get_glyph_dsc(dsc->font, &g, unicode_letter, 0); in lv_draw_character()
147 a.x2 = a.x1 + g.adv_w; in lv_draw_character()
148 a.y2 = a.y1 + lv_font_get_line_height(g.resolved_font ? g.resolved_font : dsc->font); in lv_draw_character()
179 lv_font_glyph_dsc_t g; in lv_draw_letter() local
180 lv_font_get_glyph_dsc(font, &g, dsc->unicode, 0); in lv_draw_letter()
182 font = g.resolved_font ? g.resolved_font : dsc->font; in lv_draw_letter()
187 a.x2 = a.x1 + g.adv_w; in lv_draw_letter()
190 dsc->pivot.x = g.adv_w / 2 ; in lv_draw_letter()
409 uint8_t r, g, b; in lv_draw_label_iterate_characters() local
[all …]
/lvgl-latest/tests/src/test_cases/widgets/
Dtest_slider.c13 static lv_group_t * g = NULL; variable
27 g = lv_group_create(); in setUp()
28 lv_indev_set_group(lv_test_encoder_indev, g); in setUp()
95 lv_group_add_obj(g, sliderNormalMode); in test_slider_range_mode_should_leave_edit_mode_if_released()
96 lv_group_set_editing(g, true); in test_slider_range_mode_should_leave_edit_mode_if_released()
107 TEST_ASSERT_FALSE(lv_group_get_editing(g)); in test_slider_range_mode_should_leave_edit_mode_if_released()
115 lv_group_add_obj(g, sliderRangeMode); in test_slider_range_mode_should_not_leave_edit_mode_if_released_with_no_left_knob_focus()
116 lv_group_set_editing(g, true); in test_slider_range_mode_should_not_leave_edit_mode_if_released_with_no_left_knob_focus()
126 TEST_ASSERT(lv_group_get_editing(g)); in test_slider_range_mode_should_not_leave_edit_mode_if_released_with_no_left_knob_focus()
135 lv_group_add_obj(g, sliderNormalMode); in test_slider_normal_mode_should_leave_edit_mode_if_released()
[all …]
Dtest_spinbox.c12 static lv_group_t * g = NULL; variable
29 g = lv_group_create(); in setUp()
30 lv_indev_set_group(lv_test_encoder_indev, g); in setUp()
192 lv_group_add_obj(g, spinbox_events); in test_spinbox_event_key_encoder_indev_turn_right()
207 lv_group_add_obj(g, spinbox_events); in test_spinbox_event_key_encoder_indev_turn_left()
223 lv_group_add_obj(g, spinbox_events); in test_spinbox_event_key_encoder_indev_editing_group()
224 lv_group_set_editing(g, true); in test_spinbox_event_key_encoder_indev_editing_group()
252 lv_group_add_obj(g, spinbox_events); in test_spinbox_event_key_encoder_indev_editing_group_left_step_direction()
253 lv_group_set_editing(g, true); in test_spinbox_event_key_encoder_indev_editing_group_left_step_direction()
293 lv_group_add_obj(g, spinbox_events); in test_spinbox_zero_crossing()
Dtest_dropdown.c167 lv_group_t * g = lv_group_create(); in test_dropdown_keypad() local
168 lv_indev_set_group(lv_test_keypad_indev, g); in test_dropdown_keypad()
173 lv_group_add_obj(g, dd1); in test_dropdown_keypad()
178 lv_group_add_obj(g, dd2); in test_dropdown_keypad()
262 lv_group_delete(g); in test_dropdown_keypad()
269 lv_group_t * g = lv_group_create(); in test_dropdown_encoder() local
270 lv_indev_set_group(lv_test_encoder_indev, g); in test_dropdown_encoder()
275 lv_group_add_obj(g, dd1); in test_dropdown_encoder()
280 lv_group_add_obj(g, dd2); in test_dropdown_encoder()
318 lv_group_delete(g); in test_dropdown_encoder()
/lvgl-latest/src/libs/thorvg/
DtvgSvgSceneBuilder.cpp93 static unique_ptr<LinearGradient> _applyLinearGradientProperty(SvgStyleGradient* g, const Box& vBox… in _applyLinearGradientProperty() argument
99 bool isTransform = (g->transform ? true : false); in _applyLinearGradientProperty()
101 if (isTransform) finalTransform = *g->transform; in _applyLinearGradientProperty()
103 if (g->userSpace) { in _applyLinearGradientProperty()
104 g->linear->x1 = g->linear->x1 * vBox.w; in _applyLinearGradientProperty()
105 g->linear->y1 = g->linear->y1 * vBox.h; in _applyLinearGradientProperty()
106 g->linear->x2 = g->linear->x2 * vBox.w; in _applyLinearGradientProperty()
107 g->linear->y2 = g->linear->y2 * vBox.h; in _applyLinearGradientProperty()
119 fillGrad->linear(g->linear->x1, g->linear->y1, g->linear->x2, g->linear->y2); in _applyLinearGradientProperty()
120 fillGrad->spread(g->spread); in _applyLinearGradientProperty()
[all …]
DtvgSwRaster.cpp139 static inline uint32_t _abgrJoin(uint8_t r, uint8_t g, uint8_t b, uint8_t a) in _abgrJoin() argument
141 return (a << 24 | b << 16 | g << 8 | r); in _abgrJoin()
145 static inline uint32_t _argbJoin(uint8_t r, uint8_t g, uint8_t b, uint8_t a) in _argbJoin() argument
147 return (a << 24 | r << 16 | g << 8 | b); in _argbJoin()
330 …SwSurface* surface, const SwBBox& region, SwMask maskOp, uint8_t r, uint8_t g, uint8_t b, uint8_t … in _rasterCompositeMaskedRect() argument
349 …SwSurface* surface, const SwBBox& region, SwMask maskOp, uint8_t r, uint8_t g, uint8_t b, uint8_t … in _rasterDirectMaskedRect() argument
370 static bool _rasterMaskedRect(SwSurface* surface, const SwBBox& region, uint8_t r, uint8_t g, uint8… in _rasterMaskedRect() argument
378 …(surface->compositor->method)) return _rasterDirectMaskedRect(surface, region, maskOp, r, g, b, a); in _rasterMaskedRect()
379 else return _rasterCompositeMaskedRect(surface, region, maskOp, r, g, b, a); in _rasterMaskedRect()
384 static bool _rasterMattedRect(SwSurface* surface, const SwBBox& region, uint8_t r, uint8_t g, uint8… in _rasterMattedRect() argument
[all …]
DtvgShape.cpp264 Result Shape::fill(uint8_t r, uint8_t g, uint8_t b, uint8_t a) noexcept in fill() argument
272 …if (r == pImpl->rs.color[0] && g == pImpl->rs.color[1] && b == pImpl->rs.color[2] && a == pImpl->r… in fill()
275 pImpl->rs.color[1] = g; in fill()
297 Result Shape::fillColor(uint8_t* r, uint8_t* g, uint8_t* b, uint8_t* a) const noexcept in fillColor() argument
299 pImpl->rs.fillColor(r, g, b, a); in fillColor()
331 Result Shape::stroke(uint8_t r, uint8_t g, uint8_t b, uint8_t a) noexcept in stroke() argument
333 pImpl->strokeColor(r, g, b, a); in stroke()
338 Result Shape::strokeColor(uint8_t* r, uint8_t* g, uint8_t* b, uint8_t* a) const noexcept in strokeColor() argument
340 if (!pImpl->rs.strokeColor(r, g, b, a)) return Result::InsufficientCondition; in strokeColor()
DtvgSwRasterC.h66 static bool inline cRasterTranslucentRle(SwSurface* surface, const SwRle* rle, uint8_t r, uint8_t g in cRasterTranslucentRle() argument
72 auto color = surface->join(r, g, b, a); in cRasterTranslucentRle()
100 …ranslucentRect(SwSurface* surface, const SwBBox& region, uint8_t r, uint8_t g, uint8_t b, uint8_t … in cRasterTranslucentRect() argument
107 auto color = surface->join(r, g, b, a); in cRasterTranslucentRect()
DtvgRender.h202 void fillColor(uint8_t* r, uint8_t* g, uint8_t* b, uint8_t* a) const in fillColor()
205 if (g) *g = color[1]; in fillColor()
224 bool strokeColor(uint8_t* r, uint8_t* g, uint8_t* b, uint8_t* a) const in strokeColor()
229 if (g) *g = stroke->color[1]; in strokeColor()
DtvgLottieModel.cpp207 cs.g = (uint8_t)nearbyint((*color.input)[cidx + 2] * 255.0f); in populate()
215 cs.g = (uint8_t)nearbyint((*color.input)[cidx + 2] * 255.0f); in populate()
230 … cs.g = lerp<uint8_t>(output.last().g, (uint8_t)nearbyint((*color.input)[cidx + 2] * 255.0f), p); in populate()
234 cs.g = (uint8_t)nearbyint((*color.input)[cidx + 2] * 255.0f); in populate()
246 cs.g = (uint8_t)nearbyint((*color.input)[cidx + 2] * 255.0f); in populate()
259 cs.g = output.last().g; in populate()
261 } else cs.r = cs.g = cs.b = 255; in populate()
DtvgText.cpp98 Result Text::fill(uint8_t r, uint8_t g, uint8_t b) noexcept in fill() argument
100 return pImpl->shape->fill(r, g, b); in fill()
/lvgl-latest/src/draw/nema_gfx/
Dlv_draw_nema_gfx_label.c161 …float scale = FT_F26DOT6_TO_PATH_SCALE(lv_freetype_outline_get_scale(glyph_draw_dsc->g->resolved_f… in _draw_nema_gfx_outline()
167 nema_mat3x3_translate(matrix, pos.x - glyph_draw_dsc->g->ofs_x, in _draw_nema_gfx_outline()
168 pos.y + glyph_draw_dsc->g->box_h + glyph_draw_dsc->g->ofs_y); in _draw_nema_gfx_outline()
274 uint32_t format = glyph_draw_dsc->g->format; in _bpp_nema_gfx_format()
333 int32_t w = glyph_draw_dsc->g->box_w; in _draw_nema_gfx_letter()
334 int32_t h = glyph_draw_dsc->g->box_h; in _draw_nema_gfx_letter()
368 if(lv_freetype_is_outline_font(glyph_draw_dsc->g->resolved_font)) { in _draw_nema_gfx_letter()
611 uint8_t r, g, b; in _draw_label_iterate_characters() local
613 g = (hex_char_to_num(buf[2]) << 4) + hex_char_to_num(buf[3]); in _draw_label_iterate_characters()
616 recolor = lv_color_make(r, g, b); in _draw_label_iterate_characters()
[all …]
/lvgl-latest/src/draw/vg_lite/
Dlv_draw_vg_lite_label.c137 …glyph_draw_dsc->glyph_data = lv_font_get_glyph_bitmap(glyph_draw_dsc->g, glyph_draw_dsc->_draw_buf… in draw_letter_cb()
144 if(lv_freetype_is_outline_font(glyph_draw_dsc->g->resolved_font)) { in draw_letter_cb()
145 …glyph_draw_dsc->glyph_data = lv_font_get_glyph_bitmap(glyph_draw_dsc->g, glyph_draw_dsc->_draw_buf… in draw_letter_cb()
153 …glyph_draw_dsc->glyph_data = lv_font_get_glyph_bitmap(glyph_draw_dsc->g, glyph_draw_dsc->_draw_buf… in draw_letter_cb()
211 …vg_lite_translate(image_area.x1 + dsc->pivot.x, image_area.y1 + (dsc->g->box_h + dsc->g->ofs_y), &… in draw_letter_bitmap()
213 vg_lite_translate(-dsc->pivot.x, -dsc->g->box_h - dsc->g->ofs_y, &matrix); in draw_letter_bitmap()
308 …const float scale = FT_F26DOT6_TO_PATH_SCALE(lv_freetype_outline_get_scale(dsc->g->resolved_font)); in draw_letter_outline()
316 vg_lite_translate(pos.x - dsc->g->ofs_x, pos.y + dsc->g->box_h + dsc->g->ofs_y, &matrix); in draw_letter_outline()
320 …vg_lite_translate(pos.x - dsc->g->ofs_x + dsc->pivot.x, pos.y + dsc->g->box_h + dsc->g->ofs_y, &ma… in draw_letter_outline()
/lvgl-latest/scripts/
DLVGLImage.py41 def color_pre_multiply(r, g, b, a, background): argument
46 return ((r * a + (255 - a) * br) >> 8, (g * a + (255 - a) * bg) >> 8,
267 for r, g, b in zip(R, G, B):
268 ret += [r, g, b]
298 for r, g, b, a in zip(R, G, B, A):
299 ret += [r, g, b, a]
588 def multiply(r, g, b, a): argument
589 r, g, b = (r * a) >> 8, (g * a) >> 8, (b * a) >> 8
590 return uint8_t(b) + uint8_t(g) + uint8_t(r) + uint8_t(a)
603 def multiply(b, g, r, a): argument
[all …]
/lvgl-latest/demos/keypad_encoder/
Dlv_demo_keypad_encoder.c34 static lv_group_t * g; variable
49 g = lv_group_create(); in lv_demo_keypad_encoder()
50 lv_group_set_default(g); in lv_demo_keypad_encoder()
61 lv_indev_set_group(indev, g); in lv_demo_keypad_encoder()
65 lv_indev_set_group(indev, g); in lv_demo_keypad_encoder()
173 lv_group_focus_freeze(g, true); in msgbox_create()
187 lv_group_focus_freeze(g, false); in msgbox_event_cb()
/lvgl-latest/docs/details/libs/
Dfs.rst13 - STDIO (Linux and Windows using C standard function .e.g ``fopen``, ``fread``)
14 - POSIX (Linux and Windows using POSIX function .e.g ``open``, ``read``)
15 - WIN32 (Windows using Win32 API function .e.g ``CreateFileA``, ``ReadFile``)
30 letter to ``LV_FS_..._LETTER`` (e.g. ``'S'``). After that you can access
31 files using that driver letter. E.g. ``"S:path/to/file.txt"``.
45 The **working directory** can be set with ``LV_FS_..._PATH``. E.g.
/lvgl-latest/src/font/
Dlv_font.c123 lv_font_glyph_dsc_t g; in lv_font_get_glyph_width() local
128 lv_font_get_glyph_dsc(font, &g, letter, letter_next); in lv_font_get_glyph_width()
129 return g.adv_w; in lv_font_get_glyph_width()
/lvgl-latest/src/drivers/wayland/
Dlv_wayland_smm.h90 #define SMM_GROUP_PROPERTIES(g) ((const struct smm_group_properties *)(g)) argument
/lvgl-latest/demos/high_res/
Dlv_demo_high_res_app_smart_meter.c244 int32_t g = lv_map(val, 0, 1000, 0, 255); in widget1_open_part1_anim_cb() local
245 int32_t ginv = 255 - g; in widget1_open_part1_anim_cb()
247 ? lv_color_make(g, g, g) : lv_color_make(ginv, ginv, ginv), 0); in widget1_open_part1_anim_cb()
249 ? lv_color_make(ginv, ginv, ginv) : lv_color_make(g, g, g), 0); in widget1_open_part1_anim_cb()
269 int32_t g = lv_map(val, 0, 1000, 0, 255); in widget1_open_part2_anim_cb() local
270 int32_t ginv = 255 - g; in widget1_open_part2_anim_cb()
272 ? lv_color_make(ginv, ginv, ginv) : lv_color_make(g, g, g), 0); in widget1_open_part2_anim_cb()
274 ? lv_color_make(g, g, g) : lv_color_make(ginv, ginv, ginv), 0); in widget1_open_part2_anim_cb()

123456