Add Color-only constructor to ui::Rectangle widget.

This commit is contained in:
Jared Boone 2016-05-25 11:32:06 -07:00
parent 38b374506e
commit ff57b3c8cb
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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;