BillySheet/include/gui/gui_data.hpp
Pcornat b759836989
Always functional.
Design : the controller controls data of the character sheet and also saving and reading data.
2022-01-17 22:00:26 +01:00

34 lines
576 B
C++

#ifndef BILLYSHEET_GUI_DATA_HPP
#define BILLYSHEET_GUI_DATA_HPP
#include <spdlog/spdlog.h>
namespace character {
class CharacterSheet;
}
namespace gui {
class Window;
class GuiData final {
private:
friend class Gui;
Window &window;
character::CharacterSheet &billy;
public:
GuiData() = delete;
explicit GuiData(Window &wwindow, character::CharacterSheet &billy) : window(wwindow), billy(billy) { SPDLOG_DEBUG("Creating GUI Data"); }
~GuiData() noexcept = default;
[[nodiscard]] Window &get_window() const;
};
}
#endif //BILLYSHEET_GUI_DATA_HPP