2022-01-14 22:06:07 +01:00
|
|
|
#ifndef BILLYSHEET_MENU_HPP
|
|
|
|
#define BILLYSHEET_MENU_HPP
|
|
|
|
|
|
|
|
#include <spdlog/spdlog.h>
|
|
|
|
|
|
|
|
namespace gui {
|
2024-01-28 20:31:50 +01:00
|
|
|
class GuiData;
|
2022-01-14 22:06:07 +01:00
|
|
|
|
2024-01-28 20:31:50 +01:00
|
|
|
namespace menu {
|
|
|
|
class MenuData;
|
2022-01-14 22:06:07 +01:00
|
|
|
|
2024-01-28 20:31:50 +01:00
|
|
|
class Menu final {
|
|
|
|
private:
|
|
|
|
MenuData &data;
|
|
|
|
public:
|
|
|
|
Menu() noexcept = delete;
|
2022-01-14 22:06:07 +01:00
|
|
|
|
2024-01-28 20:31:50 +01:00
|
|
|
explicit Menu(MenuData &data) noexcept;
|
2022-01-14 22:06:07 +01:00
|
|
|
|
2024-01-28 20:31:50 +01:00
|
|
|
~Menu() noexcept = default;
|
2022-01-14 22:06:07 +01:00
|
|
|
|
2024-01-28 20:31:50 +01:00
|
|
|
void gui() const noexcept;
|
2022-01-14 22:06:07 +01:00
|
|
|
|
2024-01-28 20:31:50 +01:00
|
|
|
[[nodiscard]] const MenuData &get_data() const { return data; }
|
|
|
|
};
|
|
|
|
}
|
2022-01-14 22:06:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif //BILLYSHEET_MENU_HPP
|