mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
lv_sw: lv_sw_toggle doc fix
This commit is contained in:
parent
d962e36dbb
commit
6af285adb8
@ -148,9 +148,9 @@ void lv_sw_off(lv_obj_t * sw)
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a function which will be called when the switch is toggled by the user
|
||||
* @param sw pointer to switch object
|
||||
* @param action a callback function
|
||||
* Toggle the position of the switch
|
||||
* @param sw pointer to a switch object
|
||||
* @return resulting state of the switch.
|
||||
*/
|
||||
bool lv_sw_toggle(lv_obj_t *sw) {
|
||||
bool state = lv_sw_get_state(sw);
|
||||
|
Loading…
x
Reference in New Issue
Block a user