arch(obj): replace lv_obj_flag... with dedicated API for each flag (#10316)

This commit is contained in:
Gabor Kiss-Vamosi
2026-07-02 10:41:57 +02:00
committed by GitHub
parent 8274446cec
commit 546a69f2e2
139 changed files with 1694 additions and 552 deletions
@@ -32,6 +32,11 @@ class LVMsgbox(LVObject):
def title(self):
return ptr_or_none(self._wv.safe_field("title"))
@property
def auto_parent(self):
"""Mark that the parent was automatically created"""
return int(self._wv.safe_field("auto_parent", 0))
def snapshot(self, include_children=False, include_styles=False):
"""Snapshot with widget-specific fields in widget_data."""
s = super().snapshot(include_children=include_children, include_styles=include_styles)
@@ -40,5 +45,6 @@ class LVMsgbox(LVObject):
d["content"] = self.content
d["footer"] = self.footer
d["title"] = self.title
d["auto_parent"] = self.auto_parent
s['widget_data'] = d
return s
@@ -478,7 +478,8 @@
"header": "pointer",
"content": "pointer",
"footer": "pointer",
"title": "pointer"
"title": "pointer",
"auto_parent": "bool"
}
},
"summary_tpl": "",