跳至主要內容

类: MsgBox

大约 2 分钟

类: MsgBox

类属性

属性 header

类型: obj

访问: 只读

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

类型: obj

访问: 只读

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

属性 content

类型: obj

访问: 只读

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

属性 title

类型: obj

访问: 只读

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

类方法

方法 addTitle

原型: addTitle ()

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

返回值:

undefined

方法 addText

原型: addText ()

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

返回值:

undefined

方法 addFooterButton

原型: addFooterButton ()

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

返回值:

undefined

方法 addCloseButton

原型: addCloseButton ()

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

返回值:

undefined

方法 close

原型: close ()

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

返回值:

undefined

方法 closeAsync

原型: closeAsync ()

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

返回值:

undefined

上次编辑于:
贡献者: alee