lv_switch.h

API reference for lv_switch.h

Report on GitHub
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_switch_private.h

Functions

lv_switch_set_orientation

Set the orientation of switch.

 
void lv_switch_set_orientation(lv_obj_t *obj, lv_switch_orientation_t orientation)
Parameters
NameTypeDescription
objlv_obj_t *pointer to switch object
orientationlv_switch_orientation_tswitch orientation from lv_switch_orientation_t

Enums

_lv_property_switch_id_t

NameValue
LV_PROPERTY_SWITCH_ORIENTATION(LV_PROPERTY_SWITCH_START + ((int) 0 )) | (( 1 ) << 28 )
LV_PROPERTY_SWITCH_END

lv_switch_orientation_t

Name
LV_SWITCH_ORIENTATION_AUTO
LV_SWITCH_ORIENTATION_HORIZONTAL
LV_SWITCH_ORIENTATION_VERTICAL
Used by 1 function
  • lv_switch_set_orientation — param orientation

Macros

LV_SWITCH_KNOB_EXT_AREA_CORRECTION

 
#define LV_SWITCH_KNOB_EXT_AREA_CORRECTION 2

Switch knob extra area correction factor

Variables

lv_switch_class

 
const lv_obj_class_t lv_switch_class

Dependencies

How is this guide?

Last updated on

On this page