1 #include "lxgui/gui_layout_node.hpp"
2 #include "lxgui/gui_manager.hpp"
3 #include "lxgui/gui_out.hpp"
4 #include "lxgui/gui_scroll_frame.hpp"
15 if (scroll_child_node->get_child_count() == 0) {
17 <<
": ScrollChild node needs a child node." << std::endl;
21 if (scroll_child_node->get_child_count() > 1) {
23 <<
": ScrollChild node needs only one child node; other nodes will be ignored."
36 <<
"Scroll child's anchors are ignored." << std::endl;
41 <<
": Scroll child needs its size to be defined in a Size block." << std::endl;
virtual void parse_all_nodes_before_children_(const layout_node &node)
utils::owner_ptr< frame > remove_child(const utils::observer_ptr< frame > &child)
Removes a frame from this frame's children.
utils::observer_ptr< frame > parse_child_(const layout_node &node, const std::string &type)
std::string_view get_location() const noexcept
Returns this node's location in the file as {file}:{line}.
An node in a layout file.
const layout_node & get_child(std::size_t index) const noexcept
Returns a specific child of this node, by index.
const layout_node * try_get_child(std::string_view name) const noexcept
Returns the first child with a given name, or null if none.
bool has_child(std::string_view name) const noexcept
Checks if at least one child exists with the given name.
const std::string warning