3#include "../../text/fonts/fonts.hpp"
8#include <unordered_map>
15 bool dragging =
false;
16 bool resizing =
false;
17 Vector2 offset = { 0, 0 };
34 Window(Rectangle WindowRect, std::string Title,
bool Draggable,
bool Resizeable,
bool Shown,
int Outline, Vector2 MaxSize)
45 virtual bool draw(std::vector<Shirag::Text::Font>* Fonts);
46 virtual bool update(
bool SkipUpdate, std::vector<Shirag::Text::Font>* Fonts);
51 std::unordered_map<std::string, std::unique_ptr<Window>>
windows;
52 void draw(std::vector<Shirag::Text::Font>* Fonts);
53 bool update(std::vector<Shirag::Text::Font>* Fonts);
Definition windowSystem.hpp:12
Vector2 minSize
Definition windowSystem.hpp:29
virtual bool draw(std::vector< Shirag::Text::Font > *Fonts)
Definition windowSystem.cpp:94
bool mouseCursorChanged
Definition windowSystem.hpp:31
virtual bool update(bool SkipUpdate, std::vector< Shirag::Text::Font > *Fonts)
Definition windowSystem.cpp:24
bool shown
Definition windowSystem.hpp:28
std::string title
Definition windowSystem.hpp:25
float outline
Definition windowSystem.hpp:20
Rectangle window
Definition windowSystem.hpp:24
bool onTop
Definition windowSystem.hpp:32
Vector2 maxSize
Definition windowSystem.hpp:30
virtual ~Window()=default
bool resizable
Definition windowSystem.hpp:27
bool draggable
Definition windowSystem.hpp:26
Window(Rectangle WindowRect, std::string Title, bool Draggable, bool Resizeable, bool Shown, int Outline, Vector2 MaxSize)
Definition windowSystem.hpp:34
Definition windowSystem.hpp:49
bool update(std::vector< Shirag::Text::Font > *Fonts)
Definition windowSystem.cpp:108
void draw(std::vector< Shirag::Text::Font > *Fonts)
Definition windowSystem.cpp:152
std::unordered_map< std::string, std::unique_ptr< Window > > windows
Definition windowSystem.hpp:51
void toggleWindow(std::string key)
Definition windowSystem.cpp:167
Definition windowSystem.hpp:10
bool IsMouseWithinWindow()
Definition windowSystem.cpp:11