[][src]Module lvgl::widgets::switch

Contains Rust bindings for LVGL Switch Widget API lv_switch

Structs

__BindgenBitfieldUnit
lv_area_t

Represents an area of the screen.

lv_bar_anim_t
lv_bar_ext_t

Data of bar

lv_ll_t

Description of a linked list

lv_realign_t
lv_style_list_t
lv_switch_ext_t

TYPEDEFS

Constants

LV_SWITCH_PART_BG

< Switch background.

LV_SWITCH_PART_INDIC

< Switch fill area.

LV_SWITCH_PART_KNOB

< Switch knob.

_LV_SWITCH_PART_VIRTUAL_LAST

Functions

create

Create a switch objects

get_anim_time

Get the animation time of the switch

get_state

Get the state of a switch

off

Turn OFF the switch

on

Turn ON the switch

set_anim_time

Set the animation time of the switch

toggle

Toggle the position of the switch

Type Definitions

_bindgen_ty_43

Switch parts.

lv_align_t
lv_anim_enable_t
lv_anim_value_t

Type of the animated value

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_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
lv_switch_part_t