/lvgl-latest/demos/high_res/ |
D | lv_demo_high_res_app_smart_home.c | 140 lv_obj_t * widget = lv_obj_create(widgets); in create_widget1() local 141 lv_obj_remove_style_all(widget); in create_widget1() 142 lv_obj_set_size(widget, c->sz->card_long_edge, c->sz->card_long_edge); in create_widget1() 143 lv_obj_set_style_bg_image_src(widget, c->imgs[IMG_SMART_HOME_WIDGET1_BG], 0); in create_widget1() 144 lv_obj_set_style_pad_all(widget, c->sz->gap[7], 0); in create_widget1() 145 lv_obj_set_flex_flow(widget, LV_FLEX_FLOW_COLUMN); in create_widget1() 146 …lv_obj_set_flex_align(widget, LV_FLEX_ALIGN_SPACE_BETWEEN, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CEN… in create_widget1() 148 lv_obj_t * top_label = lv_label_create(widget); in create_widget1() 154 lv_obj_t * main_temp_box = lv_obj_create(widget); in create_widget1() 168 …lv_obj_t * outdoor_temp_box = lv_demo_high_res_simple_container_create(widget, true, c->sz->gap[2], in create_widget1() [all …]
|
D | lv_demo_high_res_app_ev_charging.c | 244 lv_obj_t * widget = lv_obj_create(widgets); in create_widget1() local 245 lv_obj_remove_style_all(widget); in create_widget1() 246 lv_obj_set_size(widget, c->sz->card_long_edge, c->sz->card_long_edge); in create_widget1() 247 lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_obj_bg_image_src_cb, widget, in create_widget1() 249 lv_obj_set_style_pad_all(widget, c->sz->gap[7], 0); in create_widget1() 250 lv_obj_set_flex_flow(widget, LV_FLEX_FLOW_COLUMN); in create_widget1() 252 …lv_obj_t * title_box = lv_demo_high_res_simple_container_create(widget, true, c->sz->gap[1], LV_FL… in create_widget1() 264 lv_obj_t * saved_box = lv_obj_create(widget); in create_widget1() 281 …lv_obj_t * spent_box = lv_demo_high_res_simple_container_create(widget, true, c->sz->gap[2], LV_FL… in create_widget1() 338 lv_obj_t * widget = lv_obj_create(widgets); in create_widget2() local [all …]
|
D | lv_demo_high_res_app_thermostat.c | 146 lv_obj_t * widget = lv_obj_create(widgets); in create_widget1() local 147 lv_obj_remove_style_all(widget); in create_widget1() 148 lv_obj_set_size(widget, c->sz->card_long_edge, c->sz->card_long_edge); in create_widget1() 149 lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_obj_bg_image_src_cb, widget, in create_widget1() 151 lv_obj_set_style_pad_all(widget, c->sz->gap[7], 0); in create_widget1() 152 lv_obj_set_flex_flow(widget, LV_FLEX_FLOW_COLUMN); in create_widget1() 153 …lv_obj_set_flex_align(widget, LV_FLEX_ALIGN_SPACE_BETWEEN, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_STAR… in create_widget1() 154 lv_obj_set_style_pad_row(widget, 18, 0); in create_widget1() 155 lv_obj_remove_flag(widget, LV_OBJ_FLAG_SCROLLABLE); in create_widget1() 157 lv_obj_t * title_label = lv_label_create(widget); in create_widget1() [all …]
|
D | lv_demo_high_res_app_smart_meter.c | 400 lv_obj_t * widget = lv_obj_create(widgets); in create_widget2() local 401 lv_obj_remove_style_all(widget); in create_widget2() 402 lv_obj_set_size(widget, c->sz->card_long_edge, c->sz->card_long_edge); in create_widget2() 403 lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_obj_bg_image_src_cb, widget, in create_widget2() 405 lv_obj_set_style_pad_all(widget, c->sz->gap[7], 0); in create_widget2() 406 lv_obj_set_flex_flow(widget, LV_FLEX_FLOW_COLUMN); in create_widget2() 407 …lv_obj_set_flex_align(widget, LV_FLEX_ALIGN_SPACE_BETWEEN, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_STAR… in create_widget2() 408 lv_obj_set_style_pad_row(widget, 18, 0); in create_widget2() 410 lv_obj_t * title_label = lv_label_create(widget); in create_widget2() 415 …lv_obj_t * usage_box = lv_demo_high_res_simple_container_create(widget, true, c->sz->gap[2], LV_FL… in create_widget2() [all …]
|
/lvgl-latest/scripts/ |
D | properties.py | 26 def __init__(self, widget, name, type, index, id): argument 27 self.widget = widget 74 properties_by_widget[property.widget].append(property) 77 properties_by_widget[property.widget].append(property) 79 for widget, properties in properties_by_widget.items(): 82 properties_by_widget[widget] = properties 104 for widget in sorted(properties_by_widget.keys()): 105 properties = properties_by_widget[widget] 110 if widget == 'style': 113 elif widget == "obj":
|
/lvgl-latest/docs/details/other-components/ |
D | obj_id.rst | 26 - :cpp:expr:`lv_obj_get_id(widget)`, 27 - :cpp:expr:`lv_obj_get_child_by_id(widget, id)`; 42 - :cpp:expr:`lv_obj_assign_id(class_p, widget)` will be called at the end of each 44 - :cpp:expr:`lv_obj_free_id(widget)` will be called at the end of the sequence when 51 :cpp:expr:`lv_obj_assign_id(class_p, widget)` 58 :cpp:expr:`lv_obj_free_id(widget)` 73 - :cpp:expr:`lv_obj_assign_id(class_p, widget)` 74 - :cpp:expr:`lv_obj_free_id(widget)` 75 - :cpp:expr:`lv_obj_set_id(widget, id)` 76 - :cpp:expr:`lv_obj_stringify_id(widget, buf, len)` [all …]
|
D | observer.rst | 151 It's also possible to save a target widget when subscribing to a subject. 152 In this case when widget is deleted, it will automatically unsubscribe from the subject. 154 …observer callback :cpp:expr:`lv_observer_get_target(observer)` can be used to get the saved widget. 158 …lv_observer_t * observer = lv_subject_add_observer_obj(&some_subject, some_observer_cb, widget, us… 177 To unsubscribe a widget from a given or all subject use: 181 lv_obj_remove_from_subject(widget, subject); /* `subject` can be NULL to unsubscribe from all */ 258 observer = lv_obj_bind_flag_if_eq(widget, &subject, LV_OBJ_FLAG_*, ref_value); 264 observer = lv_obj_bind_flag_if_not_eq(widget, &subject, LV_OBJ_FLAG_*, ref_value); 270 observer = lv_obj_bind_state_if_eq(widget, &subject, LV_STATE_*, ref_value); 276 observer = lv_obj_bind_state_if_not_eq(widget, &subject, LV_STATE_*, ref_value); [all …]
|
D | xml.rst | 32 - Constants are working for widget and style properties 138 The created widget is a normal LVGL widget that can be used like any other manually created widget. 159 These parameters can be set on a parent widget or provided by the user. 161 Additionally, it's possible to use the extended widget's attributes 162 (see ``<view extends="...">``) when a widget or component is created. 163 This means that components and widgets inherit the API of the extended widget 218 To make the widgets accessible from XML, an XML parser needs to be registered for each widget. 260 A widget XML process can be registered like 263 After this, a widget can be created like this:
|
D | snapshot.rst | 41 void update_snapshot(lv_obj_t * widget, lv_obj_t * img_snapshot) 47 snapshot = lv_snapshot_take(widget, LV_COLOR_FORMAT_ARGB8888); 55 ``lv_result_t lv_snapshot_take_to_draw_buf(lv_obj_t * widget, lv_color_format_t cf, lv_draw_buf_t *…
|
D | obj_property.rst | 92 - :cpp:type:`lv_result_t` :cpp:expr:`lv_obj_set_property(widget, lv_property_t * value)` 94 - :cpp:type:`lv_property_t` :cpp:expr:`lv_obj_get_property(widget, lv_prop_id_t id)` 96 - :cpp:type:`lv_result_t` :cpp:expr:`lv_obj_set_properties(widget, lv_property_t * values, count)` 116 Alternately, :cpp:expr:`lv_obj_set_property(widget, value)` could be called using 239 - :cpp:type:`lv_prop_id_t` :cpp:expr:`lv_obj_property_get_id(widget, name)` 253 :cpp:expr:`lv_obj_property_get_id(widget, name)`, if a name does exist in both lists,
|
/lvgl-latest/docs/details/base-widget/ |
D | scroll.rst | 36 :cpp:expr:`lv_obj_set_scrollbar_mode(widget, LV_SCROLLBAR_MODE_...)` sets the scrollbar mode on a W… 53 lv_obj_add_style(widget, &style_red, LV_PART_SCROLLBAR); 68 lv_obj_add_style(widget, &style_blue, LV_STATE_SCROLLED | LV_PART_SCROLLBAR); 93 lv_obj_add_style(widget, &style_scrollbar, LV_PART_SCROLLBAR); 125 :cpp:expr:`lv_obj_remove_flag(widget, LV_OBJ_FLAG_SCROLLABLE)`. 131 :cpp:expr:`lv_obj_set_scroll_dir(widget, LV_DIR_...)`. 197 :cpp:expr:`lv_obj_set_scroll_snap_x(widget, LV_SCROLL_SNAP_...)` and 198 :cpp:expr:`lv_obj_set_scroll_snap_y(widget, LV_SCROLL_SNAP_...)`. 236 - ``lv_obj_scroll_by(widget, x, y, LV_ANIM_ON/OFF)`` scroll by ``x`` and ``y`` values 237 - ``lv_obj_scroll_to(widget, x, y, LV_ANIM_ON/OFF)`` scroll to bring the given coordinate to the to… [all …]
|
D | coord.rst | 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); [all …]
|
D | layer.rst | 63 - Use :cpp:expr:`lv_obj_move_foreground(widget)` to bring a Widget to the foreground. 64 Similarly, use :cpp:expr:`lv_obj_move_background(widget)` to move it to the background. 65 - Use :cpp:expr:`lv_obj_move_to_index(widget, idx)` to move a Widget to a given index in the order … 69 …e top, to move forward (up): :cpp:expr:`lv_obj_move_to_index(widget, lv_obj_get_index(widget) - 1)` 72 - When :cpp:expr:`lv_obj_set_parent(widget, new_parent)` is used, ``widget`` will be on the foregro… 102 When the widget is transformed a larger part of the Widget needs to rendered to 104 widget as possible, but due to the nature of transformations no slicing is possible
|
D | event.rst | 25 The user can assign callback functions to a widget to process events. 59 lv_obj_add_event_cb(widget, my_event_cb_1, LV_EVENT_CLICKED, NULL); 60 lv_obj_add_event_cb(widget, my_event_cb_2, LV_EVENT_PRESSED, NULL); 61 …lv_obj_add_event_cb(widget, my_event_cb_3, LV_EVENT_ALL, NULL); /* No filtering, receive all… 68 lv_obj_add_event_cb(widget, increment_on_click, LV_EVENT_CLICKED, &num1); 69 lv_obj_add_event_cb(widget, increment_on_click, LV_EVENT_CLICKED, &num2); 89 uint32_t event_cnt = lv_obj_get_event_count(widget); 91 lv_event_dsc_t * event_dsc = lv_obj_get_event_dsc(widget, i); 93 lv_obj_remove_event(widget, i); 110 However, the *Special events* are specific to a particular widget type. [all …]
|
D | obj.rst | 36 The Base Widget can be used directly as a simple widget. While it is a simple 100 A Widget's parent is set when the widget is created --- the parent is passed to the 103 To get a Widget's current parent, use :cpp:expr:`lv_obj_get_parent(widget)`. 105 You can move the Widget to a new parent with :cpp:expr:`lv_obj_set_parent(widget, new_parent)`. 124 :cpp:expr:`lv_obj_get_index(widget)` returns the index of the Widget in its parent. 128 :cpp:expr:`lv_obj_move_foreground(widget)` and :cpp:expr:`lv_obj_move_background(widget)`. 130 You can change the index of a Widget in its parent using :cpp:expr:`lv_obj_move_to_index(widget, in… 134 To get a Widget's Screen (highest-level parent) use :cpp:expr:`lv_obj_get_screen(widget)`. 193 :cpp:expr:`lv_obj_add_flag(widget, LV_OBJ_FLAG_OVERFLOW_VISIBLE)` which allow the 204 lv_event_set_ext_draw_size(e, 30); /*Set 30px extra draw area around the widget*/ [all …]
|
/lvgl-latest/docs/details/libs/ |
D | gif.rst | 12 :cpp:expr:`lv_gif_create(parent)` can be used to create a gif widget. 14 :cpp:expr:`lv_gif_set_src(widget, src)` works very similarly to :cpp:func:`lv_image_set_src`. 32 lv_gif_set_src(widget, "S:path/to/example.gif");
|
/lvgl-latest/docs/details/widgets/ |
D | switch.rst | 49 :cpp:expr:`lv_obj_has_state(widget, LV_STATE_CHECKED)`. 51 Call :cpp:expr:`lv_obj_add_state(widget, LV_STATE_CHECKED)` to turn it on, or 52 :cpp:expr:`lv_obj_remove_state(widget, LV_STATE_CHECKED)` to turn it off 61 :cpp:expr:`lv_switch_set_orientation(widget, orientation)`. Possible values for
|
/lvgl-latest/docs/ |
D | README.md | 258 :cpp:expr:`lv_obj_set_layout(widget, LV_LAYOUT_FLEX)` 263 :cpp:expr:`lv_obj_set_layout(widget, LV_LAYOUT_FLEX/GRID)` <== arg with > 1 word 264 :cpp:expr:`lv_obj_set_layout(widget, LV_LAYOUT_*)` <== asterisk 265 :cpp:expr:`lv_obj_set_layout(*widget, LV_LAYOUT_FLEX)` <== asterisk 266 :cpp:expr:`lv_obj_set_layout((lv_obj_t *)widget, LV_LAYOUT_FLEX)` <== cast 267 :cpp:expr:`lv_obj_set_layout(&widget, LV_LAYOUT_FLEX);` <== ampersand & semicolon 268 :cpp:expr:`lv_obj_set_layout(widget, ...)` <== lone ellipsis 272 ``lv_obj_set_layout(widget, LV_LAYOUT_FLEX/GRID)`` 273 ``lv_obj_set_layout(widget, LV_LAYOUT_*)`` 274 ``lv_obj_set_layout(*widget, LV_LAYOUT_FLEX)`` [all …]
|
/lvgl-latest/docs/details/ |
D | index.rst | 10 base-widget/index
|
/lvgl-latest/docs/details/base-widget/styles/ |
D | style.rst | 178 - :cpp:enumerator:`LV_PART_ITEMS`: Used if the widget has multiple similar elements (e.g. table cel… 270 Add and remove styles to a widget 280 ``lv_obj_add_style(widget, &style, <selector>)``. ``<selector>`` is an 301 :cpp:expr:`lv_obj_replace_style(widget, old_style, new_style, selector)`. This 321 To remove all styles from a Widget use :cpp:expr:`lv_obj_remove_style_all(widget)`. 324 :cpp:expr:`lv_obj_remove_style(widget, style, selector)`. This function will remove 339 (e.g. color or opacity changes) just call :cpp:expr:`lv_obj_invalidate(widget)` 342 …Widget(s) are affected by that style call :cpp:expr:`lv_obj_refresh_style(widget, part, property)`. 343 …To refresh all parts and properties use :cpp:expr:`lv_obj_refresh_style(widget, LV_PART_ANY, LV_ST… 357 property "get" functions like this can be used: ``lv_obj_get_style_<property_name>(widget, <part>)`… [all …]
|
/lvgl-latest/examples/others/gridnav/ |
D | index.rst | 20 Simple navigation on a list widget
|
/lvgl-latest/docs/details/main-components/ |
D | indev.rst | 118 :cpp:expr:`lv_obj_remove_flag(widget, LV_OBJ_FLAG_GESTURE_BUBBLE)`. 134 the last clicked widget will be either scrolled or it's value will be incremented/decremented 137 As this behavior is tightly related to the last clicked widget, the crown support is 140 event or scroll the widget based on the ``editable`` flag in the widget's class. 148 2. by the ``rotary_sensitivity`` style property in the widget (1/256 unit). 155 For example, if both the indev and widget sensitivity is set to 128 (0.5), the input 241 it with :cpp:expr:`lv_group_add_obj(g, widget)`. 317 a Widget to the group use :cpp:expr:`lv_group_add_obj(g, widget)`. 320 using :cpp:expr:`lv_obj_get_group(widget)`. 322 To find out if a Widget in a group has focus, call :cpp:expr:`lv_obj_is_focused(widget)`. [all …]
|
/lvgl-latest/docs/intro/ |
D | basics.rst | 178 lv_obj_set_<attribute_name>(widget, <value>) 191 lv_<type>_set_<attribute_name>(widget, <value>) 213 To delete any widget and its children:: 215 lv_obj_delete(lv_obj_t * widget) 273 By using parts you can apply different styles to sub-elements of a widget. (See below.) 301 :cpp:expr:`lv_obj_has_state(widget, LV_STATE_...)`. It will return ``true`` if the 308 lv_obj_add_state(widget, LV_STATE_...); 309 lv_obj_remove_state(widget, LV_STATE_...);
|
/lvgl-latest/docs/details/base-widget/layouts/ |
D | grid.rst | 20 To make a Widget a Grid container call :cpp:expr:`lv_obj_set_layout(widget, LV_LAYOUT_GRID)`. 67 :cpp:expr:`lv_obj_set_grid_dsc_array(widget, col_dsc, row_dsc)`. 120 :cpp:expr:`lv_obj_set_grid_align(widget, column_align, row_align)`. 127 If you set the column and/or row grid descriptors of a widget to ``NULL`` it will use
|
/lvgl-latest/docs/details/integration/driver/display/ |
D | lcd_stm32_guide.rst | 313 lv_obj_set_align(widget, LV_ALIGN_CENTER); 314 lv_obj_set_height(widget, LV_SIZE_CONTENT); 315 lv_obj_set_width(widget, LV_SIZE_CONTENT); 316 lv_obj_set_style_text_font(widget, &lv_font_montserrat_14, 0); 317 lv_obj_set_style_text_color(widget, lv_color_black(), 0); 318 lv_label_set_text(widget, "Hello World!");
|