跳至主要內容

类: BtnMatrix

大约 2 分钟

类: BtnMatrix

类属性

属性 selectedButton

类型: number

访问: 可读, 可写

该属性是对 LVGL C API lv_buttonmatrix_get_selected_button, lv_buttonmatrix_set_selected_button 的封装, 具体用法请参考 LVGL文档open in new window

属性 buttonCtrlAll

类型: LV-CONST

访问: 只写

该属性是对 LVGL C API lv_buttonmatrix_set_button_ctrl_all 的封装, 具体用法请参考 LVGL文档open in new window

属性 oneChecked

类型: number

访问: 可读, 可写

该属性是对 LVGL C API lv_buttonmatrix_get_one_checked, lv_buttonmatrix_set_one_checked 的封装, 具体用法请参考 LVGL文档open in new window

属性 popovers

类型: number

访问: 只读

该属性是对 LVGL C API lv_buttonmatrix_get_popovers 的封装, 具体用法请参考 LVGL文档open in new window

类方法

方法 setButtonCtrl

原型: setButtonCtrl ()

该方法是对 LVGL C API lv_buttonmatrix_set_button_ctrl 的封装,具体用法请参考 LVGL文档open in new window

返回值:

undefined

方法 clearButtonCtrl

原型: clearButtonCtrl ()

该方法是对 LVGL C API lv_buttonmatrix_clear_button_ctrl 的封装,具体用法请参考 LVGL文档open in new window

返回值:

undefined

方法 clearButtonCtrlAll

原型: clearButtonCtrlAll ()

该方法是对 LVGL C API lv_buttonmatrix_clear_button_ctrl_all 的封装,具体用法请参考 LVGL文档open in new window

返回值:

undefined

方法 setButtonWidth

原型: setButtonWidth ()

该方法是对 LVGL C API lv_buttonmatrix_set_button_width 的封装,具体用法请参考 LVGL文档open in new window

返回值:

undefined

方法 hasButtonCtrl

原型: hasButtonCtrl ()

该方法是对 LVGL C API lv_buttonmatrix_has_button_ctrl 的封装,具体用法请参考 LVGL文档open in new window

返回值:

undefined

上次编辑于:
贡献者: alee