1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-21 06:53:01 +08:00

Update lv_btnm_set_one_toggle docs (#1079)

This commit is contained in:
embeddedt 2019-05-23 10:42:45 -04:00 committed by GitHub
parent 0f1e260155
commit a3e88e1ecd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -401,6 +401,9 @@ void lv_btnm_set_btn_width(const lv_obj_t * btnm, uint16_t btn_id, uint8_t width
/** /**
* Make the button matrix like a selector widget (only one button may be toggled at a time). * Make the button matrix like a selector widget (only one button may be toggled at a time).
*
* Toggling must be enabled on the buttons you want to be selected with `lv_btnm_set_ctrl` or `lv_btnm_set_btn_ctrl_all`.
*
* @param btnm Button matrix object * @param btnm Button matrix object
* @param one_toggle Whether "one toggle" mode is enabled * @param one_toggle Whether "one toggle" mode is enabled
*/ */

View File

@ -170,6 +170,9 @@ void lv_btnm_set_btn_width(const lv_obj_t * btnm, uint16_t btn_id, uint8_t width
/** /**
* Make the button matrix like a selector widget (only one button may be toggled at a time). * Make the button matrix like a selector widget (only one button may be toggled at a time).
*
* Toggling must be enabled on the buttons you want to be selected with `lv_btnm_set_ctrl` or `lv_btnm_set_btn_ctrl_all`.
*
* @param btnm Button matrix object * @param btnm Button matrix object
* @param one_toggle Whether "one toggle" mode is enabled * @param one_toggle Whether "one toggle" mode is enabled
*/ */