Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
oe::gui::component::Row Class Reference
Inheritance diagram for oe::gui::component::Row:
[legend]
Collaboration diagram for oe::gui::component::Row:
[legend]

Public Member Functions

 Row (const float &height, const int &cols=0)
 
void generate ()
 
component::ColumncreateColumn (const float &height=0.f)
 
- Public Member Functions inherited from oe::gui::Component
 Component (Manager *manager=nullptr)
 
template<typename T >
ComponentaddChild (T *child)
 
template<typename T >
ComponentaddSibling (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::RowcreateRow (const float &height, const int &cols=0)
 
ComponentsetFont (const std::string &font_name)
 
ComponentsetManager (Manager *manager)
 
void generateChildren ()
 

Protected Attributes

float _height = 0
 
int _cols = 0
 
- Protected Attributes inherited from oe::gui::Component
gui_id_t _id = 0
 
Manager_manager
 
nk_context * _context
 
nk_font * _font = nullptr
 
Component_parent
 
std::vector< Component * > _children
 

Constructor & Destructor Documentation

◆ Row()

oe::gui::component::Row::Row ( const float &  height,
const int &  cols = 0 
)

Constructor

Parameters
heightHeight of the row. If 0, height is computed from children height
colsNumber of columns in the row. If 0 it will be coputed from the children count
Note
if cols is less than the actual number of children, the row will be display on multiples lines

Member Function Documentation

◆ createColumn()

component::Column * oe::gui::component::Row::createColumn ( const float &  height = 0.f)

Create a column

Returns
Pointer to the created row

◆ generate()

void oe::gui::component::Row::generate ( )
virtual

Implements oe::gui::Component.


The documentation for this class was generated from the following file: