mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-27 16:17:31 -04:00
Added utilities > Frequency manager + load/save
This commit is contained in:
parent
ad2a4b6743
commit
7df5987b3b
21 changed files with 526 additions and 219 deletions
|
@ -316,7 +316,7 @@ Text::Text(
|
|||
Rect parent_rect,
|
||||
std::string text
|
||||
) : Widget { parent_rect },
|
||||
text { text }
|
||||
text_ { text }
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -327,10 +327,14 @@ Text::Text(
|
|||
}
|
||||
|
||||
void Text::set(const std::string value) {
|
||||
text = value;
|
||||
text_ = value;
|
||||
set_dirty();
|
||||
}
|
||||
|
||||
std::string Text::text() const {
|
||||
return text_;
|
||||
}
|
||||
|
||||
void Text::paint(Painter& painter) {
|
||||
const auto rect = screen_rect();
|
||||
const auto s = style();
|
||||
|
@ -340,7 +344,7 @@ void Text::paint(Painter& painter) {
|
|||
painter.draw_string(
|
||||
rect.pos,
|
||||
s,
|
||||
text
|
||||
text_
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue