Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
window.h
1#ifndef OE_GUI_COMPONENT_WINDOW_H
2#define OE_GUI_COMPONENT_WINDOW_H
3
4#include "../component.h"
5#include <glm/vec2.hpp>
6
7namespace oe::gui::component
8{
9 class Window : public Component
10 {
11 public:
12 Window(const std::string& name, const int& flags);
13
14 void setTitle(const std::string& title) { _title = title; }
15 void setPosition(const glm::vec2& position) { _position = position; }
16 void setSize(const glm::vec2& size) { _size = size; }
17
18 //Layout* addRow(const float& height, const int& cols);
19
20 std::string getName()
21 {
22 return _name;
23 }
24
25 std::string getTitle()
26 {
27 return _title;
28 }
29
30 void generate();
31
32 private:
33 std::string _name;
34 std::string _title;
35
36 int _flags;
37
38 glm::vec2 _position;
39 glm::vec2 _size;
40 };
41}
42#endif
Definition component.h:22
Definition window.h:10
UI components.
Definition component.h:15