domotic/components/lvgl__lvgl/xmls/lv_buttonmatrix.xml
Marc PASTEUR d132f39ff8 move lvgl
2025-12-19 18:08:19 +01:00

45 lines
3.4 KiB
XML

<!--
Example
<lv_buttonmatrix map="'1' '2' '\n' '3'" ctrl_map="checked|width_3 none disabled"/>
-->
<widget>
<api>
<enumdef name="lv_buttonmatrix_ctrl" multi="true" help="Control flags you can apply to individual buttons">
<enum name="none" help="Make the button use the default state with no special control"/>
<enum name="width_1" help="Make the button take 1 unit of relative width in its row"/>
<enum name="width_2" help="Make the button take 2 units of relative width in its row"/>
<enum name="width_3" help="Make the button take 3 units of relative width in its row"/>
<enum name="width_4" help="Make the button take 4 units of relative width in its row"/>
<enum name="width_5" help="Make the button take 5 units of relative width in its row"/>
<enum name="width_6" help="Make the button take 6 units of relative width in its row"/>
<enum name="width_7" help="Make the button take 7 units of relative width in its row"/>
<enum name="width_8" help="Make the button take 8 units of relative width in its row"/>
<enum name="width_9" help="Make the button take 9 units of relative width in its row"/>
<enum name="width_10" help="Make the button take 10 units of relative width in its row"/>
<enum name="width_11" help="Make the button take 11 units of relative width in its row"/>
<enum name="width_12" help="Make the button take 12 units of relative width in its row"/>
<enum name="width_13" help="Make the button take 13 units of relative width in its row"/>
<enum name="width_14" help="Make the button take 14 units of relative width in its row"/>
<enum name="width_15" help="Make the button take 15 units of relative width in its row"/>
<enum name="hidden" help="Make the button hidden"/>
<enum name="no_repeat" help="Disable long-press repeat on the button"/>
<enum name="disabled" help="Make the button disabled (not clickable)"/>
<enum name="checkable" help="Make the button toggleable when clicked"/>
<enum name="checked" help="Keep the button in the toggled (checked) state"/>
<enum name="click_trig" help="Trigger LV_EVENT_VALUE_CHANGED on CLICK instead of PRESS"/>
<enum name="popover" help="Show a popover when pressing the button"/>
<enum name="recolor" help="Enable text recoloring with inline #color codes"/>
<enum name="reserved_1" help="Reserved flag for future use"/>
<enum name="reserved_2" help="Reserved flag for future use"/>
<enum name="custom_1" help="Custom flag free to use by the user"/>
<enum name="custom_2" help="Custom flag free to use by the user"/>
</enumdef>
<prop name="map" type="string[NULL]" help="Set the layout map of the button matrix using text strings and `\n` for line breaks (e.g. 'a' 'b' 'c')"/>
<prop name="ctrl_map" type="enum:lv_buttonmatrix_ctrl[]+" help="Set the control flags for each button in the map"/>
<prop name="one_checked" type="bool" help="Force exactly one button to stay checked at all times"/>
<prop name="selected_button" type="int" help="Select a button by index (new lines do not count)"/>
</api>
</widget>