Marc PASTEUR d132f39ff8 move lvgl
2025-12-19 18:08:19 +01:00

41 lines
2.2 KiB
XML

<!--
<lv_scale total_tick_count="30">
<lv_scale-section column="2" range="30 40" style_indicator="scale_style"/>
</lv_scale>
-->
<widget>
<api>
<enumdef name="lv_scale_mode" help="How the scale is drawn">
<enum name="horizontal_top" help="Ticks on top"/>
<enum name="horizontal_bottom" help="Ticks on bottom"/>
<enum name="vertical_left" help="Ticks on left"/>
<enum name="vertical_right" help="Ticks on right"/>
<enum name="round_inner" help="Circular, ticks inside"/>
<enum name="round_outer" help="Circular, ticks outside"/>
</enumdef>
<prop name="mode" type="enum:lv_scale_mode" help="Set the scale mode"/>
<prop name="total_tick_count" type="int" help="Set number of ticks"/>
<prop name="major_tick_every" type="int" help="Set frequency of major ticks"/>
<prop name="label_show" type="bool" help="Show or hide labels"/>
<prop name="min_value" type="int" help="Set minimum value"/>
<prop name="max_value" type="int" help="Set maximum value"/>
<prop name="angle_range" type="deg" help="Set angular range (degrees)"/>
<prop name="rotation" type="deg" help="Rotate the scale (degrees)"/>
<prop name="text_src" type="string[NULL]" help="Set custom labels from text"/>
<prop name="post_draw" type="bool" help="Enable post-draw events"/>
<prop name="draw_ticks_on_top" type="bool" help="Draw ticks above other content"/>
<element name="section" type="lv_scale_section" access="add" help="Add a styled section">
<prop name="min_value" type="int" help="Set section min"/>
<prop name="max_value" type="int" help="Set section max"/>
<prop name="style_main" type="style" help="Set main line style"/>
<prop name="style_indicator" type="style" help="Set major line and text style"/>
<prop name="style_items" type="style" help="Set minor ticks' style"/>
<prop name="bind_min_value" type="subject" help="Bind section min to subject"/>
<prop name="bind_max_value" type="subject" help="Bind section max to subject"/>
</element>
</api>
</widget>