Lines Matching refs:widget

139 style property. If you use :cpp:expr:`lv_obj_set_x(widget, 20)` LVGL saves ``x=20``
148 lv_obj_remove_style_all(widget)
154 lv_obj_remove_style(widget, NULL, LV_PART_MAIN);
186 lv_obj_set_x(widget, 10); /* Separate... */
187 lv_obj_set_y(widget, 20);
188 lv_obj_set_pos(widget, 10, 20); /* Or in one function */
206 Inside parent widget
210 that "anchor", call :cpp:expr:`lv_obj_set_align(widget, LV_ALIGN_...)`. After
219 lv_obj_set_align(widget, LV_ALIGN_CENTER);
220 lv_obj_set_pos(widget, 10, 20);
223 lv_obj_align(widget, LV_ALIGN_CENTER, 10, 20);
244 lv_obj_center(widget);
247 lv_obj_align(widget, LV_ALIGN_CENTER, 0, 0);
259 lv_obj_align_to(widget, reference_widget, align, x, y);
284 the aligned widget if the reference widget later moves.
304 lv_obj_set_width(widget, 200); /* Separate... */
305 lv_obj_set_height(widget, 100);
306 lv_obj_set_size(widget, 200, 100); /* Or in one function */
313 lv_obj_set_height(widget, lv_pct(100));
330 lv_obj_set_content_width(widget, 50); /* The actual width: padding left + 50 + padding right */
331 lv_obj_set_content_height(widget, 30); /* The actual width: padding top + 30 + padding bottom */
338 int32_t w = lv_obj_get_width(widget);
339 int32_t h = lv_obj_get_height(widget);
340 int32_t content_w = lv_obj_get_content_width(widget);
341 int32_t content_h = lv_obj_get_content_height(widget);
351 larger. You can do this with :cpp:expr:`lv_obj_set_ext_click_area(widget, size)`.
509 lv_obj_set_height(widget, lv_pct(100));
510 lv_obj_add_style(widget, &style_max_height, LV_STATE_DEFAULT); //Limit the height to 200 px
521 lv_obj_set_height(widget, lv_pct(100));
522 …lv_obj_add_style(widget, &style_max_height, LV_STATE_DEFAULT); //Limit the height to half parent h…
543 :cpp:func:`lv_obj_set_layout` ``(widget, <LAYOUT_NAME>)`` sets the layout on a Widget.
570 …be added/removed with :cpp:expr:`lv_obj_add_flag(widget, FLAG)` and :cpp:expr:`lv_obj_remove_flag(
588 void my_layout_update(lv_obj_t * widget, void * user_data)