ofxDOM
A DOM Level 3 Events implementation for openFrameworks.
ofx::DOM::BoxLayout Class Reference
Inheritance diagram for ofx::DOM::BoxLayout:
ofx::DOM::Layout

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.
 
Elementparent ()
 
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.
 

Constructor & Destructor Documentation

ofx::DOM::BoxLayout::BoxLayout ( Element parent,
Orientation  orientation = Orientation::VERTICAL 
)

If the Orientation::DEFAULT is chosen, the default will be set to Orientation::HORIZONTAL.


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