ROOT  6.05/03
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
gdkprivate.h
Go to the documentation of this file.
1 /* GDK - The GIMP Drawing Kit
2  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19 
20 /*
21  * Modified by the GTK+ Team and others 1997-1999. See the AUTHORS
22  * file for a list of people on the GTK+ Team. See the ChangeLog
23  * files for a list of changes. These files are distributed with
24  * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
25  */
26 
27 #ifndef __GDK_PRIVATE_H__
28 #define __GDK_PRIVATE_H__
29 
30 #include <gdk/gdktypes.h>
31 #include <gdk/gdkevents.h>
32 #include <gdk/gdkfont.h>
33 #include <gdk/gdkgc.h>
34 #include <gdk/gdkim.h>
35 #include <gdk/gdkimage.h>
36 #include <gdk/gdkregion.h>
37 #include <gdk/gdkvisual.h>
38 #include <gdk/gdkwindow.h>
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif /* __cplusplus */
43 
44 #define GDK_DRAWABLE_TYPE(d) (((GdkDrawablePrivate *)d)->window_type)
45 #define GDK_IS_WINDOW(d) (GDK_DRAWABLE_TYPE(d) <= GDK_WINDOW_TEMP || \
46  GDK_DRAWABLE_TYPE(d) == GDK_WINDOW_FOREIGN)
47 #define GDK_IS_PIXMAP(d) (GDK_DRAWABLE_TYPE(d) == GDK_DRAWABLE_PIXMAP)
48 #define GDK_DRAWABLE_DESTROYED(d) (((GdkDrawablePrivate *)d)->destroyed)
49 
50 #define gdk_window_lookup(xid) ((GdkWindow*) gdk_xid_table_lookup (xid))
51 #define gdk_pixmap_lookup(xid) ((GdkPixmap*) gdk_xid_table_lookup (xid))
52 #define gdk_font_lookup(xid) ((GdkFont*) gdk_xid_table_lookup (xid))
53 
55 /* typedef struct _GdkDrawablePrivate GdkPixmapPrivate; */
57  typedef struct _GdkImageClass GdkImageClass;
59  typedef struct _GdkGCPrivate GdkGCPrivate;
61  typedef struct _GdkColorInfo GdkColorInfo;
65 
70 
73 
76 
78 
80  };
81 
84 
91 
93 
96  };
97 
98  struct _GdkImageClass {
101  GdkDrawable * window,
102  GdkGC * gc,
103  gint xsrc,
104  gint ysrc,
105  gint xdest, gint ydest, gint width, gint height);
106  };
107 
110 
113  };
114 
118  };
119 
120  struct _GdkGCPrivate {
124  };
125 
126  typedef enum {
129 
130  struct _GdkColorInfo {
133  };
134 
138 
140  };
141 
143  GdkFilterFunc function;
145  };
146 
149  GdkFilterFunc function;
151  };
152 
153  typedef enum {
159  } GdkArgType;
160 
161 
163  typedef struct _GdkArgDesc GdkArgDesc;
164 
165  typedef void (*GdkArgFunc) (const char *name, const char *arg,
166  gpointer data);
167 
168  struct _GdkArgContext {
171  };
172 
173  struct _GdkArgDesc {
174  const char *name;
178  };
179 
180 
181  typedef enum {
182  GDK_DEBUG_MISC = 1 << 0,
184  GDK_DEBUG_DND = 1 << 2,
186  GDK_DEBUG_XIM = 1 << 4
187  } GdkDebugFlag;
188 
189  void gdk_event_button_generate(GdkEvent * event);
190 
191 /* FIFO's for event queue, and for events put back using
192  * gdk_event_put().
193  */
194  extern GList *gdk_queued_events;
195  extern GList *gdk_queued_tail;
196 
197  extern GdkEventFunc gdk_event_func; /* Callback for events */
198  extern gpointer gdk_event_data;
200 
201  GdkEvent *gdk_event_new(void);
202 
203  void gdk_events_init(void);
204  void gdk_events_queue(void);
206 
208  void gdk_event_queue_remove_link(GList * node);
209  void gdk_event_queue_append(GdkEvent * event);
210 
211  void gdk_window_init(void);
212  void gdk_visual_init(void);
213  void gdk_dnd_init(void);
214 
215  void gdk_image_init(void);
216  void gdk_image_exit(void);
217 
218  void gdk_input_init(void);
219  void gdk_input_exit(void);
220 
221  void gdk_windowing_exit(void);
222 
224  void gdk_window_destroy_notify(GdkWindow * window);
225 
226 /* If you pass x = y = -1, it queries the pointer
227  to find out where it currently is.
228  If you pass x = y = -2, it does anything necessary
229  to know that the drag is ending.
230 */
232  gint y,
233  gboolean drag_ok,
234  gboolean change_made);
235 
236  extern gint gdk_debug_level;
237  extern gboolean gdk_show_events;
238  extern gint gdk_screen;
242  extern GList *gdk_default_filters;
243 
245 
246 /* Font/string functions implemented in module-specific code */
247  gint _gdk_font_strlen(GdkFont * font, const char *str);
248  void _gdk_font_destroy(GdkFont * font);
249 
250  void _gdk_colormap_real_destroy(GdkColormap * colormap);
251 
252  void _gdk_cursor_destroy(GdkCursor * cursor);
253 
254 /* Initialization */
255 
257  gboolean _gdk_windowing_init_check(int argc, char **argv);
258 
259 #ifdef USE_XIM
260 /* XIM support */
261  gint gdk_im_open(void);
262  void gdk_im_close(void);
263  void gdk_ic_cleanup(void);
264 #endif /* USE_XIM */
265 
266 /* Debugging support */
267 
268 #ifdef G_ENABLE_DEBUG
269 
270 #define GDK_NOTE(type,action) G_STMT_START { \
271  if (gdk_debug_flags & GDK_DEBUG_##type) \
272  { action; }; } G_STMT_END
273 
274 #else /* !G_ENABLE_DEBUG */
275 
276 #define GDK_NOTE(type,action)
277 
278 #endif /* G_ENABLE_DEBUG */
279 
281 
282 
283 #ifdef __cplusplus
284 }
285 #endif /* __cplusplus */
286 #endif /* __GDK_PRIVATE_H__ */
gint gdk_screen
void gdk_image_init(void)
guint ref_count
Definition: gdkprivate.h:132
GList * gdk_default_filters
Definition: gdkglobals.c:36
GdkWindow * parent
Definition: gdkprivate.h:85
gpointer gdk_event_data
Definition: gdkevents.c:79
unsigned int guint
Definition: g_types.h:51
GList * gdk_queued_tail
Definition: gdkglobals.c:39
void _gdk_cursor_destroy(GdkCursor *cursor)
void gdk_window_init(void)
void gdk_events_init(void)
GDKVAR gint gdk_error_code
Definition: gdkprivate.h:240
GdkDrawableClass * klass
Definition: gdkprivate.h:68
GList * gdk_event_queue_find_first(void)
Definition: gdkevents.c:98
GList * children
Definition: gdkprivate.h:95
void gdk_window_add_colormap_windows(GdkWindow *window)
gpointer klass_data
Definition: gdkprivate.h:123
const char * name
Definition: gdkprivate.h:174
gulong GdkAtom
Definition: gdktypes.h:77
GDKVAR guint gdk_debug_flags
Definition: gdkprivate.h:280
unsigned char guint8
void(* GDestroyNotify)(gpointer data)
Definition: g_types.h:77
void gdk_input_init(void)
GdkEventFunc gdk_event_func
Definition: gdkevents.c:78
GdkArgType type
Definition: gdkprivate.h:175
GList * gdk_queued_events
Definition: gdkglobals.c:38
void gdk_dnd_init(void)
Definition: gdkdnd-win32.c:659
gpointer klass_data
Definition: gdkprivate.h:69
GdkDrawablePrivate drawable
Definition: gdkprivate.h:83
guint8 resize_count
Definition: gdkprivate.h:88
gpointer cb_data
Definition: gdkprivate.h:170
GPtrArray * tables
Definition: gdkprivate.h:169
GDestroyNotify gdk_event_notify
Definition: gdkevents.c:80
GdkColormap * colormap
Definition: gdkprivate.h:77
void gdk_dnd_display_drag_cursor(gint x, gint y, gboolean drag_ok, gboolean change_made)
Double_t x[n]
Definition: legend1.C:17
gint gboolean
Definition: g_types.h:45
void gdk_image_exit(void)
gint gdk_debug_level
Definition: TGWin32.cxx:136
void gdk_events_queue(void)
void _gdk_colormap_real_destroy(GdkColormap *colormap)
Definition: gdkgc.h:145
gpointer data
Definition: gdkprivate.h:144
void gdk_window_destroy_notify(GdkWindow *window)
gint _gdk_font_strlen(GdkFont *font, const char *str)
int gint
Definition: g_types.h:44
GdkDrawable drawable
Definition: gdkprivate.h:67
void(* GdkArgFunc)(const char *name, const char *arg, gpointer data)
Definition: gdkprivate.h:165
gboolean _gdk_windowing_init_check(int argc, char **argv)
Definition: gdkmain-win32.c:64
void gdk_event_queue_remove_link(GList *node)
Definition: gdkevents.c:121
GdkArgType
Definition: gdkprivate.h:153
void gdk_windowing_exit(void)
void gdk_event_queue_append(GdkEvent *event)
Definition: gdkevents.c:143
void * gpointer
Definition: g_types.h:67
GdkImage image
Definition: gdkprivate.h:109
GdkColorInfoFlags flags
Definition: gdkprivate.h:131
unsigned short guint16
GDKVAR gint gdk_error_warnings
Definition: gdkprivate.h:241
GdkColorInfoFlags
Definition: gdkprivate.h:126
void gdk_event_button_generate(GdkEvent *event)
Definition: gdkevents.c:567
GdkDebugFlag
Definition: gdkprivate.h:181
gchar data[7]
GdkArgFunc callback
Definition: gdkprivate.h:177
GDKVAR GdkWindow * gdk_parent_root
Definition: gdkprivate.h:239
GdkArgDesc _gdk_windowing_args[]
Definition: gdkmain-win32.c:45
GdkColormap colormap
Definition: gdkprivate.h:136
Double_t y[n]
Definition: legend1.C:17
guint guffaw_gravity
Definition: gdkprivate.h:90
typedefG_BEGIN_DECLS struct _GList GList
Definition: glist.h:34
GdkImageClass * klass
Definition: gdkprivate.h:112
#define name(a, b)
Definition: linkTestLib0.cpp:5
guint ref_count
Definition: gdkprivate.h:121
GdkEvent * gdk_event_new(void)
Definition: gdkevents.c:263
typedef void((*Func_t)())
void(* destroy)(GdkImage *image)
Definition: gdkprivate.h:99
void(* GdkEventFunc)(GdkEvent *event, gpointer data)
Definition: gdkevents.h:34
#define GDKVAR
Definition: gdktypes.h:41
gboolean gdk_show_events
void(* image_put)(GdkImage *image, GdkDrawable *window, GdkGC *gc, gint xsrc, gint ysrc, gint xdest, gint ydest, gint width, gint height)
Definition: gdkprivate.h:100
void _gdk_font_destroy(GdkFont *font)
signed short gint16
GdkWindow * _gdk_window_alloc(void)
Definition: gdkwindow.c:30
gpointer location
Definition: gdkprivate.h:176
void gdk_input_exit(void)
GdkEvent * gdk_event_unqueue(void)
Definition: gdkevents.c:538
GdkGCClass * klass
Definition: gdkprivate.h:122
void gdk_visual_init(void)
const char Int_t const char * image
Definition: TXSlave.cxx:46
GdkVisual * visual
Definition: gdkprivate.h:137
GdkFilterReturn(* GdkFilterFunc)(GdkXEvent *xevent, GdkEvent *event, gpointer data)
Definition: gdkevents.h:46