38 lines
1.9 KiB
XML
38 lines
1.9 KiB
XML
<!--
|
||
Example
|
||
<lv_bar mode="symmetrical" range="-40 100" value="60"/>
|
||
-->
|
||
|
||
<widget>
|
||
<api>
|
||
<enumdef name="lv_bar_mode" help="How the bar grows with values">
|
||
<enum name="normal" help="Make the bar grow from minimum toward maximum"/>
|
||
<enum name="symmetrical" help="Make the bar grow symmetrically from the midpoint"/>
|
||
<enum name="range" help="Make the bar show values between start and end points"/>
|
||
</enumdef>
|
||
|
||
<enumdef name="lv_bar_orientation" help="How the bar is oriented">
|
||
<enum name="auto" help="Choose orientation automatically based on widget size"/>
|
||
<enum name="horizontal" help="Make the bar fill left to right"/>
|
||
<enum name="vertical" help="Make the bar fill bottom to top"/>
|
||
</enumdef>
|
||
|
||
<prop name="min_value" type="int" help="Set the minimum value of the bar"/>
|
||
<prop name="max_value" type="int" help="Set the maximum value of the bar"/>
|
||
|
||
<prop name="value" help="Set the current value of the bar">
|
||
<param name="value" type="int" help="The bar’s current value"/>
|
||
<param name="animated" type="bool" default="false" help="Animate the bar when changing its value. Reference as `value-animated`"/>
|
||
</prop>
|
||
|
||
<prop name="start_value" help="Set the start value in range mode">
|
||
<param name="start_value" type="int" help="The left/start value of the bar in range mode"/>
|
||
<param name="animated" type="bool" default="false" help="Animate the bar when changing its start value. Reference as `start_value-animated`"/>
|
||
</prop>
|
||
|
||
<prop name="mode" type="enum:lv_bar_mode" help="Select how the bar grows"/>
|
||
<prop name="orientation" type="enum:lv_bar_orientation" help="Select the bar’s orientation"/>
|
||
<prop name="bind_value" type="subject" help="Bind the bar’s value to a subject"/>
|
||
</api>
|
||
</widget>
|