2015-06-12 13:14:38 +00:00
|
|
|
#if defined(Hiro_Layout)
|
|
|
|
|
|
|
|
namespace hiro {
|
|
|
|
|
|
|
|
auto pLayout::construct() -> void {
|
|
|
|
}
|
|
|
|
|
|
|
|
auto pLayout::destruct() -> void {
|
|
|
|
}
|
|
|
|
|
|
|
|
auto pLayout::setEnabled(bool enabled) -> void {
|
2015-06-15 22:26:47 +00:00
|
|
|
for(auto& sizable : state().sizables) {
|
|
|
|
if(auto self = sizable->self()) self->setEnabled(sizable->enabled(true));
|
|
|
|
}
|
2015-06-12 13:14:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
auto pLayout::setFont(const string& font) -> void {
|
2015-06-15 22:26:47 +00:00
|
|
|
for(auto& sizable : state().sizables) {
|
|
|
|
if(auto self = sizable->self()) self->setFont(sizable->font(true));
|
|
|
|
}
|
2015-06-12 13:14:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
auto pLayout::setVisible(bool visible) -> void {
|
2015-06-15 22:26:47 +00:00
|
|
|
for(auto& sizable : state().sizables) {
|
|
|
|
if(auto self = sizable->self()) self->setVisible(sizable->visible(true));
|
|
|
|
}
|
2015-06-12 13:14:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|