|
Ultralight C++ API 2.0.0
|
#include <Ultralight/dom/Event.h>
A form submission event (SubmitEvent).
Get one with Event::AsSubmit() in a submit listener. It adds the button that submitted the form.
Public Member Functions | |
| SubmitEvent (ULDOMEvent borrowed) | |
| Wrap an event handle from the C API (Event::AsSubmit() is the usual way to get one). | |
| Element | submitter () const |
| Get the button that submitted the form (submitter). | |
| Public Member Functions inherited from Event | |
| Event (ULDOMEvent borrowed) | |
| Wrap an event handle from the C API. | |
| Event (const Event &)=delete | |
| Event & | operator= (const Event &)=delete |
| std::string | type () const |
| Get the event's type (type). | |
| unsigned | eventPhase () const |
| Get the current dispatch phase (eventPhase). | |
| bool | bubbles () const |
| Whether or not the event bubbles up the tree (bubbles). | |
| bool | cancelable () const |
| Whether or not preventDefault() can cancel the event (cancelable). | |
| bool | isTrusted () const |
| Whether or not the event came from user input or the library (isTrusted). | |
| double | timeStamp () const |
| Get the time the event was created (timeStamp). | |
| bool | defaultPrevented () const |
| Whether or not the event was canceled (defaultPrevented). | |
| void | preventDefault () const |
| Cancel the event's default action (preventDefault). | |
| void | stopPropagation () const |
| Stop the event from reaching other targets (stopPropagation). | |
| void | stopImmediatePropagation () const |
| Stop the event from reaching any other listener (stopImmediatePropagation). | |
| Element | target () const |
| Get the element the event was dispatched to (target). | |
| Node | targetNode () const |
| Get the node the event was dispatched to (target). | |
| Element | currentTarget () const |
| Get the element whose listener is running (currentTarget). | |
| MouseEvent | AsMouse () const |
| View this event as a MouseEvent. | |
| WheelEvent | AsWheel () const |
| View this event as a WheelEvent. | |
| KeyboardEvent | AsKeyboard () const |
| View this event as a KeyboardEvent. | |
| FocusEvent | AsFocus () const |
| View this event as a FocusEvent. | |
| InputEvent | AsInput () const |
| View this event as an InputEvent. | |
| SubmitEvent | AsSubmit () const |
| View this event as a SubmitEvent. | |
| CustomEvent | AsCustom () const |
| View this event as a CustomEvent. | |
| ULDOMEvent | raw () const |
| Get the C handle, for passing to the <Ultralight/CAPI/CAPI_DOMEvent.h> functions. | |
|
inlineexplicit |
Wrap an event handle from the C API (Event::AsSubmit() is the usual way to get one).
| borrowed | The event handle passed to a C listener callback. |
|
inline |
Get the button that submitted the form (submitter).