mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Add Color-only constructor to ui::Rectangle widget.
This commit is contained in:
parent
38b374506e
commit
ff57b3c8cb
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user