Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
layout.h
1#ifndef OE_GUI_COMPONENT_LAYOUT_H
2#define OE_GUI_COMPONENT_LAYOUT_H
3
4#include "../component.h"
5#include <glm/vec2.hpp>
6
7namespace oe::gui::component
8{
9 class Row;
10
11 class Column : public Component
12 {
13 public:
14 Column(Row&, const float& height = 0.f);
15
16 void generate();
17
18 protected:
19 Row& _row;
20 float _height = 0;
21
22 friend class Row;
23 };
24
25 class Row : public Component
26 {
27 public:
36 Row(const float& height, const int& cols = 0);
37
38 void generate();
39
45 component::Column* createColumn(const float& height = 0.f);
46
47 protected:
48 float _height = 0;
49 int _cols = 0;
50 };
51
52}
53#endif
Definition component.h:22
T * createChild(Args &&... args)
Definition component.h:64
Definition layout.h:12
Definition layout.h:26
component::Column * createColumn(const float &height=0.f)
Row(const float &height, const int &cols=0)
UI components.
Definition component.h:15