rename Widget::visible to Widget::drawn (#3066)

* rename Widget::visible to Widget::drawn

* Update firmware/standalone/common/ui/ui_widget.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update firmware/standalone/common/ui/ui_widget.hpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix fm_radio usage of drawn()

---------

Co-authored-by: gullradriel <3157857+gullradriel@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
E.T.
2026-03-04 21:30:43 +01:00
committed by GitHub
parent 60ce89021a
commit 2b7302e659
11 changed files with 48 additions and 48 deletions
+4 -4
View File
@@ -126,8 +126,8 @@ class Widget {
bool dirty() const;
void set_clean();
void visible(bool v);
bool visible() { return flags.visible; };
void drawn(bool v);
bool drawn() { return flags.drawn; };
bool highlighted() const;
void set_highlighted(const bool value);
@@ -146,7 +146,7 @@ class Widget {
bool hidden : 1; // Hide widget and children.
bool focusable : 1; // Widget can receive focus.
bool highlighted : 1; // Show in a highlighted style.
bool visible : 1; // Object was visible during last paint.
bool drawn : 1; // Object was drawn during last paint.
};
flags_t flags{
@@ -154,7 +154,7 @@ class Widget {
.hidden = false,
.focusable = false,
.highlighted = false,
.visible = false,
.drawn = false,
};
static const std::vector<Widget*> no_children;