feat(style): add lv_obj_bind_style_prop (#9173)

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Liam Howatt <30486941+liamHowatt@users.noreply.github.com>
This commit is contained in:
Gabor Kiss-Vamosi
2025-11-13 20:02:43 +01:00
committed by GitHub
parent 483cb38f60
commit ebc48b5c56
14 changed files with 279 additions and 60 deletions
+6
View File
@@ -60,6 +60,12 @@ Example
<arg name="ref_value" type="int" help="Value that activates the style"/>
</element>
<element name="bind_style_prop" access="custom" type="void" help="Bind a style to a subject value">
<arg name="prop" type="style_prop" help="Name of a style property"/>
<arg name="selector" type="selector+" default="0" help="Selector (part and/or state)"/>
<arg name="subject" type="subject" help="Subject to bind"/>
</element>
<element name="event_cb" access="add" type="void" help="Attach an event callback">
<arg name="callback" type="event_cb" help="Callback function"/>
<arg name="trigger" type="lv_event" default="clicked" help="Event to trigger callback"/>