1 #include "lxgui/gui_layered_region.hpp"
3 #include "lxgui/gui_frame.hpp"
4 #include "lxgui/gui_manager.hpp"
5 #include "lxgui/gui_out.hpp"
6 #include "lxgui/gui_region.hpp"
7 #include "lxgui/gui_region_tpl.hpp"
15 base(block, mgr, attr) {
21 std::ostringstream str;
23 str << tab <<
" # Layer : " << utils::to_string(
layer_) <<
"\n";
32 return parent_->remove_region(utils::static_pointer_cast<layered_region>(observer_from_this()));
45 parent_->notify_layers_need_update();
58 parent_->notify_layers_need_update();
66 parent_->notify_renderer_need_redraw();
70 return get_type_list_impl_<layered_region>();
void notify_renderer_need_redraw() override
Notifies the renderer of this region that it needs to be redrawn.
void set_region_level(int region_level)
Sets this layered_region's region level.
layered_region(utils::control_block &block, manager &mgr, const region_core_attributes &attr)
Constructor.
std::string serialize(const std::string &tab) const override
Prints all relevant information about this region in a string.
layer get_draw_layer() const
Returns this layered_region's draw layer.
utils::owner_ptr< region > release_from_parent() override
Removes this region from its parent and return an owning pointer.
int get_region_level() const
Sets the region level.
void set_draw_layer(layer layer_id)
Sets this layered_region's draw layer.
const std::vector< std::string > & get_type_list_() const override
Manages the user interface.
The base class of all elements in the GUI.
void initialize_(T &self, const region_core_attributes &attr)
Set up function to call in all derived class constructors.
utils::observer_ptr< frame > parent_
virtual std::string serialize(const std::string &tab) const
Prints all relevant information about this region in a string.
layer
ID of a layer for rendering inside a frame.
oup::observable_sealed_ptr< T > owner_ptr
Struct holding all the core information about a region necessary for its creation.