Files
lvgl/xmls/lv_imagebutton.xml
T
2025-12-11 08:01:47 +01:00

41 lines
1.9 KiB
XML

<!--
<lv_imagebutton state="checked">
<lv_imagebutton-src_left state="released" src="normal_left"/>
<lv_imagebutton-src_mid state="released" src="normal_mid"/>
<lv_imagebutton-src_right state="released" src="normal_right"/>
<lv_imagebutton-src_left state="pressed" src="pr_left"/>
<lv_imagebutton-src_mid state="pressed" src="pr_mid"/>
<lv_imagebutton-src_right state="pressed" src="pr_right"/>
</lv_imagebutton>
-->
<widget>
<api>
<enumdef name="lv_imagebutton_state" help="Possible states of an image button">
<enum name="released" help="Released"/>
<enum name="pressed" help="Pressed"/>
<enum name="disabled" help="Disabled"/>
<enum name="checked_released" help="Checked and released"/>
<enum name="checked_pressed" help="Checked and pressed"/>
<enum name="checked_disabled" help="Checked and disabled"/>
</enumdef>
<prop name="state" type="enum:lv_imagebutton_state" help="The current state of the imagebutton"/>
<element name="src_left" access="set" help="Set the left image source in a given state">
<arg name="state" type="enum:lv_imagebutton_state" help="Set the image in this state"/>
<prop name="src" type="image" help="The image in the given state"/>
</element>
<element name="src_right" access="set" help="Set the right image source in a given state">
<arg name="state" type="enum:lv_imagebutton_state" help="Set the image in this state"/>
<prop name="src" type="image" help="The image in the given state"/>
</element>
<element name="src_mid" access="set" help="Set the middle image source in a given state">
<arg name="state" type="enum:lv_imagebutton_state" help="Set the image in this state"/>
<prop name="src" type="image" help="The image in the given state"/>
</element>
</api>
</widget>