[][src]Module lvgl::widgets::dropdown

Contains Rust bindings for LVGL Dropdown Widget API lv_dropdown

Structs

__BindgenBitfieldUnit
lv_area_t

Represents an area of the screen.

lv_dropdown_ext_t
lv_ll_t

Description of a linked list

lv_realign_t
lv_style_list_t

Constants

LV_DROPDOWN_DEF_ANIM_TIME
LV_DROPDOWN_DIR_DOWN
LV_DROPDOWN_DIR_LEFT
LV_DROPDOWN_DIR_RIGHT
LV_DROPDOWN_DIR_UP
LV_DROPDOWN_PART_LIST
LV_DROPDOWN_PART_MAIN
LV_DROPDOWN_PART_SCROLLBAR
LV_DROPDOWN_PART_SELECTED
LV_DROPDOWN_POS_LAST

Functions

add_option

Add an options to a drop down list from a string. Only works for dynamic options.

clear_options

Clear any options in a drop down list. Static or dynamic.

close

Close (Collapse) the drop down list

create

GLOBAL PROTOTYPES Create a drop down list objects

get_dir

Get the symbol to draw when the drop-down list is closed

get_max_height

Get the fix height value.

get_option_cnt

Get the total number of options

get_selected

Get the selected option

get_selected_str

Get the current selected option as a string

get_show_selected

Get whether the ddlist highlight the last selected option and display its text or not

open

Open the drop down list with or without animation

set_dir

Set the direction of the a drop down list

set_max_height

Set the maximal height for the drop down list

set_options

Set the options in a drop down list from a string

set_options_static

Set the options in a drop down list from a string

set_selected

Set the selected option

set_show_selected

Set whether the ddlist highlight the last selected option and display its text or not

set_symbol

Set an arrow or other symbol to display when the drop-down list is closed.

set_text

Set text of the ddlist (Displayed on the button if show_selected = false)

Type Definitions

_bindgen_ty_42

TYPEDEFS

_bindgen_ty_43
lv_align_t
lv_bidi_dir_t
lv_coord_t
lv_design_cb_t

The design callback is used to draw the object on the screen. It accepts the object, a mask area, and the mode in which to draw the object.

lv_design_mode_t
lv_design_res_t
lv_drag_dir_t
lv_dropdown_dir_t
lv_dropdown_part_t
lv_event_cb_t

@brief Event callback. Events are used to notify the user of some action being taken on the object. For details, see ::lv_event_t.

lv_event_t
lv_ll_node_t

Dummy type to make handling easier

lv_obj_t
lv_obj_user_data_t
lv_res_t
lv_signal_cb_t
lv_signal_t
lv_state_t