Home
last modified time | relevance | path

Searched refs:expr (Results 1 – 25 of 80) sorted by relevance

1234

/lvgl-latest/src/misc/
Dlv_assert.h37 #define LV_ASSERT(expr) \ argument
39 if(!(expr)) { \
40 LV_LOG_ERROR("Asserted at expression: %s", #expr); \
45 #define LV_ASSERT_MSG(expr, msg) \ argument
47 if(!(expr)) { \
48 LV_LOG_ERROR("Asserted at expression: %s (%s)", #expr, msg); \
53 #define LV_ASSERT_FORMAT_MSG(expr, format, ...) \ argument
55 if(!(expr)) { \
56 LV_LOG_ERROR("Asserted at expression: %s " format , #expr, __VA_ARGS__); \
/lvgl-latest/src/draw/nxp/pxp/
Dlv_pxp_utils.h34 #define PXP_ASSERT(expr) LV_ASSERT(expr) argument
36 #define PXP_ASSERT(expr)
39 #define PXP_ASSERT_MSG(expr, msg) \ argument
41 if(!(expr)) { \
/lvgl-latest/src/draw/nxp/vglite/
Dlv_vglite_utils.h39 #define VGLITE_ASSERT(expr) LV_ASSERT(expr) argument
41 #define VGLITE_ASSERT(expr)
44 #define VGLITE_ASSERT_MSG(expr, msg) \ argument
46 if(!(expr)) { \
/lvgl-latest/docs/details/widgets/
Dspinbox.rst29 - :cpp:expr:`lv_spinbox_set_value(spinbox, 1234)` sets a new value for the Spinbox.
30 - :cpp:expr:`lv_spinbox_increment(spinbox)` and :cpp:expr:`lv_spinbox_decrement(spinbox)`
32 - :cpp:expr:`lv_spinbox_set_range(spinbox, -1000, 2500)` sets its range. If the
33 value is changed by :cpp:expr:`lv_spinbox_set_value(spinbox)`, by *Keys*,
34 by :cpp:expr:`lv_spinbox_increment(spinbox)` or :cpp:expr:`lv_spinbox_decrement(spinbox)`
36 - :cpp:expr:`lv_spinbox_set_step(spinbox, 100)` sets which digit to change on
38 - :cpp:expr:`lv_spinbox_set_cursor_pos(spinbox, 1)` sets the cursor to a specific
44 to the left, the :cpp:expr:`lv_spinbox_set_digit_step_direction(spinbox, LV_DIR_LEFT)` can be used
49 :cpp:expr:`lv_spinbox_set_digit_format(spinbox, digit_count, separator_position)`
57 :cpp:expr:`lv_spinbox_set_rollover(spinbox, true/false)` enables/disabled
Dmenu.rst42 :cpp:expr:`lv_menu_create(parent)` creates a new empty Menu.
53 You can set header modes with :cpp:expr:`lv_menu_set_mode_header(menu, LV_MENU_HEADER...)`.
64 :cpp:expr:`lv_menu_set_mode_root_back_button(menu, LV_MENU_ROOT_BACK_BTN...)`.
69 :cpp:expr:`lv_menu_page_create(menu, title)` creates a new empty Menu Page. You
76 :cpp:expr:`lv_menu_set_page(menu, page)`. ``NULL`` to clear main and clear Menu
83 :cpp:expr:`lv_menu_set_sidebar_page(menu, page)`. ``NULL`` to clear sidebar.
90 :cpp:expr:`lv_menu_set_load_page_event(menu, btn, new page)`.
98 - :cpp:expr:`lv_menu_cont_create(parent_page)` creates a new empty container.
99 - :cpp:expr:`lv_menu_section_create(parent_page)` creates a new empty section.
100 - :cpp:expr:`lv_menu_separator_create(parent_page)` creates a separator.
[all …]
Dtextarea.rst55 - :cpp:expr:`lv_textarea_add_char(textarea, 'c')`
56 - :cpp:expr:`lv_textarea_add_text(textarea, "insert this text")`
59 :cpp:expr:`lv_textarea_add_text(textarea, "á")`.
61 :cpp:expr:`lv_textarea_set_text(textarea, "New text")` replaces all existing text
73 :cpp:expr:`lv_textarea_set_placeholder_text(textarea, "Placeholder text")`.
79 :cpp:expr:`lv_textarea_delete_char(textarea)`.
81 To delete to the right, use :cpp:expr:`lv_textarea_delete_char_forward(textarea)`
87 :cpp:expr:`lv_textarea_set_cursor_pos(textarea, corsor_pos)` where ``cursor_pos`` is
94 - :cpp:expr:`lv_textarea_cursor_right(textarea)`
95 - :cpp:expr:`lv_textarea_cursor_left(textarea)`
[all …]
Dtabview.rst46 :cpp:expr:`lv_tabview_create(parent)` creates a new empty Tab View.
51 New tabs can be added with :cpp:expr:`lv_tabview_add_tab(tabview, "Tab name")`.
59 :cpp:expr:`lv_tabview_rename_tab(tabview, tab_id, "New Name")`.
68 - Use :cpp:expr:`lv_tabview_set_active(tabview, tab_id, LV_ANIM_ON / OFF)` function
74 Using the :cpp:expr:`lv_tabview_set_tab_bar_position(tabview, LV_DIR_LEFT/RIGHT/TOP/BOTTOM)`
80 The size of the tab bar can be adjusted by :cpp:expr:`lv_tabview_set_tab_bar_size(tabview, size)`
87 - :cpp:expr:`lv_tabview_get_content(tabview)` returns a pointer to the container for
89 - :cpp:expr:`lv_tabview_get_tab_bar(tabview)` returns a pointer to the container for
100 or clicking the tab button. :cpp:expr:`lv_tabview_get_tab_active(tabview)`
Dspangroup.rst52 - :cpp:expr:`lv_span_set_text(span, "text")`
53 - :cpp:expr:`lv_style_set_<property_name>(&span->style, value)`
55 Example of the latter: :cpp:expr:`lv_style_set_text_color(&span->style, lv_palette_main(LV_PALETTE…
58 :cpp:expr:`lv_spangroup_refr_mode(spangroup)` after you have modifying any of its
68 :cpp:expr:`lv_spangroup_get_child(spangroup, id)` will return a pointer to the
82 Use :cpp:expr:`lv_spangroup_get_span_count(spangroup)` to get
91 :cpp:expr:`lv_spangroup_delete_span(spangroup, span)`.
104 Use function :cpp:expr:`lv_spangroup_set_align(spangroup, LV_TEXT_ALIGN_...)`
117 Use :cpp:expr:`lv_spangroup_set_mode(spangroup, LV_SPAN_MODE_BREAK)` to set its mode.
128 Use :cpp:expr:`lv_spangroup_set_overflow(spangroup, LV_SPAN_OVERFLOW_CLIP)` to set
[all …]
Darc.rst39 A new value can be set using :cpp:expr:`lv_arc_set_value(arc, new_value)`. The
41 be modified with :cpp:expr:`lv_arc_set_range(arc, min, max)`. The default range
48 - :cpp:expr:`lv_arc_set_bg_start_angle(arc, angle)`
49 - :cpp:expr:`lv_arc_set_bg_end_angle(arc, angle)`
50 - :cpp:expr:`lv_arc_set_bg_angles(arc, start_angle, end_angle)`
60 :cpp:expr:`lv_arc_set_rotation(arc, deg)`.
72 The mode can be set by :cpp:expr:`lv_arc_set_mode(arc, LV_ARC_MODE_...)` and
82 :cpp:expr:`lv_arc_set_change_rate(arc, rate)`
89 :cpp:expr:`lv_arc_set_knob_offset(arc, offset_angle)`, and will only be visible if
97 - :cpp:expr:`lv_arc_set_start_angle(arc, start_angle)`
[all …]
Dled.rst30 :cpp:expr:`lv_led_set_color(led, lv_color_hex(0xff0080))`. This will be used as its
36 You can set their brightness with :cpp:expr:`lv_led_set_brightness(led, brightness)`.
42 Use :cpp:expr:`lv_led_on(led)` and :cpp:expr:`lv_led_off(led)` to set the brightness to
43 a predefined ON or OFF value. The :cpp:expr:`lv_led_toggle(led)` toggles between
Dscale.rst43 or tick position, use :cpp:expr:`lv_scale_set_mode(scale, mode)`, where ``mode`` can
60 - :cpp:expr:`lv_scale_set_range(scale, min, max)`, and
61 - :cpp:expr:`lv_scale_set_angle_range(scale, angle_range)`
74 :cpp:expr:`lv_scale_set_draw_ticks_on_top(scale, true)`. (This effect can be
91 - :cpp:expr:`lv_scale_set_total_tick_count(scale, total_tick_count)`, and
92 - :cpp:expr:`lv_scale_set_major_tick_every(scale, nth_tick)`.
95 :cpp:expr:`lv_scale_set_label_show(scale, true)`. (Pass ``false`` to hide them again.)
99 :cpp:expr:`lv_scale_set_text_src(scale, custom_labels)` where ``custom_labels`` is an
112 :cpp:expr:`lv_obj_set_style_transform_rotation(scale, LV_SCALE_LABEL_ROTATE_MATCH_TICKS, LV_PART_IN…
116 :cpp:expr:`lv_obj_set_style_transform_rotation(scale, 200, LV_PART_INDICATOR)`.
[all …]
Ddropdown.rst54 :cpp:expr:`lv_dropdown_get_list(dropdown)` to get the list object. Example:
76 as the ``options`` argument to :cpp:expr:`lv_dropdown_set_options(dropdown, options)`.
81 The :cpp:expr:`lv_dropdown_add_option(dropdown, "New option", pos)` function
85 with :cpp:expr:`lv_dropdown_set_options_static(dropdown, options)`. In this case
90 :cpp:expr:`lv_dropdown_set_selected(dropdown, id, LV_ANIM_ON/LV_ANIM_OFF)`, where ``id`` is the ind…
97 :cpp:expr:`lv_dropdown_get_selected(dropdown)`.
99 :cpp:expr:`lv_dropdown_get_selected_str(dropdown, buf, buf_size)` copies the
106 be modified using :cpp:expr:`lv_dropdown_set_dir(dropdown, LV_DIR_LEFT)`.
115 :cpp:expr:`lv_dropdown_set_symbol(dropdown, LV_SYMBOL_...)`
124 static is set with :cpp:expr:`lv_dropdown_set_text(dropdown, "Some text")` it
[all …]
Dbuttonmatrix.rst47 :cpp:expr:`lv_buttonmatrix_set_map(btn_matrix, my_map)`. The declaration of a map should
66 row with :cpp:expr:`lv_buttonmatrix_set_button_width(btn_matrix, button_id, width)` E.g. in a
92 - :cpp:expr:`lv_buttonmatrix_set_button_ctrl(btn_matrix, button_id, LV_BUTTONMATRIX_CTRL_...)` and
93 - :cpp:expr:`lv_buttonmatrix_clear_button_ctrl(btn_matrix, button_id, LV_BUTTONMATRIX_CTRL_...)`
101 - :cpp:expr:`lv_buttonmatrix_set_button_ctrl_all(btn_matrix, LV_BUTTONMATRIX_CTRL_...)` and
102 - :cpp:expr:`lv_buttonmatrix_clear_button_ctrl_all(btn_matrix, LV_BUTTONMATRIX_CTRL_...)`
108 - :cpp:expr:`lv_buttonmatrix_set_ctrl_map(btn_matrix, ctrl_map)`.
111 :cpp:expr:`ctrl_map[0] = width | LV_BUTTONMATRIX_CTRL_NO_REPEAT | LV_BUTTONMATRIX_CTRL_CHECHKABLE`.
118 :cpp:expr:`lv_buttonmatrix_set_one_checked(btn_matrix, true)` to allow only one button to
132 :cpp:expr:`lv_buttonmatrix_get_selected_button(btn_matrix)` returns the index of the button
[all …]
Dtable.rst46 :cpp:expr:`lv_table_set_cell_value(table, row, col, "Content")`. The text is
57 :cpp:expr:`lv_table_set_row_count(table, row_cnt)` and
58 :cpp:expr:`lv_table_set_column_count(table, col_cnt)`.
64 :cpp:expr:`lv_table_set_column_width(table, col_id, width)`. The overall width of
74 :cpp:expr:`lv_table_add_cell_ctrl(table, row, col, LV_TABLE_CELL_CTRL_MERGE_RIGHT)`.
82 :cpp:expr:`lv_obj_set_size(table, LV_SIZE_CONTENT, LV_SIZE_CONTENT)`
118 :cpp:expr:`lv_table_get_selected_cell(table, &row, &col)` can be used to get the
Dimage.rst39 To set the source of an image, use :cpp:expr:`lv_image_set_src(img, src)`.
43 :cpp:expr:`lv_image_set_src(img1, &converted_img_var)`.
45 :cpp:expr:`LV_IMAGE_DECLARE(converted_img_var)`.
52 image as the image source with :cpp:expr:`lv_image_set_src(img, "S:folder1/my_img.bin")`.
58 :cpp:expr:`lv_image_set_src(img1, LV_SYMBOL_OK)`.
110 With :cpp:expr:`lv_image_set_offset_x(img, x_ofs)` and
111 :cpp:expr:`lv_image_set_offset_y(img, y_ofs)`, you can add some offset to the
119 You can zoom images in or out by using :cpp:expr:`lv_image_set_scale(img, factor)`.
125 :cpp:expr:`lv_image_set_scale_x(img, factor)` and
126 :cpp:expr:`lv_image_set_scale_y(img, factor)` can also be used to
[all …]
/lvgl-latest/src/stdlib/builtin/
Dlv_mem_core_builtin.c65 #define _REPEAT8(expr) expr expr expr expr expr expr expr expr argument
Dlv_string_builtin.c50 #define _REPEAT8(expr) expr expr expr expr expr expr expr expr argument
/lvgl-latest/src/draw/vg_lite/
Dlv_vg_lite_utils.h37 #define LV_VG_LITE_ASSERT(expr) LV_ASSERT(expr) argument
39 #define LV_VG_LITE_ASSERT(expr)
42 #define LV_VG_LITE_CHECK_ERROR(expr) \ argument
44 vg_lite_error_t error = expr; \
46 LV_LOG_ERROR("Execute '" #expr "' error: %d", (int)error); \
/lvgl-latest/docs/details/other-components/
Dobj_id.rst26 - :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 …]
Dmonkey.rst24 :cpp:expr:`lv_monkey_config_init(cfg)` then set its ``type`` member to the desired
29 Next, call :cpp:expr:`lv_monkey_create(cfg)` to create the Monkey. It returns a
32 Finally call :cpp:expr:`lv_monkey_set_enable(monkey, true)` to enable Monkey.
35 :cpp:expr:`lv_monkey_set_enable(monkey, false)`. To delete it, call
36 :cpp:expr:`lv_monkey_delete(monkey)`.
/lvgl-latest/docs/details/libs/
Dtiny_ttf.rst17 :cpp:expr:`lv_tiny_ttf_create_data(data, data_size, font_size)` can be used to
25 :cpp:expr:`lv_tiny_ttf_create_file(path, font_size)` will also be available,
30 :cpp:expr:`lv_tiny_ttf_set_size(font, font_size)`.
34 :cpp:expr:`lv_tiny_ttf_create_data_ex(data, data_size, font_size, kerning, cache_size)`
35 or :cpp:expr:`lv_tiny_ttf_create_file_ex(path, font_size, kerning, cache_size)` (when
/lvgl-latest/docs/details/main-components/
Danimation.rst45 Examples of the latter are: :cpp:expr:`lv_obj_set_x(widget, value)` or
46 :cpp:expr:`lv_obj_set_width(widget, value)`.
160 :cpp:expr:`lv_anim_init(&my_anim)` sets the Path to :cpp:func:`lv_anim_path_linear`
162 you provide), you set it using :cpp:expr:`lv_anim_set_path_cb(&anim_template, path_cb)`.
178 :cpp:expr:`lv_anim_set_duration(&anim_template, duration_in_ms)`. But in some cases
204 :cpp:expr:`lv_anim_set_reverse_duration(&anim_template, duration_in_ms)`.
207 directions using :cpp:expr:`lv_anim_set_reverse_delay(&anim_template, delay_in_ms)`
218 not been created yet. When you call :cpp:expr:`lv_anim_start(&anim_template)`
237 :cpp:expr:`lv_anim_start(&anim_template)` makes its own copy of the Animation
256 If :cpp:expr:`lv_anim_set_repeat_count(&anim_template, cnt)` has been called
[all …]
Dtimer.rst37 :cpp:expr:`lv_timer_create(timer_cb, period_ms, user_data)`. It returns an
72 :cpp:expr:`lv_timer_ready(timer)` makes a Timer run on the next call of
75 :cpp:expr:`lv_timer_reset(timer)` resets the period of a Timer. It will be
85 - :cpp:expr:`lv_timer_set_cb(timer, new_cb)`
86 - :cpp:expr:`lv_timer_set_period(timer, new_period_ms)`
87 - :cpp:expr:`lv_timer_set_user_data(timer, user_data)`
96 :cpp:expr:`lv_timer_set_repeat_count(timer, count)`. By default, once the Timer has
99 You can use :cpp:expr:`lv_timer_set_auto_delete(timer, false)` if you want the timer
114 :cpp:expr:`lv_timer_pause(timer)` pauses the specified Timer.
116 :cpp:expr:`lv_timer_resume(timer)` resumes the specified Timer.
[all …]
Dcolor.rst12 This type and format is used in almost all APIs regardless of :cpp:expr:`LV_COLOR_DEPTH`.
90 :cpp:expr:`lv_color_t` ``c =`` :cpp:expr:`lv_palette_main(LV_PALETTE_...)`.
93 :cpp:expr:`lv_color_t` ``c =`` :cpp:expr:`lv_palette_lighten(LV_PALETTE_..., v)`. ``v`` can be
95 :cpp:expr:`lv_color_t` ``c =`` :cpp:expr:`lv_palette_darken(LV_PALETTE_..., v)`. ``v`` can be
/lvgl-latest/docs/details/base-widget/
Dscroll.rst36 :cpp:expr:`lv_obj_set_scrollbar_mode(widget, LV_SCROLLBAR_MODE_...)` sets the scrollbar mode on a W…
125 :cpp:expr:`lv_obj_remove_flag(widget, LV_OBJ_FLAG_SCROLLABLE)`.
131 :cpp:expr:`lv_obj_set_scroll_dir(widget, LV_DIR_...)`.
143 OR-ed values are also possible. E.g. :cpp:expr:`LV_DIR_TOP | LV_DIR_LEFT`.
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_...)`.
261 - :cpp:expr:`lv_obj_get_scroll_x(widget)` Pixels scrolled past left edge of Widget's view wind…
262 - :cpp:expr:`lv_obj_get_scroll_y(widget)` Pixels scrolled past top of Widget's view window.
263 - :cpp:expr:`lv_obj_get_scroll_top(widget)` Identical to :cpp:expr:`lv_obj_get_scroll_y(widget)`
264 - :cpp:expr:`lv_obj_get_scroll_bottom(widget)` Pixels scrolled past bottom of Widget's view window.
[all …]

1234