|
|
| PointerUIEventArgs (const PointerEventArgs &args, Element *source, Element *target, Element *relatedTarget=nullptr) |
| |
|
const PointerEventArgs & | pointer () const |
| |
|
Position | screenPosition () const |
| |
|
Position | localPosition () const |
| |
| | EventArgs (const std::string &type, Element *source, Element *target, bool bubbles, bool cancelable, uint64_t timestamp) |
| | Create EventArgs with a type. More...
|
| |
| | EventArgs (const std::string &type, Element *source, Element *target, Element *relatedTarget, bool bubbles, bool cancelable, uint64_t timestamp) |
| | Create EventArgs with a type. More...
|
| |
|
virtual | ~EventArgs () |
| | Destroy the EventArgs.
|
| |
| const std::string & | type () const |
| | Get the event type. More...
|
| |
| void | stopPropagation () |
| | Stop the propagation of the event. More...
|
| |
|
void | stopImmediatePropagation () |
| |
| void | preventDefault () |
| | Prevent any default actions associated with the event. More...
|
| |
| bool | isCancelled () const |
| |
| bool | isDefaultPrevented () const |
| |
| void | setPhase (Phase phase) |
| | Set the Phase of the event. More...
|
| |
| Phase | getPhase () const |
| |
| bool | bubbles () const |
| | Determine if the event has a bubbling phase. More...
|
| |
| bool | isCancelable () const |
| |
| Element * | source () |
| |
| Element * | target () |
| |
| Element * | relatedTarget () |
| |
| Element * | getCurrentTarget () |
| |
| const Element * | getCurrentTarget () const |
| |
| void | setCurrentTarget (Element *target) |
| | Set the current target Element. More...
|
| |
| uint64_t | timestamp () const |
| |
| std::string | toString () const |
| | A utility method to print get the Event as a std::string. More...
|
| |
|
|
static bool | eventBubbles (const std::string &event) |
| |
|
static bool | eventCancelable (const std::string &event) |
| |
|
|
PointerEventArgs | _pointer |
| |
|
std::string | _type |
| | The name of the event (case-insensitive).
|
| |
|
Element * | _source = nullptr |
| | The source of the event.
|
| |
|
Element * | _target = nullptr |
| | The event's target.
|
| |
|
Element * | _relatedTarget = nullptr |
| | The event's related target.
|
| |
|
bool | _bubbles = true |
| | Used to indicate whether or not an event is a bubbling event. If the event can bubble the value is true, else the value is false.
|
| |
|
bool | _cancelable = true |
| | Used to indicate whether propgation was stopped. The currentTarget will indicate which target stopped propagation.
|
| |
|
bool | _defaultPrevented = false |
| | Used to indicated.
|
| |
|
Element * | _currentTaget = nullptr |
| | Used to indicate the EventTarget whose EventListeners are currently being processed. This is particularly useful during capturing and bubbling.
|
| |
|
Phase | _phase = Phase::NONE |
| | Used to indicate which phase of event flow is currently being evaluated.
|
| |
|
bool | _canceled = false |
| | Used to indicate if an event is canceled.
|
| |
| uint64_t | _timestamp = 0 |
| | Used to specify the time (in milliseconds relative to the epoch) at which the event was created. More...
|
| |
The documentation for this class was generated from the following files: