libdom
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations | Functions
document_event.h File Reference
#include <dom/events/document_event.h>

Go to the source code of this file.

Classes

struct  dom_document_event_internal
 

Typedefs

typedef struct dom_document_event_internal dom_document_event_internal
 

Enumerations

enum  dom_event_type {
  DOM_EVENT = 0 , DOM_CUSTOM_EVENT , DOM_UI_EVENT , DOM_TEXT_EVENT ,
  DOM_KEYBOARD_EVENT , DOM_MOUSE_EVENT , DOM_MOUSE_MULTI_WHEEL_EVENT , DOM_MOUSE_WHEEL_EVENT ,
  DOM_MUTATION_EVENT , DOM_MUTATION_NAME_EVENT , DOM_EVENT_COUNT
}
 

Functions

dom_exception _dom_document_event_internal_initialise (dom_document_event_internal *dei, dom_events_default_action_fetcher actions, void *actions_ctx)
 
void _dom_document_event_internal_finalise (dom_document_event_internal *dei)
 

Typedef Documentation

◆ dom_document_event_internal

typedef struct dom_document_event_internal dom_document_event_internal

Enumeration Type Documentation

◆ dom_event_type

Type of Events

Enumerator
DOM_EVENT 
DOM_CUSTOM_EVENT 
DOM_UI_EVENT 
DOM_TEXT_EVENT 
DOM_KEYBOARD_EVENT 
DOM_MOUSE_EVENT 
DOM_MOUSE_MULTI_WHEEL_EVENT 
DOM_MOUSE_WHEEL_EVENT 
DOM_MUTATION_EVENT 
DOM_MUTATION_NAME_EVENT 
DOM_EVENT_COUNT 

Function Documentation

◆ _dom_document_event_internal_finalise()

void _dom_document_event_internal_finalise ( dom_document_event_internal * dei)

◆ _dom_document_event_internal_initialise()

dom_exception _dom_document_event_internal_initialise ( dom_document_event_internal * dei,
dom_events_default_action_fetcher actions,
void * actions_ctx )

Constructor and destructor: Since this object is not intended to be allocated alone, it should be embedded into the Document object, there is no constructor and destructor for it.

Initialise this DocumentEvent

Parameters
deiThe DocumentEvent internal object
actionsThe default action fetcher, the browser should provide such a function to Event module.
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.