1 /* GDK - The GIMP Drawing Kit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
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.
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.
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.
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/.
27 #ifndef __GDK_PRIVATE_WIN32_H__
28 #define __GDK_PRIVATE_WIN32_H__
30 #include <gdk/gdkprivate.h>
33 void gdk_win32_handle_table_insert (HANDLE handle,
35 void gdk_win32_handle_table_remove (HANDLE handle);
37 GdkGC * _gdk_win32_gc_new (GdkDrawable *drawable,
39 GdkGCValuesMask values_mask);
40 COLORREF gdk_colormap_color (GdkColormap *colormap,
42 HRGN BitmapToRegion (HBITMAP hBmp);
44 gchar *gdk_font_full_name_get (GdkFont *font);
46 void gdk_sel_prop_store (GdkWindow *owner,
52 gint gdk_nmbstowcs (GdkWChar *dest,
56 gint gdk_nmbstowchar_ts (wchar_t *dest,
61 void gdk_wchar_text_handle (GdkFont *font,
64 void (*handler)(GdkWin32SingleFont *,
71 gchar *gdk_win32_color_to_string (const GdkColor *);
72 gchar *gdk_win32_message_name (UINT msg);
75 gchar *gdk_win32_last_error_string (void);
76 void gdk_win32_api_failed (const gchar *where,
81 #define WIN32_API_FAILED(api) gdk_win32_api_failed (__FILE__ ":" __PRETTY_FUNCTION__, __LINE__, api)
82 #define WIN32_GDI_FAILED(api) gdk_win32_gdi_failed (__FILE__ ":" __PRETTY_FUNCTION__, __LINE__, api)
83 #define OTHER_API_FAILED(api) gdk_other_api_failed (__FILE__ ":" __PRETTY_FUNCTION__, __LINE__, api)
85 #define WIN32_API_FAILED(api) gdk_win32_api_failed (__FILE__, __LINE__, api)
86 #define WIN32_GDI_FAILED(api) gdk_win32_gdi_failed (__FILE__, __LINE__, api)
87 #define OTHER_API_FAILED(api) gdk_other_api_failed (__FILE__, __LINE__, api)
90 extern LRESULT CALLBACK gdk_window_procedure (HWND, UINT, WPARAM, LPARAM);
92 extern HWND gdk_root_window;
93 extern gboolean gdk_event_func_from_window_proc;
95 extern HDC gdk_display_hdc;
96 extern HINSTANCE gdk_dll_hinstance;
97 extern HINSTANCE gdk_app_hmodule;
99 extern UINT gdk_selection_notify_msg;
100 extern UINT gdk_selection_request_msg;
101 extern UINT gdk_selection_clear_msg;
102 extern GdkAtom gdk_clipboard_atom;
103 extern GdkAtom gdk_win32_dropfiles_atom;
104 extern GdkAtom gdk_ole2_dnd_atom;
106 extern DWORD windows_version;
107 #define IS_WIN_NT() (windows_version < 0x80000000)
109 extern gint gdk_input_ignore_wintab;
111 #endif /* __GDK_PRIVATE_WIN32_H__ */