ofxDOM
A DOM Level 3 Events implementation for openFrameworks.
|
A base class for laying out Elements. More...
#include <Layout.h>
Public Member Functions | |
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. | |
virtual void | doLayout ()=0 |
Do. | |
Protected Attributes | |
Element * | _parent = nullptr |
The owning Widget class. | |
bool | _isDoingLayout = false |
True if in doLayout(). Used to prevent recusive calls. | |
Friends | |
class | Element |
A base class for laying out Elements.
Generally this class and its subclasses should not be instantiated directly but instead should be created using Element::createLayout<LayoutType>(...). This pattern preserves the ownership of the Layout.
ofx::DOM::Layout::Layout | ( | Element * | parent | ) |
bool ofx::DOM::Layout::isDoingLayout | ( | ) | const |