| 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 Lesser 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 |
* Lesser General Public License for more details. |
| 13 |
* |
| 14 |
* You should have received a copy of the GNU Lesser General Public |
| 15 |
* License along with this library. If not, see <http://www.gnu.org/licenses/>. |
| 16 |
*/ |
| 17 |
|
| 18 |
/* |
| 19 |
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS |
| 20 |
* file for a list of people on the GTK+ Team. See the ChangeLog |
| 21 |
* files for a list of changes. These files are distributed with |
| 22 |
* GTK+ at ftp://ftp.gtk.org/pub/gtk/. |
| 23 |
*/ |
| 24 |
|
| 25 |
#ifndef __GDK_PRIVATE_WIN32_H__ |
| 26 |
#define __GDK_PRIVATE_WIN32_H__ |
| 27 |
|
| 28 |
#ifndef WINVER |
| 29 |
/* Vista or newer */ |
| 30 |
#define WINVER 0x0600 |
| 31 |
#endif |
| 32 |
|
| 33 |
#ifndef _WIN32_WINNT |
| 34 |
#define _WIN32_WINNT WINVER |
| 35 |
#endif |
| 36 |
|
| 37 |
#include <gdk/gdkprivate.h> |
| 38 |
#include <gdk/gdkcursorprivate.h> |
| 39 |
#include <gdk/win32/gdkwindow-win32.h> |
| 40 |
#include <gdk/win32/gdkwin32display.h> |
| 41 |
#include <gdk/win32/gdkwin32screen.h> |
| 42 |
#include <gdk/win32/gdkwin32keys.h> |
| 43 |
#include <gdk/win32/gdkselection-win32.h> |
| 44 |
|
| 45 |
#include "gdkinternals.h" |
| 46 |
|
| 47 |
#include "config.h" |
| 48 |
|
| 49 |
/* Make up for some minor w32api or MSVC6 header lossage */ |
| 50 |
|
| 51 |
#ifndef PS_JOIN_MASK |
| 52 |
#define PS_JOIN_MASK (PS_JOIN_BEVEL|PS_JOIN_MITER|PS_JOIN_ROUND) |
| 53 |
#endif |
| 54 |
|
| 55 |
#ifndef FS_VIETNAMESE |
| 56 |
#define FS_VIETNAMESE 0x100 |
| 57 |
#endif |
| 58 |
|
| 59 |
#ifndef WM_GETOBJECT |
| 60 |
#define WM_GETOBJECT 0x3D |
| 61 |
#endif |
| 62 |
#ifndef WM_NCXBUTTONDOWN |
| 63 |
#define WM_NCXBUTTONDOWN 0xAB |
| 64 |
#endif |
| 65 |
#ifndef WM_NCXBUTTONUP |
| 66 |
#define WM_NCXBUTTONUP 0xAC |
| 67 |
#endif |
| 68 |
#ifndef WM_NCXBUTTONDBLCLK |
| 69 |
#define WM_NCXBUTTONDBLCLK 0xAD |
| 70 |
#endif |
| 71 |
#ifndef WM_CHANGEUISTATE |
| 72 |
#define WM_CHANGEUISTATE 0x127 |
| 73 |
#endif |
| 74 |
#ifndef WM_UPDATEUISTATE |
| 75 |
#define WM_UPDATEUISTATE 0x128 |
| 76 |
#endif |
| 77 |
#ifndef WM_QUERYUISTATE |
| 78 |
#define WM_QUERYUISTATE 0x129 |
| 79 |
#endif |
| 80 |
#ifndef WM_XBUTTONDOWN |
| 81 |
#define WM_XBUTTONDOWN 0x20B |
| 82 |
#endif |
| 83 |
#ifndef WM_XBUTTONUP |
| 84 |
#define WM_XBUTTONUP 0x20C |
| 85 |
#endif |
| 86 |
#ifndef WM_XBUTTONDBLCLK |
| 87 |
#define WM_XBUTTONDBLCLK 0x20D |
| 88 |
#endif |
| 89 |
#ifndef WM_NCMOUSEHOVER |
| 90 |
#define WM_NCMOUSEHOVER 0x2A0 |
| 91 |
#endif |
| 92 |
#ifndef WM_NCMOUSELEAVE |
| 93 |
#define WM_NCMOUSELEAVE 0x2A2 |
| 94 |
#endif |
| 95 |
#ifndef WM_APPCOMMAND |
| 96 |
#define WM_APPCOMMAND 0x319 |
| 97 |
#endif |
| 98 |
#ifndef WM_MOUSEHWHEEL |
| 99 |
#define WM_MOUSEHWHEEL 0x20E |
| 100 |
#endif |
| 101 |
#ifndef WM_DPICHANGED |
| 102 |
#define WM_DPICHANGED 0x02E0 |
| 103 |
#endif |
| 104 |
|
| 105 |
/* According to |
| 106 |
* http://blog.airesoft.co.uk/2009/11/wm_messages/ |
| 107 |
* this is the actual internal name MS uses for this undocumented message. |
| 108 |
* According to |
| 109 |
* https://bugs.winehq.org/show_bug.cgi?id=15055 |
| 110 |
* wParam is 0 |
| 111 |
* lParam is a pair of virtual desktop coordinates for the popup |
| 112 |
*/ |
| 113 |
#ifndef WM_SYSMENU |
| 114 |
#define WM_SYSMENU 0x313 |
| 115 |
#endif |
| 116 |
|
| 117 |
#ifndef CF_DIBV5 |
| 118 |
#define CF_DIBV5 17 |
| 119 |
#endif |
| 120 |
|
| 121 |
|
| 122 |
/* Define some combinations of GdkDebugFlags */ |
| 123 |
#define GDK_DEBUG_EVENTS_OR_INPUT (GDK_DEBUG_EVENTS|GDK_DEBUG_INPUT) |
| 124 |
#define GDK_DEBUG_MISC_OR_EVENTS (GDK_DEBUG_MISC|GDK_DEBUG_EVENTS) |
| 125 |
|
| 126 |
GdkScreen *GDK_WINDOW_SCREEN(GObject *win); |
| 127 |
|
| 128 |
#define GDK_WINDOW_IS_WIN32(win) (GDK_IS_WINDOW_IMPL_WIN32 (win->impl)) |
| 129 |
|
| 130 |
typedef struct _GdkColormapPrivateWin32 GdkColormapPrivateWin32; |
| 131 |
typedef struct _GdkWin32SingleFont GdkWin32SingleFont; |
| 132 |
|
| 133 |
struct _GdkWin32Cursor |
| 134 |
{ |
| 135 |
GdkCursor cursor; |
| 136 |
|
| 137 |
gchar *name; |
| 138 |
HCURSOR hcursor; |
| 139 |
}; |
| 140 |
|
| 141 |
struct _GdkWin32SingleFont |
| 142 |
{ |
| 143 |
HFONT hfont; |
| 144 |
UINT charset; |
| 145 |
UINT codepage; |
| 146 |
FONTSIGNATURE fs; |
| 147 |
}; |
| 148 |
|
| 149 |
typedef enum { |
| 150 |
GDK_WIN32_PE_STATIC, |
| 151 |
GDK_WIN32_PE_AVAILABLE, |
| 152 |
GDK_WIN32_PE_INUSE |
| 153 |
} GdkWin32PalEntryState; |
| 154 |
|
| 155 |
struct _GdkColormapPrivateWin32 |
| 156 |
{ |
| 157 |
HPALETTE hpal; |
| 158 |
gint current_size; /* Current size of hpal */ |
| 159 |
GdkWin32PalEntryState *use; |
| 160 |
gint private_val; |
| 161 |
|
| 162 |
GHashTable *hash; |
| 163 |
GdkColorInfo *info; |
| 164 |
}; |
| 165 |
|
| 166 |
typedef enum { |
| 167 |
GDK_WIN32_TABLET_INPUT_API_NONE = 0, |
| 168 |
GDK_WIN32_TABLET_INPUT_API_WINTAB, |
| 169 |
GDK_WIN32_TABLET_INPUT_API_WINPOINTER |
| 170 |
} GdkWin32TabletInputAPI; |
| 171 |
|
| 172 |
GType _gdk_gc_win32_get_type (void); |
| 173 |
|
| 174 |
gulong _gdk_win32_get_next_tick (gulong suggested_tick); |
| 175 |
|
| 176 |
BOOL _gdk_win32_get_cursor_pos (LPPOINT lpPoint); |
| 177 |
|
| 178 |
void _gdk_window_init_position (GdkWindow *window); |
| 179 |
void _gdk_window_move_resize_child (GdkWindow *window, |
| 180 |
gint x, |
| 181 |
gint y, |
| 182 |
gint width, |
| 183 |
gint height); |
| 184 |
|
| 185 |
gboolean _gdk_win32_window_enable_transparency (GdkWindow *window); |
| 186 |
|
| 187 |
|
| 188 |
/* GdkWindowImpl methods */ |
| 189 |
void _gdk_win32_window_scroll (GdkWindow *window, |
| 190 |
gint dx, |
| 191 |
gint dy); |
| 192 |
void _gdk_win32_window_move_region (GdkWindow *window, |
| 193 |
const cairo_region_t *region, |
| 194 |
gint dx, |
| 195 |
gint dy); |
| 196 |
|
| 197 |
|
| 198 |
void _gdk_win32_selection_init (void); |
| 199 |
void _gdk_win32_dnd_exit (void); |
| 200 |
|
| 201 |
GdkDragProtocol _gdk_win32_window_get_drag_protocol (GdkWindow *window, |
| 202 |
GdkWindow **target); |
| 203 |
|
| 204 |
void gdk_win32_handle_table_insert (HANDLE *handle, |
| 205 |
gpointer data); |
| 206 |
void gdk_win32_handle_table_remove (HANDLE handle); |
| 207 |
|
| 208 |
HRGN _gdk_win32_cairo_region_to_hrgn (const cairo_region_t *region, |
| 209 |
gint x_origin, |
| 210 |
gint y_origin); |
| 211 |
|
| 212 |
cairo_region_t *_gdk_win32_hrgn_to_region (HRGN hrgn, |
| 213 |
guint scale); |
| 214 |
|
| 215 |
void _gdk_win32_adjust_client_rect (GdkWindow *window, |
| 216 |
RECT *RECT); |
| 217 |
|
| 218 |
void _gdk_selection_property_delete (GdkWindow *); |
| 219 |
|
| 220 |
void _gdk_dropfiles_store (gchar *data); |
| 221 |
|
| 222 |
void _gdk_push_modal_window (GdkWindow *window); |
| 223 |
void _gdk_remove_modal_window (GdkWindow *window); |
| 224 |
GdkWindow *_gdk_modal_current (void); |
| 225 |
gboolean _gdk_modal_blocked (GdkWindow *window); |
| 226 |
|
| 227 |
#ifdef G_ENABLE_DEBUG |
| 228 |
gchar *_gdk_win32_color_to_string (const GdkColor *color); |
| 229 |
void _gdk_win32_print_paletteentries (const PALETTEENTRY *pep, |
| 230 |
const int nentries); |
| 231 |
void _gdk_win32_print_system_palette (void); |
| 232 |
void _gdk_win32_print_hpalette (HPALETTE hpal); |
| 233 |
void _gdk_win32_print_dc (HDC hdc); |
| 234 |
|
| 235 |
gchar *_gdk_win32_drag_protocol_to_string (GdkDragProtocol protocol); |
| 236 |
gchar *_gdk_win32_window_state_to_string (GdkWindowState state); |
| 237 |
gchar *_gdk_win32_window_style_to_string (LONG style); |
| 238 |
gchar *_gdk_win32_window_exstyle_to_string (LONG style); |
| 239 |
gchar *_gdk_win32_window_pos_bits_to_string (UINT flags); |
| 240 |
gchar *_gdk_win32_drag_action_to_string (GdkDragAction actions); |
| 241 |
gchar *_gdk_win32_window_description (GdkWindow *d); |
| 242 |
|
| 243 |
gchar *_gdk_win32_rop2_to_string (int rop2); |
| 244 |
gchar *_gdk_win32_lbstyle_to_string (UINT brush_style); |
| 245 |
gchar *_gdk_win32_pstype_to_string (DWORD pen_style); |
| 246 |
gchar *_gdk_win32_psstyle_to_string (DWORD pen_style); |
| 247 |
gchar *_gdk_win32_psendcap_to_string (DWORD pen_style); |
| 248 |
gchar *_gdk_win32_psjoin_to_string (DWORD pen_style); |
| 249 |
gchar *_gdk_win32_message_to_string (UINT msg); |
| 250 |
gchar *_gdk_win32_key_to_string (LONG lParam); |
| 251 |
gchar *_gdk_win32_cf_to_string (UINT format); |
| 252 |
gchar *_gdk_win32_data_to_string (const guchar*data, |
| 253 |
int nbytes); |
| 254 |
gchar *_gdk_win32_rect_to_string (const RECT *rect); |
| 255 |
|
| 256 |
gchar *_gdk_win32_gdkrectangle_to_string (const GdkRectangle *rect); |
| 257 |
gchar *_gdk_win32_cairo_region_to_string (const cairo_region_t *box); |
| 258 |
|
| 259 |
void _gdk_win32_print_event (const GdkEvent *event); |
| 260 |
|
| 261 |
#endif |
| 262 |
|
| 263 |
gchar *_gdk_win32_last_error_string (void); |
| 264 |
void _gdk_win32_api_failed (const gchar *where, |
| 265 |
const gchar *api); |
| 266 |
void _gdk_other_api_failed (const gchar *where, |
| 267 |
const gchar *api); |
| 268 |
|
| 269 |
#define WIN32_API_FAILED(api) _gdk_win32_api_failed (G_STRLOC , api) |
| 270 |
#define WIN32_GDI_FAILED(api) WIN32_API_FAILED (api) |
| 271 |
#define OTHER_API_FAILED(api) _gdk_other_api_failed (G_STRLOC, api) |
| 272 |
|
| 273 |
#define WIN32_API_FAILED_LOG_ONCE(api) G_STMT_START { static gboolean logged = 0; if (!logged) { _gdk_win32_api_failed (G_STRLOC , api); logged = 1; }} G_STMT_END |
| 274 |
|
| 275 |
/* These two macros call a GDI or other Win32 API and if the return |
| 276 |
* value is zero or NULL, print a warning message. The majority of GDI |
| 277 |
* calls return zero or NULL on failure. The value of the macros is nonzero |
| 278 |
* if the call succeeded, zero otherwise. |
| 279 |
*/ |
| 280 |
|
| 281 |
#define GDI_CALL(api, arglist) (api arglist ? 1 : (WIN32_GDI_FAILED (#api), 0)) |
| 282 |
#define API_CALL(api, arglist) (api arglist ? 1 : (WIN32_API_FAILED (#api), 0)) |
| 283 |
|
| 284 |
extern LRESULT CALLBACK _gdk_win32_window_procedure (HWND, UINT, WPARAM, LPARAM); |
| 285 |
|
| 286 |
extern GdkDisplay *_gdk_display; |
| 287 |
|
| 288 |
/* Offsets to add to Windows coordinates (which are relative to the |
| 289 |
* primary monitor's origin, and thus might be negative for monitors |
| 290 |
* to the left and/or above the primary monitor) to get GDK |
| 291 |
* coordinates, which should be non-negative on the whole screen. |
| 292 |
*/ |
| 293 |
extern gint _gdk_offset_x, _gdk_offset_y; |
| 294 |
|
| 295 |
extern HDC _gdk_display_hdc; |
| 296 |
extern HINSTANCE _gdk_dll_hinstance; |
| 297 |
extern HINSTANCE _gdk_app_hmodule; |
| 298 |
|
| 299 |
extern gint _gdk_input_ignore_core; |
| 300 |
extern GdkWin32TabletInputAPI _gdk_win32_tablet_input_api; |
| 301 |
|
| 302 |
/* These are thread specific, but GDK/win32 works OK only when invoked |
| 303 |
* from a single thread anyway. |
| 304 |
*/ |
| 305 |
extern HKL _gdk_input_locale; |
| 306 |
extern gboolean _gdk_input_locale_is_ime; |
| 307 |
extern UINT _gdk_input_codepage; |
| 308 |
|
| 309 |
extern guint _gdk_keymap_serial; |
| 310 |
|
| 311 |
/* The singleton selection object pointer */ |
| 312 |
extern GdkWin32Selection *_win32_selection; |
| 313 |
|
| 314 |
void _gdk_win32_dnd_do_dragdrop (void); |
| 315 |
void _gdk_win32_ole2_dnd_property_change (GdkAtom type, |
| 316 |
gint format, |
| 317 |
const guchar *data, |
| 318 |
gint nelements); |
| 319 |
|
| 320 |
typedef enum { |
| 321 |
GDK_WIN32_MODAL_OP_NONE = 0x0, |
| 322 |
GDK_WIN32_MODAL_OP_SIZE = 0x1 << 0, |
| 323 |
GDK_WIN32_MODAL_OP_MOVE = 0x1 << 1, |
| 324 |
GDK_WIN32_MODAL_OP_MENU = 0x1 << 2, |
| 325 |
GDK_WIN32_MODAL_OP_DND = 0x1 << 3 |
| 326 |
} GdkWin32ModalOpKind; |
| 327 |
|
| 328 |
#define GDK_WIN32_MODAL_OP_SIZEMOVE_MASK (GDK_WIN32_MODAL_OP_SIZE | GDK_WIN32_MODAL_OP_MOVE) |
| 329 |
|
| 330 |
/* Non-zero while a modal sizing, moving, or dnd operation is in progress */ |
| 331 |
extern GdkWin32ModalOpKind _modal_operation_in_progress; |
| 332 |
|
| 333 |
extern HWND _modal_move_resize_window; |
| 334 |
|
| 335 |
void _gdk_win32_begin_modal_call (GdkWin32ModalOpKind kind); |
| 336 |
void _gdk_win32_end_modal_call (GdkWin32ModalOpKind kind); |
| 337 |
|
| 338 |
|
| 339 |
/* Options */ |
| 340 |
extern gint _gdk_max_colors; |
| 341 |
|
| 342 |
#define GDK_WIN32_COLORMAP_DATA(cmap) ((GdkColormapPrivateWin32 *) GDK_COLORMAP (cmap)->windowing_data) |
| 343 |
|
| 344 |
extern GdkCursor *_gdk_win32_grab_cursor; |
| 345 |
|
| 346 |
/* Convert a pixbuf to an HICON (or HCURSOR). Supports alpha under |
| 347 |
* Windows XP, thresholds alpha otherwise. |
| 348 |
*/ |
| 349 |
HICON _gdk_win32_pixbuf_to_hicon (GdkPixbuf *pixbuf); |
| 350 |
HICON _gdk_win32_pixbuf_to_hcursor (GdkPixbuf *pixbuf, |
| 351 |
gint x_hotspot, |
| 352 |
gint y_hotspot); |
| 353 |
|
| 354 |
void _gdk_win32_display_init_cursors (GdkWin32Display *display); |
| 355 |
void _gdk_win32_display_finalize_cursors (GdkWin32Display *display); |
| 356 |
void _gdk_win32_display_update_cursors (GdkWin32Display *display); |
| 357 |
|
| 358 |
typedef struct _Win32CursorTheme Win32CursorTheme; |
| 359 |
|
| 360 |
struct _Win32CursorTheme { |
| 361 |
GHashTable *named_cursors; |
| 362 |
}; |
| 363 |
|
| 364 |
typedef enum GdkWin32CursorLoadType { |
| 365 |
GDK_WIN32_CURSOR_LOAD_FROM_FILE = 0, |
| 366 |
GDK_WIN32_CURSOR_LOAD_FROM_RESOURCE_NULL = 1, |
| 367 |
GDK_WIN32_CURSOR_LOAD_FROM_RESOURCE_THIS = 2, |
| 368 |
GDK_WIN32_CURSOR_CREATE = 3, |
| 369 |
} GdkWin32CursorLoadType; |
| 370 |
|
| 371 |
typedef struct _Win32Cursor Win32Cursor; |
| 372 |
|
| 373 |
struct _Win32Cursor { |
| 374 |
GdkWin32CursorLoadType load_type; |
| 375 |
gunichar2 *resource_name; |
| 376 |
gint width; |
| 377 |
gint height; |
| 378 |
guint load_flags; |
| 379 |
gint xcursor_number; |
| 380 |
GdkCursorType cursor_type; |
| 381 |
}; |
| 382 |
|
| 383 |
Win32CursorTheme *win32_cursor_theme_load (const gchar *name, |
| 384 |
gint size); |
| 385 |
Win32Cursor * win32_cursor_theme_get_cursor (Win32CursorTheme *theme, |
| 386 |
const gchar *name); |
| 387 |
void win32_cursor_theme_destroy (Win32CursorTheme *theme); |
| 388 |
Win32CursorTheme *_gdk_win32_display_get_cursor_theme (GdkWin32Display *win32_display); |
| 389 |
|
| 390 |
/* GdkDisplay member functions */ |
| 391 |
GdkCursor *_gdk_win32_display_get_cursor_for_type (GdkDisplay *display, |
| 392 |
GdkCursorType cursor_type); |
| 393 |
GdkCursor *_gdk_win32_display_get_cursor_for_name (GdkDisplay *display, |
| 394 |
const gchar *name); |
| 395 |
GdkCursor *_gdk_win32_display_get_cursor_for_surface (GdkDisplay *display, |
| 396 |
cairo_surface_t *surface, |
| 397 |
gdouble x, |
| 398 |
gdouble y); |
| 399 |
void _gdk_win32_display_get_default_cursor_size (GdkDisplay *display, |
| 400 |
guint *width, |
| 401 |
guint *height); |
| 402 |
void _gdk_win32_display_get_maximal_cursor_size (GdkDisplay *display, |
| 403 |
guint *width, |
| 404 |
guint *height); |
| 405 |
gboolean _gdk_win32_display_supports_cursor_alpha (GdkDisplay *display); |
| 406 |
gboolean _gdk_win32_display_supports_cursor_color (GdkDisplay *display); |
| 407 |
|
| 408 |
GList *_gdk_win32_display_list_devices (GdkDisplay *dpy); |
| 409 |
|
| 410 |
gboolean _gdk_win32_display_has_pending (GdkDisplay *display); |
| 411 |
void _gdk_win32_display_queue_events (GdkDisplay *display); |
| 412 |
|
| 413 |
gboolean _gdk_win32_selection_owner_set_for_display (GdkDisplay *display, |
| 414 |
GdkWindow *owner, |
| 415 |
GdkAtom selection, |
| 416 |
guint32 time, |
| 417 |
gboolean send_event); |
| 418 |
GdkWindow *_gdk_win32_display_get_selection_owner (GdkDisplay *display, |
| 419 |
GdkAtom selection); |
| 420 |
gboolean _gdk_win32_display_set_selection_owner (GdkDisplay *display, |
| 421 |
GdkWindow *owner, |
| 422 |
GdkAtom selection, |
| 423 |
guint32 time, |
| 424 |
gboolean send_event); |
| 425 |
void _gdk_win32_display_send_selection_notify (GdkDisplay *display, |
| 426 |
GdkWindow *requestor, |
| 427 |
GdkAtom selection, |
| 428 |
GdkAtom target, |
| 429 |
GdkAtom property, |
| 430 |
guint32 time); |
| 431 |
gint _gdk_win32_display_get_selection_property (GdkDisplay *display, |
| 432 |
GdkWindow *requestor, |
| 433 |
guchar **data, |
| 434 |
GdkAtom *ret_type, |
| 435 |
gint *ret_format); |
| 436 |
void _gdk_win32_display_convert_selection (GdkDisplay *display, |
| 437 |
GdkWindow *requestor, |
| 438 |
GdkAtom selection, |
| 439 |
GdkAtom target, |
| 440 |
guint32 time); |
| 441 |
gint _gdk_win32_display_text_property_to_utf8_list (GdkDisplay *display, |
| 442 |
GdkAtom encoding, |
| 443 |
gint format, |
| 444 |
const guchar *text, |
| 445 |
gint length, |
| 446 |
gchar ***list); |
| 447 |
gchar *_gdk_win32_display_utf8_to_string_target (GdkDisplay *display, const gchar *str); |
| 448 |
|
| 449 |
guint8 _gdk_win32_keymap_get_active_group (GdkWin32Keymap *keymap); |
| 450 |
guint8 _gdk_win32_keymap_get_rshift_scancode (GdkWin32Keymap *keymap); |
| 451 |
void _gdk_win32_keymap_set_active_layout (GdkWin32Keymap *keymap, |
| 452 |
HKL hkl); |
| 453 |
GdkModifierType _gdk_win32_keymap_get_mod_mask (GdkWin32Keymap *keymap); |
| 454 |
|
| 455 |
|
| 456 |
GdkKeymap *_gdk_win32_display_get_keymap (GdkDisplay *display); |
| 457 |
|
| 458 |
void _gdk_win32_display_create_window_impl (GdkDisplay *display, |
| 459 |
GdkWindow *window, |
| 460 |
GdkWindow *real_parent, |
| 461 |
GdkScreen *screen, |
| 462 |
GdkEventMask event_mask, |
| 463 |
GdkWindowAttr *attributes, |
| 464 |
gint attributes_mask); |
| 465 |
|
| 466 |
/* stray GdkWindowImplWin32 members */ |
| 467 |
void _gdk_win32_window_register_dnd (GdkWindow *window); |
| 468 |
GdkDragContext *_gdk_win32_window_drag_begin (GdkWindow *window, GdkDevice *device, GList *targets, gint x_root, gint y_root); |
| 469 |
gboolean _gdk_win32_window_simulate_key (GdkWindow *window, |
| 470 |
gint x, |
| 471 |
gint y, |
| 472 |
guint keyval, |
| 473 |
GdkModifierType modifiers, |
| 474 |
GdkEventType key_pressrelease); |
| 475 |
gboolean _gdk_win32_window_simulate_button (GdkWindow *window, |
| 476 |
gint x, |
| 477 |
gint y, |
| 478 |
guint button, /*1..3*/ |
| 479 |
GdkModifierType modifiers, |
| 480 |
GdkEventType button_pressrelease); |
| 481 |
|
| 482 |
gint _gdk_win32_window_get_property (GdkWindow *window, |
| 483 |
GdkAtom property, |
| 484 |
GdkAtom type, |
| 485 |
gulong offset, |
| 486 |
gulong length, |
| 487 |
gint pdelete, |
| 488 |
GdkAtom *actual_property_type, |
| 489 |
gint *actual_format_type, |
| 490 |
gint *actual_length, |
| 491 |
guchar **data); |
| 492 |
void _gdk_win32_window_change_property (GdkWindow *window, |
| 493 |
GdkAtom property, |
| 494 |
GdkAtom type, |
| 495 |
gint format, |
| 496 |
GdkPropMode mode, |
| 497 |
const guchar *data, |
| 498 |
gint nelements); |
| 499 |
void _gdk_win32_window_delete_property (GdkWindow *window, GdkAtom property); |
| 500 |
|
| 501 |
/* Stray GdkWin32Screen members */ |
| 502 |
gboolean _gdk_win32_screen_get_setting (GdkScreen *screen, const gchar *name, GValue *value); |
| 503 |
void _gdk_win32_screen_on_displaychange_event (GdkWin32Screen *screen); |
| 504 |
|
| 505 |
/* Distributed display manager implementation */ |
| 506 |
GdkDisplay *_gdk_win32_display_open (const gchar *display_name); |
| 507 |
GdkAtom _gdk_win32_display_manager_atom_intern (GdkDisplayManager *manager, |
| 508 |
const gchar *atom_name, |
| 509 |
gint only_if_exists); |
| 510 |
gchar *_gdk_win32_display_manager_get_atom_name (GdkDisplayManager *manager, |
| 511 |
GdkAtom atom); |
| 512 |
void _gdk_win32_append_event (GdkEvent *event); |
| 513 |
void _gdk_win32_emit_configure_event (GdkWindow *window); |
| 514 |
|
| 515 |
|
| 516 |
guint32 _gdk_win32_keymap_get_decimal_mark (GdkWin32Keymap *keymap); |
| 517 |
|
| 518 |
void _gdk_win32_window_handle_aerosnap (GdkWindow *window, |
| 519 |
GdkWin32AeroSnapCombo combo); |
| 520 |
|
| 521 |
gboolean _gdk_win32_get_window_rect (GdkWindow *window, |
| 522 |
RECT *rect); |
| 523 |
void _gdk_win32_do_emit_configure_event (GdkWindow *window, |
| 524 |
RECT rect); |
| 525 |
void gdk_win32_window_do_move_resize_drag (GdkWindow *window, |
| 526 |
gint x, |
| 527 |
gint y); |
| 528 |
void gdk_win32_window_end_move_resize_drag (GdkWindow *window); |
| 529 |
gboolean _gdk_win32_window_fill_min_max_info (GdkWindow *window, |
| 530 |
MINMAXINFO *mmi); |
| 531 |
|
| 532 |
gboolean _gdk_win32_window_lacks_wm_decorations (GdkWindow *window); |
| 533 |
|
| 534 |
BOOL WINAPI GtkShowWindow (GdkWindow *window, |
| 535 |
int cmd_show); |
| 536 |
|
| 537 |
void _gdk_win32_screen_set_font_resolution (GdkWin32Screen *win32_screen); |
| 538 |
|
| 539 |
/* Initialization */ |
| 540 |
void _gdk_win32_windowing_init (void); |
| 541 |
void _gdk_dnd_init (void); |
| 542 |
void _gdk_events_init (GdkDisplay *display); |
| 543 |
|
| 544 |
typedef enum _GdkWin32ProcessorCheckType |
| 545 |
{ |
| 546 |
GDK_WIN32_ARM64, |
| 547 |
GDK_WIN32_WOW64, |
| 548 |
} GdkWin32ProcessorCheckType; |
| 549 |
|
| 550 |
gboolean _gdk_win32_check_processor (GdkWin32ProcessorCheckType check_type); |
| 551 |
|
| 552 |
#endif /* __GDK_PRIVATE_WIN32_H__ */ |