mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-09 16:19:37 +00:00
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:
@@ -127,8 +127,8 @@ class Widget {
|
||||
bool dirty() const;
|
||||
void set_clean();
|
||||
|
||||
void visible(bool v);
|
||||
bool visible() { return flags.visible; };
|
||||
void drawn(bool v);
|
||||
bool drawn() const { return flags.drawn; };
|
||||
|
||||
bool highlighted() const;
|
||||
void set_highlighted(const bool value);
|
||||
@@ -147,7 +147,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{
|
||||
@@ -155,7 +155,7 @@ class Widget {
|
||||
.hidden = false,
|
||||
.focusable = false,
|
||||
.highlighted = false,
|
||||
.visible = false,
|
||||
.drawn = false,
|
||||
};
|
||||
|
||||
static const std::vector<Widget*> no_children;
|
||||
|
||||
Reference in New Issue
Block a user