#include #include #include #include #include #include #include using namespace psemek; using namespace psemek::ui; namespace { constexpr float layout_margin = 5.f; struct rectangle_impl : impl::component { void update(rectangle const &) {} }; struct test_component_factory : impl::component_factory_base { test_component_factory() { register_type(); register_type(); register_type>([]{ return std::make_unique>(layout_margin); }); register_type>([]{ return std::make_unique>(layout_margin); }); } }; }