ofxDOM
A DOM Level 3 Events implementation for openFrameworks.
|
Public Member Functions | |
BoxLayout (Element *parent, Orientation orientation=Orientation::VERTICAL) | |
virtual void | doLayout () override |
Do. | |
Orientation | orientation () const |
Public Member Functions inherited from ofx::DOM::Layout | |
Layout (Element *parent) | |
Create a Layout with a given Element parent. More... | |
virtual | ~Layout () |
Destroy the layout. | |
Element * | parent () |
bool | isDoingLayout () const |
std::vector< Element * > | children () |
Get all of the children for this element. | |
Protected Attributes | |
Orientation | _orientation = Orientation::HORIZONTAL |
Protected Attributes inherited from ofx::DOM::Layout | |
Element * | _parent = nullptr |
The owning Widget class. | |
bool | _isDoingLayout = false |
True if in doLayout(). Used to prevent recusive calls. | |
ofx::DOM::BoxLayout::BoxLayout | ( | Element * | parent, |
Orientation | orientation = Orientation::VERTICAL |
||
) |
If the Orientation::DEFAULT is chosen, the default will be set to Orientation::HORIZONTAL.