26 lines
440 B
C++
26 lines
440 B
C++
#include <psemek/ui/impl/component.hpp>
|
|
|
|
namespace psemek::ui::impl
|
|
{
|
|
|
|
util::span<std::unique_ptr<component> const> component::children() const
|
|
{
|
|
return {};
|
|
}
|
|
|
|
geom::box<float, 2> const & component::shape() const
|
|
{
|
|
return shape_;
|
|
}
|
|
|
|
void component::reshape(geom::box<float, 2> const & new_shape)
|
|
{
|
|
shape_ = new_shape;
|
|
}
|
|
|
|
geom::interval<float> component::size_constraints(int, float) const
|
|
{
|
|
return {0.f, infinity};
|
|
}
|
|
|
|
}
|