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(
Color c
) : Widget { },
color { c }
{
}
Rectangle::Rectangle(
Rect parent_rect,
Color c

View File

@ -168,6 +168,7 @@ protected:
class Rectangle : public Widget {
public:
Rectangle(Color c);
Rectangle(Rect parent_rect, Color c);
void paint(Painter& painter) override;