Debian Codegraph @

libgdome/events/gdome-evt-mevent.h

raw
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */
2 /* gdome-evt-mevent.h
3 *
4 * Copyright (C) 1999 Raph Levien <[email protected]>
5 * Copyright (C) 2000 Mathieu Lacage <[email protected]>
6 * Copyright (C) 2001 Paolo Casarini <[email protected]>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
22
23 /* ----------------------------------------------------------------------- */
24 /* --------------------------- MutationEvent --------------------------- */
25 /* ----------------------------------------------------------------------- */
26
27 #ifndef GDOME_MEVENT_FILE
28 #define GDOME_MEVENT_FILE
29
30 struct _GdomeMutationEventVtab {
31 GdomeEventVtab super;
32 gushort (*attrChange) (GdomeMutationEvent *self, GdomeException *exc);
33 GdomeDOMString *(*attrName) (GdomeMutationEvent *self, GdomeException *exc);
34 GdomeDOMString *(*newValue) (GdomeMutationEvent *self, GdomeException *exc);
35 GdomeDOMString *(*prevValue) (GdomeMutationEvent *self, GdomeException *exc);
36 GdomeNode *(*relatedNode) (GdomeMutationEvent *self, GdomeException *exc);
37 void (*initMutationEvent) (GdomeMutationEvent *self, GdomeDOMString *typeArg, GdomeBoolean canBubbleArg, GdomeBoolean cancelableArg, GdomeNode *relatedNodeArg, GdomeDOMString *prevValueArg, GdomeDOMString *newValueArg, GdomeDOMString *attrNameArg, gushort attrChangeArg, GdomeException *exc);
38 };
39
40 typedef struct _Gdome_evt_MutationEvent Gdome_evt_MutationEvent;
41
42 struct _Gdome_evt_MutationEvent {
43 GdomeMutationEvent super;
44 const GdomeMutationEventVtab *vtab;
45 GdomeEventType etype;
46 int refcnt;
47
48 GdomeBoolean bubbles;
49 GdomeBoolean cancelable;
50 xmlNode *currentTarget;
51 unsigned short eventPhase;
52 GdomeNode *target;
53 GdomeDOMTimeStamp timestamp;
54 guint32 *type;
55 GdomeBoolean propagation_stopped;
56 GdomeBoolean default_prevented;
57
58 unsigned short attrChange;
59 GdomeDOMString *attrName;
60 GdomeDOMString *newValue;
61 GdomeDOMString *prevValue;
62 GdomeNode *relatedNode;
63 };
64
65
66 GdomeMutationEvent * gdome_evt_mevnt_mkref (void);
67 void gdome_evt_mevnt_unref (GdomeEvent *self,
68 GdomeException *exc);
69 gpointer gdome_evt_mevnt_query_interface (GdomeEvent *self,
70 const char *interface,
71 GdomeException *exc);
72 GdomeNode * gdome_evt_mevnt_target (GdomeEvent *self,
73 GdomeException *exc);
74 GdomeNode * gdome_evt_mevnt_relatedNode (GdomeMutationEvent *self,
75 GdomeException *exc);
76 GdomeDOMString * gdome_evt_mevnt_prevValue (GdomeMutationEvent *self,
77 GdomeException *exc);
78 GdomeDOMString * gdome_evt_mevnt_newValue (GdomeMutationEvent *self,
79 GdomeException *exc);
80 GdomeDOMString * gdome_evt_mevnt_attrName (GdomeMutationEvent *self,
81 GdomeException *exc);
82 gushort gdome_evt_mevnt_attrChange (GdomeMutationEvent *self,
83 GdomeException *exc);
84 void gdome_evt_mevnt_initMutationEvent (GdomeMutationEvent *self,
85 GdomeDOMString *typeArg,
86 GdomeBoolean canBubbleArg,
87 GdomeBoolean cancelableArg,
88 GdomeNode *relatedNodeArg,
89 GdomeDOMString *prevValueArg,
90 GdomeDOMString *newValueArg,
91 GdomeDOMString *attrNameArg,
92 gushort attrChangeArg,
93 GdomeException *exc);
94
95 /* auxiliary functions */
96
97 void gdome_evt_mevnt_initMutationEventByCode (GdomeMutationEvent *self,
98 guint32 typeArg,
99 GdomeBoolean canBubbleArg,
100 GdomeBoolean cancelableArg,
101 GdomeNode *relatedNodeArg,
102 GdomeDOMString *prevValueArg,
103 GdomeDOMString *newValueArg,
104 GdomeDOMString *attrNameArg,
105 gushort attrChangeArg,
106 GdomeException *exc);
107
108 extern const GdomeMutationEventVtab gdome_evt_mevnt_vtab;
109
110 #endif /* GDOME_MEVENT_FILE */