26 template<
typename Elem>
27 void Add(std::shared_ptr<Elem> Elm)
29 static_assert(std::is_base_of<elm::Element, Elem>::value,
"Elements must inherit from pu::ui::elm::Element!");
31 elms.push_back(std::dynamic_pointer_cast<elm::Element>(Elm));
34 elm::Element::Ref &
At(
i32 Index);
35 bool Has(elm::Element::Ref &Elm);
52 std::vector<elm::Element::Ref>
elms;
void SetHeight(i32 Height)
bool Has(elm::Element::Ref &Elm)
i32 y
Definition: ui_Container.hpp:49
i32 h
Definition: ui_Container.hpp:51
elm::Element::Ref & At(i32 Index)
std::vector< elm::Element::Ref > elms
Definition: ui_Container.hpp:52
Container(i32 X, i32 Y, i32 Width, i32 Height)
s32 i32
Definition: pu_Macros.hpp:17
i32 w
Definition: ui_Container.hpp:50
#define PU_SMART_CTOR(type)
Definition: pu_Macros.hpp:8
i32 x
Definition: ui_Container.hpp:48
Definition: ui_Container.hpp:20
void Add(std::shared_ptr< Elem > Elm)
Definition: ui_Container.hpp:27