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