gdkwin32.h

Go to the documentation of this file.
00001 /* GDK - The GIMP Drawing Kit
00002  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Library General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Library General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Library General Public
00015  * License along with this library; if not, write to the
00016  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00017  * Boston, MA 02111-1307, USA.
00018  */
00019 
00020 /*
00021  * Modified by the GTK+ Team and others 1997-1999.  See the AUTHORS
00022  * file for a list of people on the GTK+ Team.  See the ChangeLog
00023  * files for a list of changes.  These files are distributed with
00024  * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
00025  */
00026 
00027 #ifndef __GDK_WIN32_H__
00028 #define __GDK_WIN32_H__
00029 
00030 #include <gdk/win32/gdkprivate-win32.h>
00031 
00032 #include <time.h>
00033 #include <locale.h>
00034 
00035 #ifdef __cplusplus
00036 extern "C" {
00037 #endif                          /* __cplusplus */
00038 
00039 #define GDK_ROOT_WINDOW()             ((guint32) HWND_DESKTOP)
00040 #define GDK_ROOT_PARENT()             ((GdkWindow *) gdk_parent_root)
00041 #define GDK_DISPLAY()                 NULL
00042 #define GDK_DRAWABLE_XID(win)         (GDK_DRAWABLE_WIN32DATA(win)->xid)
00043 #define GDK_IMAGE_XIMAGE(image)       (((GdkImagePrivate *) image)->ximage)
00044 #define GDK_COLORMAP_XDISPLAY(cmap)   NULL
00045 #define GDK_COLORMAP_WIN32COLORMAP(cmap)(((GdkColormapPrivateWin32 *) cmap)->xcolormap)
00046 #define GDK_CURSOR_XID(cursor)        (((GdkCursorPrivate*) cursor)->xcursor)
00047 #define GDK_VISUAL_XVISUAL(vis)       (((GdkVisualPrivate *) vis)->xvisual)
00048 
00049 #define GDK_WINDOW_XDISPLAY           GDK_DRAWABLE_XDISPLAY
00050 #define GDK_WINDOW_XWINDOW            GDK_DRAWABLE_XID
00051 #define GDK_FONT_XFONT(font)          (((GdkWin32SingleFont *)((GdkFontPrivateWin32 *)font)->fonts->data)->xfont)
00052 
00053 /* Functions to create GDK pixmaps and windows from their native equivalents */
00054    GdkPixmap *gdk_pixmap_foreign_new(guint32 anid);
00055    GdkWindow *gdk_window_foreign_new(guint32 anid);
00056 
00057 /* Return a device context to draw in a drawable, given a GDK GC,
00058  * and a mask indicating which GC values might be used (for efficiency,
00059  * no need to muck around with text-related stuff if we aren't going
00060  * to output text, for instance).
00061  */
00062    HDC gdk_win32_hdc_get(GdkDrawable * drawable,
00063                          GdkGC * gc, GdkGCValuesMask usage);
00064 
00065 
00066 /* Each HDC returned from gdk_win32_hdc_get must be released with
00067  * this function
00068  */
00069    void gdk_win32_hdc_release(GdkDrawable * drawable,
00070                               GdkGC * gc, GdkGCValuesMask usage);
00071 
00072 #ifdef __cplusplus
00073 }
00074 #endif                          /* __cplusplus */
00075 #endif                          /* __GDK_WIN32_H__ */

Generated on Tue Jul 5 14:14:40 2011 for ROOT_528-00b_version by  doxygen 1.5.1