Oxygen Engine
Modern C++ 3D Engine using OpenGL
|
Public Member Functions | |
Row (const float &height, const int &cols=0) | |
void | generate () |
component::Column * | createColumn (const float &height=0.f) |
![]() | |
Component (Manager *manager=nullptr) | |
template<typename T > | |
Component * | addChild (T *child) |
template<typename T > | |
Component * | addSibling (T *component) |
template<typename T , typename... Args> | |
T * | createChild (Args &&... args) |
template<typename T , typename... Args> | |
T & | createSibling (Args &&... args) |
template<typename T > | |
T * | getParent () |
template<typename... Args> | |
component::Row * | createRow (const float &height, const int &cols=0) |
Component * | setFont (const std::string &font_name) |
Component * | setManager (Manager *manager) |
void | generateChildren () |
Protected Attributes | |
float | _height = 0 |
int | _cols = 0 |
![]() | |
gui_id_t | _id = 0 |
Manager * | _manager |
nk_context * | _context |
nk_font * | _font = nullptr |
Component * | _parent |
std::vector< Component * > | _children |
Constructor
height | Height of the row. If 0, height is computed from children height |
cols | Number of columns in the row. If 0 it will be coputed from the children count |
component::Column * oe::gui::component::Row::createColumn | ( | const float & | height = 0.f | ) |
Create a column
|
virtual |
Implements oe::gui::Component.