1 #ifndef LXGUI_GUI_LAYERED_REGION_HPP
2 #define LXGUI_GUI_LAYERED_REGION_HPP
4 #include "lxgui/gui_region.hpp"
5 #include "lxgui/lxgui.hpp"
6 #include "lxgui/utils.hpp"
38 std::string
serialize(
const std::string& tab)
const override;
85 static constexpr
const char*
class_name =
"LayeredRegion";
A region that can be rendered in a layer.
void parse_attributes_(const layout_node &node) override
void notify_renderer_need_redraw() override
Notifies the renderer of this region that it needs to be redrawn.
static constexpr const char * class_name
void parse_layout(const layout_node &node) override
Parses data from a layout_node.
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.
static void register_on_lua(sol::state &lua)
Registers this region class to the provided Lua state.
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
An node in a layout file.
Manages the user interface.
The base class of all elements in the GUI.
region(utils::control_block &block, manager &mgr, const region_core_attributes &attr)
Contructor.
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.