2014-12-17 04:32:04 +00:00
|
|
|
/*
|
|
|
|
* gdkdisplay-win32.h
|
|
|
|
*
|
|
|
|
* Copyright 2014 Chun-wei Fan <fanc999@yahoo.com.tw>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "gdkdisplayprivate.h"
|
|
|
|
|
|
|
|
#ifndef __GDK_DISPLAY__WIN32_H__
|
|
|
|
#define __GDK_DISPLAY__WIN32_H__
|
|
|
|
|
|
|
|
struct _GdkWin32Display
|
|
|
|
{
|
|
|
|
GdkDisplay display;
|
|
|
|
|
2016-01-15 19:45:45 +00:00
|
|
|
GdkScreen *screen;
|
|
|
|
|
2015-05-13 07:45:40 +00:00
|
|
|
Win32CursorTheme *cursor_theme;
|
|
|
|
gchar *cursor_theme_name;
|
|
|
|
int cursor_theme_size;
|
|
|
|
GHashTable *cursor_cache;
|
|
|
|
|
2015-10-29 16:20:54 +00:00
|
|
|
HWND hwnd;
|
2015-11-12 15:42:51 +00:00
|
|
|
HWND clipboard_hwnd;
|
2015-10-29 16:20:54 +00:00
|
|
|
|
2014-12-17 04:32:04 +00:00
|
|
|
/* WGL/OpenGL Items */
|
|
|
|
guint have_wgl : 1;
|
|
|
|
guint gl_version;
|
|
|
|
HDC gl_hdc;
|
|
|
|
HWND gl_hwnd;
|
|
|
|
|
2016-04-20 07:36:00 +00:00
|
|
|
GPtrArray *monitors;
|
|
|
|
|
2014-12-17 04:32:04 +00:00
|
|
|
guint hasWglARBCreateContext : 1;
|
|
|
|
guint hasWglEXTSwapControl : 1;
|
|
|
|
guint hasWglOMLSyncControl : 1;
|
2016-10-14 11:04:49 +00:00
|
|
|
guint hasWglARBPixelFormat : 1;
|
|
|
|
guint hasWglARBmultisample : 1;
|
2014-12-17 04:32:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _GdkWin32DisplayClass
|
|
|
|
{
|
|
|
|
GdkDisplayClass display_class;
|
|
|
|
};
|
|
|
|
|
2016-04-20 07:36:00 +00:00
|
|
|
gboolean _gdk_win32_display_init_monitors (GdkWin32Display *display);
|
|
|
|
|
|
|
|
GPtrArray *_gdk_win32_display_get_monitor_list (GdkWin32Display *display);
|
|
|
|
|
2014-12-17 04:32:04 +00:00
|
|
|
#endif /* __GDK_DISPLAY__WIN32_H__ */
|