mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-12 08:27:38 +00:00
Add Color-only constructor to ui::Rectangle widget.
This commit is contained in:
@@ -256,6 +256,13 @@ std::string View::title() const {
|
|||||||
|
|
||||||
/* Rectangle *************************************************************/
|
/* Rectangle *************************************************************/
|
||||||
|
|
||||||
|
Rectangle::Rectangle(
|
||||||
|
Color c
|
||||||
|
) : Widget { },
|
||||||
|
color { c }
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
Rectangle::Rectangle(
|
Rectangle::Rectangle(
|
||||||
Rect parent_rect,
|
Rect parent_rect,
|
||||||
Color c
|
Color c
|
||||||
|
@@ -168,6 +168,7 @@ protected:
|
|||||||
|
|
||||||
class Rectangle : public Widget {
|
class Rectangle : public Widget {
|
||||||
public:
|
public:
|
||||||
|
Rectangle(Color c);
|
||||||
Rectangle(Rect parent_rect, Color c);
|
Rectangle(Rect parent_rect, Color c);
|
||||||
|
|
||||||
void paint(Painter& painter) override;
|
void paint(Painter& painter) override;
|
||||||
|
Reference in New Issue
Block a user