ofxMUI
A Multi-touch GUI implementation built with ofxDOM for openFrameworks.
ofx::MUI::ButtonGroup Class Reference
Inheritance diagram for ofx::MUI::ButtonGroup:
ofx::MUI::Widget

Public Member Functions

 ButtonGroup (const std::string &id, DOM::Orientation orientation)
 
 ButtonGroup (const std::string &id, float x=0, float y=0, float width=Button::DEFAULT_WIDTH, float height=Button::DEFAULT_HEIGHT, DOM::Orientation orientation=DOM::Orientation::VERTICAL)
 
virtual void onDraw () const override
 
template<typename... Args>
RadioButtonaddRadioButton (Args &&...args)
 
template<typename... Args>
ToggleButtonaddToggleButton (Args &&...args)
 
- Public Member Functions inherited from ofx::MUI::Widget
 Widget (float x, float y, float width, float height)
 
 Widget (const std::string &id, float x, float y, float width, float height)
 
virtual ~Widget ()
 Destroy this Widget.
 
bool isPointerOver () const
 
bool isPointerDown () const
 
void setDropTarget (bool dropTarget)
 Enable or disable the Widget as a drop target. More...
 
bool isDropTarget () const
 Determine if this Widget is a drop target. More...
 
void setDraggable (bool draggable)
 Set draggability for this Widget. More...
 
bool isDraggable () const
 Determine if draggability is enabled for this Widget. More...
 
bool isDragging () const
 Determine if this Widget is being dragged. More...
 
std::shared_ptr< StylesgetStyles () const
 Get the Styles for this Widget. More...
 
void setStyles (std::shared_ptr< Styles > styles)
 Set the Styles for this Widget. More...
 

Public Attributes

DOM::DOMEvent< ButtonGroupEventArgsonButtonGroupEvent
 

Protected Member Functions

void _onButtonEvent (ButtonEventArgs &e)
 
- Protected Member Functions inherited from ofx::MUI::Widget
void _onPointerEvent (DOM::PointerUIEventArgs &e)
 Default callback for built-in events, including dragging.
 
void _onPointerCaptureEvent (DOM::PointerCaptureUIEventArgs &e)
 Default callback for built-in events, including dragging.
 

Protected Attributes

DOM::DOMEvent< ButtonEventArgsonButtonEvent
 
DOM::Orientation _orientation = DOM::Orientation::HORIZONTAL
 The ButtonGroup orientation.
 
- Protected Attributes inherited from ofx::MUI::Widget
bool _isDropTarget = false
 True iff the Widget is a target for dragged Widgets.
 
bool _isDraggable = false
 True iff the Widget is configured to be dragged.
 
bool _isDragging = false
 True iff the widget is currently being dragged.
 
bool _isPointerOver = false
 True iff the pointer is over the widget.
 
bool _moveToFrontOnCapture = true
 True if the element should move to the fron upon pointer capture.
 

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