1#ifndef LXGUI_GUI_ADDON_REGISTRY_HPP
2#define LXGUI_GUI_ADDON_REGISTRY_HPP
4#include "lxgui/gui_addon.hpp"
5#include "lxgui/lxgui.hpp"
8#include <unordered_map>
76 void load_addon_toc_(
const std::string& addon_name,
const std::string& addon_directory);
77 void load_addon_files_(
const addon& a);
79 void save_variables_(
const addon& a)
const noexcept;
81 void parse_layout_file_(
const std::string& file_name,
const addon& a);
84 using string_map = std::unordered_map<std::string, T>;
92 const addon* current_addon_ =
nullptr;
93 string_map<string_map<addon>> addon_list_;
addon_registry & operator=(addon_registry &&)=delete
addon_registry & operator=(const addon_registry &)=delete
addon_registry(addon_registry &&)=delete
const addon * get_current_addon()
Returns the addon that is being parsed.
void save_variables() const
Save Lua variables registred for saving for all addons.
void set_current_addon(const addon *a)
Sets the current addon.
void load_addon_directory(const std::string &directory)
Parse all addons inside a directory.
addon_registry(const addon_registry &)=delete
Generates events and keep tracks of registered callbacks.
Utility class to translate strings for display in GUI.
Root of the UI object hierarchy.
Root of the virtual UI object hierarchy.
A piece of the user interface.