|
| virtual_root (manager &mgr, registry &non_virtual_registry) |
| Constructor.
|
|
| ~virtual_root () override |
| Destructor.
|
|
| virtual_root (const virtual_root &)=delete |
|
| virtual_root (virtual_root &&)=delete |
|
virtual_root & | operator= (const virtual_root &)=delete |
|
virtual_root & | operator= (virtual_root &&)=delete |
|
manager & | get_manager () |
| Returns the manager instance associated with this root.
|
|
const manager & | get_manager () const |
| Returns the manager instance associated with this root.
|
|
virtual_registry & | get_registry () |
| Returns the UI object registry, which keeps track of all objects in the UI.
|
|
const virtual_registry & | get_registry () const |
| Returns the UI object registry, which keeps track of all objects in the UI.
|
|
utils::observer_ptr< frame > | create_root_frame (frame_core_attributes attr) |
| Creates a new frame, ready for use, and owned by this frame_container.
|
|
template<typename FrameType , typename Enable = typename std::enable_if<std::is_base_of<gui::frame, FrameType>::value>::type> |
utils::observer_ptr< frame > | create_root_frame (frame_core_attributes attr) |
| Creates a new frame, ready for use, and owned by this frame_container.
|
|
template<typename FrameType , typename Enable = typename std::enable_if<std::is_base_of<gui::frame, FrameType>::value>::type> |
utils::observer_ptr< frame > | create_root_frame (const std::string &name) |
| Creates a new frame, ready for use, and owned by this frame_container.
|
|
utils::observer_ptr< frame > | add_root_frame (utils::owner_ptr< frame > obj) |
| Make a frame owned by this frame_container.
|
|
utils::owner_ptr< frame > | remove_root_frame (const utils::observer_ptr< frame > &obj) |
| Remove a frame from the list of frames owned by this frame_container.
|
|
root_frame_list_view | get_root_frames () |
| Returns the root frame list.
|
|
const_root_frame_list_view | get_root_frames () const |
| Returns the root frame list.
|
|
void | garbage_collect () |
| Clean deleted entries from the frame list.
|
|
factory & | get_factory () |
| Returns the GUI object factory.
|
|
const factory & | get_factory () const |
| Returns the GUI object factory.
|
|
Root of the virtual UI object hierarchy.
This class contains and owns all virtual "root" frames (frames with no parents) and is responsible for their lifetime.
Definition at line 23 of file gui_virtual_root.hpp.
template<typename FrameType , typename Enable = typename std::enable_if<std::is_base_of<gui::frame, FrameType>::value>::type>
utils::observer_ptr< frame > lxgui::gui::frame_container::create_root_frame |
( |
const std::string & |
name | ) |
|
|
inlineinherited |
Creates a new frame, ready for use, and owned by this frame_container.
- Parameters
-
name | The name of this frame |
- Returns
- The new frame
- Note
- This function takes care of the basic initializing: the frame is directly usable. However, you still need to call notify_loaded() when you are done with any extra initialization you require on this frame. If you do not, the frame's OnLoad callback will not fire.
Definition at line 112 of file gui_frame_container.hpp.
template<typename FrameType , typename Enable = typename std::enable_if<std::is_base_of<gui::frame, FrameType>::value>::type>
Creates a new frame, ready for use, and owned by this frame_container.
- Parameters
-
attr | The core attributes of the frame (object_type and parent will be ignored) |
- Returns
- The new frame
- Note
- This function takes care of the basic initializing: the frame is directly usable. However, you still need to call notify_loaded() when you are done with any extra initialization you require on this frame. If you do not, the frame's OnLoad callback will not fire.
Definition at line 91 of file gui_frame_container.hpp.