libdom
Loading...
Searching...
No Matches
custom_event.c File Reference
#include <stdlib.h>
#include "events/custom_event.h"
#include "core/document.h"

Functions

dom_exception _dom_custom_event_create (struct dom_custom_event **evt)
 
void _dom_custom_event_destroy (struct dom_custom_event *evt)
 
dom_exception _dom_custom_event_initialise (struct dom_custom_event *evt)
 
void _dom_custom_event_finalise (struct dom_custom_event *evt)
 
dom_exception _dom_custom_event_get_detail (dom_custom_event *evt, void **detail)
 
dom_exception _dom_custom_event_init_ns (dom_custom_event *evt, dom_string *namespace, dom_string *type, bool bubble, bool cancelable, void *detail)
 

Function Documentation

◆ _dom_custom_event_create()

dom_exception _dom_custom_event_create ( struct dom_custom_event ** evt)

◆ _dom_custom_event_destroy()

void _dom_custom_event_destroy ( struct dom_custom_event * evt)

◆ _dom_custom_event_finalise()

void _dom_custom_event_finalise ( struct dom_custom_event * evt)

◆ _dom_custom_event_get_detail()

dom_exception _dom_custom_event_get_detail ( dom_custom_event * evt,
void ** detail )

Get the detail object of this custom event

Parameters
evtThe Event object
detailThe returned detail object
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

◆ _dom_custom_event_init_ns()

dom_exception _dom_custom_event_init_ns ( dom_custom_event * evt,
dom_string * namespace,
dom_string * type,
bool bubble,
bool cancelable,
void * detail )

Initialise this custom event

Parameters
evtThe Event object
namespaceThe namespace of this new Event
typeThe Event type
bubbleWhether this event can bubble
cancelableWhether this event is cancelable
detailThe detail object of this custom event
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

◆ _dom_custom_event_initialise()

dom_exception _dom_custom_event_initialise ( struct dom_custom_event * evt)