libgpac
Documentation of the core library of GPAC
dom_events.c File Reference
#include <gpac/internal/scenegraph_dev.h>
#include <gpac/xml.h>
#include <gpac/scenegraph_svg.h>
#include <gpac/events.h>
#include <gpac/nodes_svg.h>
+ Include dependency graph for dom_events.c:

Data Structures

struct  DOMAddListener
 

Functions

static void gf_smil_handle_event (GF_Node *anim, GF_FieldInfo *info, GF_DOM_Event *evt, Bool is_end)
 
static void gf_dom_refresh_event_filter (GF_SceneGraph *sg)
 
void gf_sg_unregister_event_type (GF_SceneGraph *sg, GF_DOMEventCategory category)
 
void gf_sg_register_event_type (GF_SceneGraph *sg, GF_DOMEventCategory category)
 
GF_Err gf_sg_listener_associate (GF_Node *listener, GF_DOMEventTarget *evt_target)
 
GF_EXPORT GF_Err gf_node_dom_listener_add (GF_Node *node, GF_Node *listener)
 
GF_EXPORT GF_Err gf_dom_listener_del (GF_Node *listener, GF_DOMEventTarget *target)
 
GF_Err gf_dom_event_remove_listener_from_parent (GF_DOMEventTarget *event_target, GF_Node *listener)
 
void gf_dom_event_remove_all_listeners (GF_DOMEventTarget *event_target, GF_SceneGraph *sg)
 
GF_EXPORT u32 gf_dom_listener_count (GF_Node *node)
 
GF_EXPORT GF_Nodegf_dom_listener_get (GF_Node *node, u32 i)
 
void gf_sg_listener_post_add (GF_Node *obs, GF_Node *listener)
 
void gf_dom_listener_process_add (GF_SceneGraph *sg)
 
void gf_dom_listener_reset_deferred (GF_SceneGraph *sg)
 
GF_EXPORT void gf_sg_handle_dom_event (GF_Node *hdl, GF_DOM_Event *event, GF_Node *observer)
 
static GF_Nodedom_evt_get_handler (GF_Node *n)
 
static void dom_event_process (GF_Node *listen, GF_DOM_Event *event, GF_Node *observer)
 
void gf_sg_set_destroy_cookie (GF_SceneGraph *sg, Bool *cookie)
 
GF_EXPORT Bool gf_sg_fire_dom_event (GF_DOMEventTarget *et, GF_DOM_Event *event, GF_SceneGraph *sg, GF_Node *n)
 
static void gf_sg_dom_event_bubble (GF_Node *node, GF_DOM_Event *event, GF_List *use_stack, u32 cur_par_idx)
 
GF_EXPORT Bool gf_dom_event_fire_ex (GF_Node *node, GF_DOM_Event *event, GF_List *use_stack)
 
GF_EXPORT Bool gf_dom_event_fire (GF_Node *node, GF_DOM_Event *event)
 
GF_DOMHandlergf_dom_listener_build_ex (GF_Node *node, u32 event_type, u32 event_parameter, GF_Node *handler, GF_Node **out_listener)
 
GF_EXPORT GF_DOMHandlergf_dom_listener_build (GF_Node *node, GF_EventType event_type, u32 event_parameter)
 
static void gf_smil_handle_event_begin (GF_Node *hdl, GF_DOM_Event *evt, GF_Node *observer)
 
static void gf_smil_handle_event_end (GF_Node *hdl, GF_DOM_Event *evt, GF_Node *observer)
 
static void gf_smil_setup_event_list (GF_Node *node, GF_List *l, Bool is_begin)
 
void gf_smil_setup_events (GF_Node *node)
 
GF_EXPORT void gf_dom_set_textContent (GF_Node *n, char *text)
 
GF_EXPORT GF_DOMTextgf_dom_add_text_node (GF_Node *parent, char *text_data)
 
GF_DOMTextgf_dom_new_text_node (GF_SceneGraph *sg)
 
GF_EXPORT char * gf_dom_flatten_textContent (GF_Node *n)
 
GF_DOMUpdatesgf_dom_add_updates_node (GF_Node *parent)
 
void gf_dom_event_dump_listeners (GF_Node *n, FILE *f)
 
GF_DOMEventTargetgf_dom_event_target_new (GF_DOMEventTargetType type, void *obj)
 
void gf_dom_event_target_del (GF_DOMEventTarget *target)
 
GF_DOMEventTargetgf_dom_event_get_target_from_node (GF_Node *n)
 

Data Structure Documentation

◆ DOMAddListener

struct DOMAddListener
+ Collaboration diagram for DOMAddListener:
Data Fields
GF_Node * obs
GF_Node * listener

Function Documentation

◆ gf_smil_handle_event()

static void gf_smil_handle_event ( GF_Node anim,
GF_FieldInfo info,
GF_DOM_Event evt,
Bool  is_end 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_dom_refresh_event_filter()

static void gf_dom_refresh_event_filter ( GF_SceneGraph *  sg)
static
+ Here is the caller graph for this function:

◆ gf_dom_listener_del()

GF_EXPORT GF_Err gf_dom_listener_del ( GF_Node listener,
GF_DOMEventTarget target 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_dom_event_remove_listener_from_parent()

GF_Err gf_dom_event_remove_listener_from_parent ( GF_DOMEventTarget event_target,
GF_Node listener 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_dom_event_remove_all_listeners()

void gf_dom_event_remove_all_listeners ( GF_DOMEventTarget event_target,
GF_SceneGraph *  sg 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_listener_post_add()

void gf_sg_listener_post_add ( GF_Node obs,
GF_Node listener 
)
+ Here is the call graph for this function:

◆ gf_dom_listener_process_add()

void gf_dom_listener_process_add ( GF_SceneGraph *  sg)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_dom_listener_reset_deferred()

void gf_dom_listener_reset_deferred ( GF_SceneGraph *  sg)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_handle_dom_event()

GF_EXPORT void gf_sg_handle_dom_event ( GF_Node hdl,
GF_DOM_Event event,
GF_Node observer 
)
+ Here is the caller graph for this function:

◆ dom_evt_get_handler()

static GF_Node* dom_evt_get_handler ( GF_Node n)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dom_event_process()

static void dom_event_process ( GF_Node listen,
GF_DOM_Event event,
GF_Node observer 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_set_destroy_cookie()

void gf_sg_set_destroy_cookie ( GF_SceneGraph *  sg,
Bool cookie 
)
+ Here is the caller graph for this function:

◆ gf_sg_dom_event_bubble()

static void gf_sg_dom_event_bubble ( GF_Node node,
GF_DOM_Event event,
GF_List *  use_stack,
u32  cur_par_idx 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_dom_listener_build_ex()

GF_DOMHandler* gf_dom_listener_build_ex ( GF_Node node,
u32  event_type,
u32  event_parameter,
GF_Node handler,
GF_Node **  out_listener 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_smil_handle_event_begin()

static void gf_smil_handle_event_begin ( GF_Node hdl,
GF_DOM_Event evt,
GF_Node observer 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_smil_handle_event_end()

static void gf_smil_handle_event_end ( GF_Node hdl,
GF_DOM_Event evt,
GF_Node observer 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_smil_setup_event_list()

static void gf_smil_setup_event_list ( GF_Node node,
GF_List *  l,
Bool  is_begin 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_smil_setup_events()

void gf_smil_setup_events ( GF_Node node)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_dom_event_dump_listeners()

void gf_dom_event_dump_listeners ( GF_Node n,
FILE *  f 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_dom_event_target_del()

void gf_dom_event_target_del ( GF_DOMEventTarget target)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_dom_event_get_target_from_node()

GF_DOMEventTarget* gf_dom_event_get_target_from_node ( GF_Node n)
+ Here is the call graph for this function:
+ Here is the caller graph for this function: