- demo->set_visible(false);
- root.add(*demo);
- root_layout.add_constraint(*demo, GLtk::Layout::RIGHT_OF, selector);
- root_layout.set_expand(*demo, true, true);
+ T &demo = root.add_new<T>();
+ demo.set_visible(false);
+ root_layout.add_constraint(demo, GLtk::Layout::RIGHT_OF, selector);
+ root_layout.set_expand(demo, true, true);