mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-20 15:57:46 +00:00
Move widget tree painting to ui::Painter.
Still doesn't seem like the right place, but better than the event dispatcher!
This commit is contained in:
@@ -37,6 +37,8 @@ struct Style {
|
||||
Style invert() const;
|
||||
};
|
||||
|
||||
class Widget;
|
||||
|
||||
class Painter {
|
||||
public:
|
||||
Painter() { };
|
||||
@@ -51,6 +53,8 @@ public:
|
||||
void draw_rectangle(const Rect r, const Color c);
|
||||
void fill_rectangle(const Rect r, const Color c);
|
||||
|
||||
void paint_widget(Widget* const w);
|
||||
|
||||
private:
|
||||
void draw_hline(Point p, size_t width, const Color c);
|
||||
void draw_vline(Point p, size_t height, const Color c);
|
||||
|
Reference in New Issue
Block a user