1 #include "lxgui/gui_check_button.hpp"
2 #include "lxgui/gui_layout_node.hpp"
3 #include "lxgui/gui_parser_common.hpp"
4 #include "lxgui/gui_texture.hpp"
12 std::string
layer = special_node->get_attribute_value_or<std::string>(
"layer",
"ARTWORK");
16 defaulted.get_or_set_attribute_value(
"setAllAnchors",
"true");
20 tex->set_manually_inherited(
true);
25 special_node->bypass_access_check();
29 std::string
layer = special_node->get_attribute_value_or<std::string>(
"layer",
"ARTWORK");
33 defaulted.get_or_set_attribute_value(
"setAllAnchors",
"true");
37 tex->set_manually_inherited(
true);
42 special_node->bypass_access_check();
utils::observer_ptr< layered_region > parse_region_(const layout_node &node, const std::string &layer_name, const std::string &type)
An node in a layout file.
std::string_view get_or_set_attribute_value(std::string_view name, std::string_view value)
Returns the value of the attribute with the provided name, or set it if none.
const layout_node * try_get_child(std::string_view name) const noexcept
Returns the first child with a given name, or null if none.
layer
ID of a layer for rendering inside a frame.
void warn_for_not_accessed_node(const layout_node &node)
Emit a warning if this node (or any of its attributes/children) was not read.