libdom
Loading...
Searching...
No Matches
Macros | Typedefs | Functions
text_event.h File Reference
#include <stdbool.h>
#include <dom/core/exceptions.h>
#include <dom/core/string.h>

Go to the source code of this file.

Macros

#define dom_text_event_get_data(e, d)
 
#define dom_text_event_init(e, t, b, c, v, d)
 
#define dom_text_event_init_ns(e, n, t, b, c, v, d)
 

Typedefs

typedef struct dom_text_event dom_text_event
 

Functions

dom_exception _dom_text_event_get_data (dom_text_event *evt, dom_string **data)
 
dom_exception _dom_text_event_init (dom_text_event *evt, dom_string *type, bool bubble, bool cancelable, struct dom_abstract_view *view, dom_string *data)
 
dom_exception _dom_text_event_init_ns (dom_text_event *evt, dom_string *namespace_name, dom_string *type, bool bubble, bool cancelable, struct dom_abstract_view *view, dom_string *data)
 

Macro Definition Documentation

◆ dom_text_event_get_data

#define dom_text_event_get_data (   e,
 
)
Value:
(dom_text_event *) (e), (dom_string **) (d))
dom_exception _dom_text_event_get_data(dom_text_event *evt, dom_string **data)
Definition text_event.c:69
Definition string.h:19
Definition text_event.h:18

◆ dom_text_event_init

#define dom_text_event_init (   e,
  t,
  b,
  c,
  v,
 
)
Value:
(dom_text_event *) (e), (dom_string *) (t), (bool) (b), \
(bool) (c), (struct dom_abstract_view *) (v),\
(dom_string *) (d))
dom_exception _dom_text_event_init(dom_text_event *evt, dom_string *type, bool bubble, bool cancelable, struct dom_abstract_view *view, dom_string *data)
Definition text_event.c:89

◆ dom_text_event_init_ns

#define dom_text_event_init_ns (   e,
  n,
  t,
  b,
  c,
  v,
 
)
Value:
(dom_text_event *) (e), (dom_string *) (n), \
(dom_string *) (t), (bool) (b), (bool) (c), \
(struct dom_abstract_view *) (v), (dom_string *) (d))
dom_exception _dom_text_event_init_ns(dom_text_event *evt, dom_string *namespace_name, dom_string *type, bool bubble, bool cancelable, struct dom_abstract_view *view, dom_string *data)
Definition text_event.c:112

Typedef Documentation

◆ dom_text_event

Function Documentation

◆ _dom_text_event_get_data()

dom_exception _dom_text_event_get_data ( dom_text_event evt,
dom_string **  data 
)

Get the internal data of this event

Parameters
evtThe Event object
dataThe internal data of this Event
Returns
DOM_NO_ERR.

◆ _dom_text_event_init()

dom_exception _dom_text_event_init ( dom_text_event evt,
dom_string type,
bool  bubble,
bool  cancelable,
struct dom_abstract_view *  view,
dom_string data 
)

Initialise the TextEvent

Parameters
evtThe Event object
typeThe type of this UIEvent
bubbleWhether this event can bubble
cancelableWhether this event is cancelable
viewThe AbstractView of this UIEvent
dataThe text data
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

◆ _dom_text_event_init_ns()

dom_exception _dom_text_event_init_ns ( dom_text_event evt,
dom_string namespace_name,
dom_string type,
bool  bubble,
bool  cancelable,
struct dom_abstract_view *  view,
dom_string data 
)

Initialise the TextEvent with namespace

Parameters
evtThe Event object
namespaceThe namespace of this Event
typeThe type of this UIEvent
bubbleWhether this event can bubble
cancelableWhether this event is cancelable
viewThe AbstractView of this UIEvent
dataThe text data
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.