A Widget is the base class for all MUI interactive elements.
More...
#include <Widget.h>
|
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.
|
|
A Widget is the base class for all MUI interactive elements.
std::shared_ptr< Styles > ofx::MUI::Widget::getStyles |
( |
| ) |
const |
bool ofx::MUI::Widget::isDraggable |
( |
| ) |
const |
Determine if draggability is enabled for this Widget.
- Returns
- true iff the draggability is enabled.
bool ofx::MUI::Widget::isDragging |
( |
| ) |
const |
Determine if this Widget is being dragged.
- Returns
- true if this Widget is being dragged.
bool ofx::MUI::Widget::isDropTarget |
( |
| ) |
const |
Determine if this Widget is a drop target.
- Returns
- true iff this Widget is a drop target.
bool ofx::MUI::Widget::isPointerDown |
( |
| ) |
const |
- Returns
- true if the pointer is down on this Widget.
bool ofx::MUI::Widget::isPointerOver |
( |
| ) |
const |
- Returns
- true if the pointer is over this Widget.
void ofx::MUI::Widget::setDraggable |
( |
bool |
draggable | ) |
|
Set draggability for this Widget.
- Parameters
-
draggable | True iff draggability is enabled. |
void ofx::MUI::Widget::setDropTarget |
( |
bool |
dropTarget | ) |
|
Enable or disable the Widget as a drop target.
- Parameters
-
dropTarget | True iff this Widget is a drop target. |
void ofx::MUI::Widget::setStyles |
( |
std::shared_ptr< Styles > |
styles | ) |
|
Set the Styles for this Widget.
If the style is set to nullptr, it will automatically adopt the root document style.
- Parameters
-
The documentation for this class was generated from the following files: