Add missing override specifications

This commit is contained in:
Nikita Lisitsa 2021-05-28 11:32:21 +03:00
parent 0f51c136f2
commit 5e62e6fa26
2 changed files with 4 additions and 4 deletions

View file

@ -27,7 +27,7 @@ namespace psemek::ui
using element::reshape;
void reshape(geom::box<float, 2> const & bbox)
void reshape(geom::box<float, 2> const & bbox) override
{
shape_.box = bbox;
if (root)

View file

@ -320,18 +320,18 @@ namespace psemek::ui
{
struct shape const & shape() const override { return shape_; }
void reshape(geom::box<float, 2> const & bbox)
void reshape(geom::box<float, 2> const & bbox) override
{
shape_.box = bbox;
}
geom::box<float, 2> size_constraints() const
geom::box<float, 2> size_constraints() const override
{
static float const inf = std::numeric_limits<float>::infinity();
return {{{button_width(), inf}, {button_height(), inf}}};
}
void draw(painter & p) const
void draw(painter & p) const override
{
auto st = merged_style();