lxgui
gui_parser_common.hpp
1 #ifndef LXGUI_GUI_PARSER_COMMON_HPP
2 #define LXGUI_GUI_PARSER_COMMON_HPP
3 
4 #include "lxgui/gui_region_core_attributes.hpp"
5 #include "lxgui/lxgui.hpp"
6 #include "lxgui/utils_observer.hpp"
7 
8 namespace lxgui::gui {
9 
10 class frame;
11 class registry;
12 class virtual_registry;
13 class layout_node;
14 
23 region_core_attributes parse_core_attributes(
24  registry& reg,
25  virtual_registry& vreg,
26  const layout_node& node,
27  utils::observer_ptr<frame> parent);
28 
33 void warn_for_not_accessed_node(const layout_node& node);
34 
35 } // namespace lxgui::gui
36 
37 #endif
region_core_attributes parse_core_attributes(registry &reg, virtual_registry &vreg, const layout_node &node, utils::observer_ptr< frame > parent)
Parse "core" attributes from a layout node, before creating 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.