diff --git a/libs/ui/source/controller.cpp b/libs/ui/source/controller.cpp index e0b302a1..83e53394 100644 --- a/libs/ui/source/controller.cpp +++ b/libs/ui/source/controller.cpp @@ -27,7 +27,7 @@ namespace psemek::ui using element::reshape; - void reshape(geom::box const & bbox) + void reshape(geom::box const & bbox) override { shape_.box = bbox; if (root) diff --git a/libs/ui/source/default_element_factory.cpp b/libs/ui/source/default_element_factory.cpp index c0785721..8d744dc8 100644 --- a/libs/ui/source/default_element_factory.cpp +++ b/libs/ui/source/default_element_factory.cpp @@ -320,18 +320,18 @@ namespace psemek::ui { struct shape const & shape() const override { return shape_; } - void reshape(geom::box const & bbox) + void reshape(geom::box const & bbox) override { shape_.box = bbox; } - geom::box size_constraints() const + geom::box size_constraints() const override { static float const inf = std::numeric_limits::infinity(); return {{{button_width(), inf}, {button_height(), inf}}}; } - void draw(painter & p) const + void draw(painter & p) const override { auto st = merged_style();