bsnes/hiro/extension/fixed-layout.hpp

24 lines
658 B
C++

#if defined(Hiro_FixedLayout)
struct mFixedLayout : mLayout {
using type = mFixedLayout;
using mLayout::append;
using mLayout::remove;
auto append(sSizable sizable, Geometry geometry) -> type&;
auto modify(sSizable sizable, Geometry geometry) -> type&;
auto minimumSize() const -> Size override;
auto remove(sSizable sizable) -> type& override;
auto reset() -> type& override;
auto setEnabled(bool enabled = true) -> type& override;
auto setFont(const Font& font = {}) -> type& override;
auto setVisible(bool visible = true) ->type& override;
struct Property {
Geometry geometry;
};
vector<Property> properties;
};
#endif