mirror of https://github.com/bsnes-emu/bsnes.git
31 lines
979 B
C++
31 lines
979 B
C++
|
struct mHorizontalLayout : mLayout {
|
||
|
using type = mHorizontalLayout;
|
||
|
using mLayout::append;
|
||
|
using mLayout::remove;
|
||
|
|
||
|
auto append(nall::shared_pointer<mSizable> sizable, Size size, signed spacing = 5) -> type&;
|
||
|
auto minimumSize() const -> Size override;
|
||
|
auto remove(nall::shared_pointer<mSizable> sizable) -> type& override;
|
||
|
auto reset() -> type& override;
|
||
|
auto setAlignment(double alignment = 0.5) -> type&;
|
||
|
auto setEnabled(bool enabled = true) -> type& override;
|
||
|
auto setFont(const nall::string& font = "") -> type& override;
|
||
|
auto setGeometry(Geometry geometry) -> type& override;
|
||
|
auto setMargin(signed margin = 0) -> type&;
|
||
|
auto setSpacing(signed spacing = 5) -> type&;
|
||
|
auto setVisible(bool visible = true) -> type&;
|
||
|
|
||
|
struct Settings {
|
||
|
double alignment = 0.5;
|
||
|
signed margin = 0;
|
||
|
signed spacing = 5;
|
||
|
} settings;
|
||
|
|
||
|
struct Property {
|
||
|
signed width;
|
||
|
signed height;
|
||
|
signed spacing;
|
||
|
};
|
||
|
nall::vector<Property> properties;
|
||
|
};
|