#include <wctype.h>
#include <windows.h>
#include <dinput.h>
#include <xinput.h>
#include <dbt.h>
#include "win32_joystick.h"
#include "wgl_context.h"
#include "egl_context.h"
#include "osmesa_context.h"
Go to the source code of this file.
Classes | |
struct | _GLFWcursorWin32 |
struct | _GLFWlibraryWin32 |
struct | _GLFWmonitorWin32 |
struct | _GLFWmutexWin32 |
struct | _GLFWtimerWin32 |
struct | _GLFWtlsWin32 |
struct | _GLFWwindowWin32 |
struct | CHANGEFILTERSTRUCT |
struct | DWM_BLURBEHIND |
struct | VkWin32SurfaceCreateInfoKHR |
Enumerations | |
enum | MONITOR_DPI_TYPE { MDT_EFFECTIVE_DPI = 0, MDT_ANGULAR_DPI = 1, MDT_RAW_DPI = 2, MDT_DEFAULT = MDT_EFFECTIVE_DPI } |
enum | PROCESS_DPI_AWARENESS { PROCESS_DPI_UNAWARE = 0, PROCESS_SYSTEM_DPI_AWARE = 1, PROCESS_PER_MONITOR_DPI_AWARE = 2 } |
Functions | |
char * | _glfwCreateUTF8FromWideStringWin32 (const WCHAR *source) |
WCHAR * | _glfwCreateWideStringFromUTF8Win32 (const char *source) |
void | _glfwGetMonitorContentScaleWin32 (HMONITOR handle, float *xscale, float *yscale) |
void | _glfwInitTimerWin32 (void) |
void | _glfwInputErrorWin32 (int error, const char *description) |
BOOL | _glfwIsWindows10BuildOrGreaterWin32 (WORD build) |
BOOL | _glfwIsWindowsVersionOrGreaterWin32 (WORD major, WORD minor, WORD sp) |
void | _glfwPollMonitorsWin32 (void) |
GLFWbool | _glfwRegisterWindowClassWin32 (void) |
void | _glfwRestoreVideoModeWin32 (_GLFWmonitor *monitor) |
void | _glfwSetVideoModeWin32 (_GLFWmonitor *monitor, const GLFWvidmode *desired) |
void | _glfwUnregisterWindowClassWin32 (void) |
void | _glfwUpdateKeyNamesWin32 (void) |
Definition at line 279 of file win32_platform.h.
Definition at line 278 of file win32_platform.h.
Definition at line 280 of file win32_platform.h.
#define _GLFW_EGL_NATIVE_DISPLAY EGL_DEFAULT_DISPLAY |
Definition at line 283 of file win32_platform.h.
#define _GLFW_EGL_NATIVE_WINDOW ((EGLNativeWindowType) window->win32.handle) |
Definition at line 282 of file win32_platform.h.
#define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorWin32 win32 |
Definition at line 289 of file win32_platform.h.
#define _GLFW_PLATFORM_LIBRARY_TIMER_STATE _GLFWtimerWin32 win32 |
Definition at line 287 of file win32_platform.h.
#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryWin32 win32 |
Definition at line 286 of file win32_platform.h.
#define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorWin32 win32 |
Definition at line 288 of file win32_platform.h.
#define _GLFW_PLATFORM_MUTEX_STATE _GLFWmutexWin32 win32 |
Definition at line 291 of file win32_platform.h.
#define _GLFW_PLATFORM_TLS_STATE _GLFWtlsWin32 win32 |
Definition at line 290 of file win32_platform.h.
#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowWin32 win32 |
Definition at line 285 of file win32_platform.h.
#define _GLFW_WNDCLASSNAME L"GLFW30" |
Definition at line 275 of file win32_platform.h.
#define _glfwIsWindows10AnniversaryUpdateOrGreaterWin32 | ( | ) | _glfwIsWindows10BuildOrGreaterWin32(14393) |
Definition at line 170 of file win32_platform.h.
#define _glfwIsWindows10CreatorsUpdateOrGreaterWin32 | ( | ) | _glfwIsWindows10BuildOrGreaterWin32(15063) |
Definition at line 172 of file win32_platform.h.
#define _WIN32_WINNT 0x0501 |
Definition at line 58 of file win32_platform.h.
#define _WIN32_WINNT_WINBLUE 0x0602 |
Definition at line 99 of file win32_platform.h.
#define AdjustWindowRectExForDpi _glfw.win32.user32.AdjustWindowRectExForDpi_ |
Definition at line 235 of file win32_platform.h.
#define ChangeWindowMessageFilterEx _glfw.win32.user32.ChangeWindowMessageFilterEx_ |
Definition at line 231 of file win32_platform.h.
#define DIDFT_OPTIONAL 0x80000000 |
Definition at line 206 of file win32_platform.h.
#define DirectInput8Create _glfw.win32.dinput8.Create |
Definition at line 221 of file win32_platform.h.
#define DIRECTINPUT_VERSION 0x0800 |
Definition at line 62 of file win32_platform.h.
#define DISPLAY_DEVICE_ACTIVE 0x00000001 |
Definition at line 96 of file win32_platform.h.
#define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 ((HANDLE) -4) |
Definition at line 150 of file win32_platform.h.
#define DWM_BB_BLURREGION 0x00000002 |
Definition at line 121 of file win32_platform.h.
#define DWM_BB_ENABLE 0x00000001 |
Definition at line 120 of file win32_platform.h.
#define DwmEnableBlurBehindWindow _glfw.win32.dwmapi.EnableBlurBehindWindow |
Definition at line 243 of file win32_platform.h.
#define DwmFlush _glfw.win32.dwmapi.Flush |
Definition at line 242 of file win32_platform.h.
#define DwmIsCompositionEnabled _glfw.win32.dwmapi.IsCompositionEnabled |
Definition at line 241 of file win32_platform.h.
#define EDS_ROTATEDMODE 0x00000004 |
Definition at line 93 of file win32_platform.h.
#define EnableNonClientDpiScaling _glfw.win32.user32.EnableNonClientDpiScaling_ |
Definition at line 232 of file win32_platform.h.
Definition at line 90 of file win32_platform.h.
#define GetDpiForMonitor _glfw.win32.shcore.GetDpiForMonitor_ |
Definition at line 249 of file win32_platform.h.
#define GetDpiForWindow _glfw.win32.user32.GetDpiForWindow_ |
Definition at line 234 of file win32_platform.h.
#define IsWindows7OrGreater | ( | ) |
Definition at line 160 of file win32_platform.h.
#define IsWindows8OrGreater | ( | ) |
Definition at line 163 of file win32_platform.h.
#define IsWindows8Point1OrGreater | ( | ) |
Definition at line 166 of file win32_platform.h.
#define IsWindowsVistaOrGreater | ( | ) |
Definition at line 157 of file win32_platform.h.
#define IsWindowsXPOrGreater | ( | ) |
Definition at line 154 of file win32_platform.h.
#define MSGFLT_ALLOW 1 |
Definition at line 115 of file win32_platform.h.
#define RtlVerifyVersionInfo _glfw.win32.ntdll.RtlVerifyVersionInfo_ |
Definition at line 253 of file win32_platform.h.
#define SetProcessDPIAware _glfw.win32.user32.SetProcessDPIAware_ |
Definition at line 230 of file win32_platform.h.
#define SetProcessDpiAwareness _glfw.win32.shcore.SetProcessDpiAwareness_ |
Definition at line 248 of file win32_platform.h.
#define SetProcessDpiAwarenessContext _glfw.win32.user32.SetProcessDpiAwarenessContext_ |
Definition at line 233 of file win32_platform.h.
#define timeGetTime _glfw.win32.winmm.GetTime |
Definition at line 211 of file win32_platform.h.
#define UNICODE |
Definition at line 48 of file win32_platform.h.
#define UNICODE_NOCHAR 0xFFFF |
Definition at line 84 of file win32_platform.h.
#define USER_DEFAULT_SCREEN_DPI 96 |
Definition at line 105 of file win32_platform.h.
#define VC_EXTRALEAN |
Definition at line 34 of file win32_platform.h.
#define WIN32_LEAN_AND_MEAN |
Definition at line 38 of file win32_platform.h.
#define WINVER 0x0501 |
Definition at line 54 of file win32_platform.h.
#define WM_COPYGLOBALDATA 0x0049 |
Definition at line 78 of file win32_platform.h.
#define WM_DPICHANGED 0x02E0 |
Definition at line 87 of file win32_platform.h.
#define WM_DWMCOMPOSITIONCHANGED 0x031E |
Definition at line 75 of file win32_platform.h.
#define WM_GETDPISCALEDSIZE 0x02e4 |
Definition at line 102 of file win32_platform.h.
#define WM_MOUSEHWHEEL 0x020E |
Definition at line 72 of file win32_platform.h.
#define WM_UNICHAR 0x0109 |
Definition at line 81 of file win32_platform.h.
#define XINPUT_CAPS_WIRELESS 0x0002 |
Definition at line 177 of file win32_platform.h.
#define XINPUT_DEVSUBTYPE_ARCADE_PAD 0x13 |
Definition at line 198 of file win32_platform.h.
#define XINPUT_DEVSUBTYPE_ARCADE_STICK 0x03 |
Definition at line 183 of file win32_platform.h.
#define XINPUT_DEVSUBTYPE_DANCE_PAD 0x05 |
Definition at line 189 of file win32_platform.h.
#define XINPUT_DEVSUBTYPE_DRUM_KIT 0x08 |
Definition at line 195 of file win32_platform.h.
#define XINPUT_DEVSUBTYPE_FLIGHT_STICK 0x04 |
Definition at line 186 of file win32_platform.h.
#define XINPUT_DEVSUBTYPE_GUITAR 0x06 |
Definition at line 192 of file win32_platform.h.
#define XINPUT_DEVSUBTYPE_WHEEL 0x02 |
Definition at line 180 of file win32_platform.h.
#define XInputGetCapabilities _glfw.win32.xinput.GetCapabilities |
Definition at line 216 of file win32_platform.h.
#define XInputGetState _glfw.win32.xinput.GetState |
Definition at line 217 of file win32_platform.h.
#define XUSER_MAX_COUNT 4 |
Definition at line 201 of file win32_platform.h.
typedef struct _GLFWcursorWin32 _GLFWcursorWin32 |
typedef struct _GLFWlibraryWin32 _GLFWlibraryWin32 |
typedef struct _GLFWmonitorWin32 _GLFWmonitorWin32 |
typedef struct _GLFWmutexWin32 _GLFWmutexWin32 |
typedef struct _GLFWtimerWin32 _GLFWtimerWin32 |
typedef struct _GLFWtlsWin32 _GLFWtlsWin32 |
typedef struct _GLFWwindowWin32 _GLFWwindowWin32 |
typedef BOOL(WINAPI * PFN_AdjustWindowRectExForDpi) (LPRECT, DWORD, BOOL, DWORD, UINT) |
Definition at line 229 of file win32_platform.h.
typedef BOOL(WINAPI * PFN_ChangeWindowMessageFilterEx) (HWND, UINT, DWORD, CHANGEFILTERSTRUCT *) |
Definition at line 225 of file win32_platform.h.
typedef HRESULT(WINAPI * PFN_DirectInput8Create) (HINSTANCE, DWORD, REFIID, LPVOID *, LPUNKNOWN) |
Definition at line 220 of file win32_platform.h.
typedef HRESULT(WINAPI * PFN_DwmEnableBlurBehindWindow) (HWND, const DWM_BLURBEHIND *) |
Definition at line 240 of file win32_platform.h.
typedef HRESULT(WINAPI * PFN_DwmFlush) (VOID) |
Definition at line 239 of file win32_platform.h.
typedef HRESULT(WINAPI * PFN_DwmIsCompositionEnabled) (BOOL *) |
Definition at line 238 of file win32_platform.h.
typedef BOOL(WINAPI * PFN_EnableNonClientDpiScaling) (HWND) |
Definition at line 226 of file win32_platform.h.
typedef HRESULT(WINAPI * PFN_GetDpiForMonitor) (HMONITOR, MONITOR_DPI_TYPE, UINT *, UINT *) |
Definition at line 247 of file win32_platform.h.
typedef UINT(WINAPI * PFN_GetDpiForWindow) (HWND) |
Definition at line 228 of file win32_platform.h.
typedef LONG(WINAPI * PFN_RtlVerifyVersionInfo) (OSVERSIONINFOEXW *, ULONG, ULONGLONG) |
Definition at line 252 of file win32_platform.h.
typedef BOOL(WINAPI * PFN_SetProcessDPIAware) (void) |
Definition at line 224 of file win32_platform.h.
typedef HRESULT(WINAPI * PFN_SetProcessDpiAwareness) (PROCESS_DPI_AWARENESS) |
Definition at line 246 of file win32_platform.h.
typedef BOOL(WINAPI * PFN_SetProcessDpiAwarenessContext) (HANDLE) |
Definition at line 227 of file win32_platform.h.
typedef DWORD(WINAPI * PFN_timeGetTime) (void) |
Definition at line 210 of file win32_platform.h.
typedef VkResult(APIENTRY * PFN_vkCreateWin32SurfaceKHR) (VkInstance, const VkWin32SurfaceCreateInfoKHR *, const VkAllocationCallbacks *, VkSurfaceKHR *) |
Definition at line 266 of file win32_platform.h.
typedef VkBool32(APIENTRY * PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR) (VkPhysicalDevice, uint32_t) |
Definition at line 267 of file win32_platform.h.
typedef DWORD(WINAPI * PFN_XInputGetCapabilities) (DWORD, DWORD, XINPUT_CAPABILITIES *) |
Definition at line 214 of file win32_platform.h.
typedef DWORD(WINAPI * PFN_XInputGetState) (DWORD, XINPUT_STATE *) |
Definition at line 215 of file win32_platform.h.
typedef VkFlags VkWin32SurfaceCreateFlagsKHR |
Definition at line 255 of file win32_platform.h.
typedef struct VkWin32SurfaceCreateInfoKHR VkWin32SurfaceCreateInfoKHR |
enum MONITOR_DPI_TYPE |
Enumerator | |
---|---|
MDT_EFFECTIVE_DPI | |
MDT_ANGULAR_DPI | |
MDT_RAW_DPI | |
MDT_DEFAULT |
Definition at line 140 of file win32_platform.h.
Enumerator | |
---|---|
PROCESS_DPI_UNAWARE | |
PROCESS_SYSTEM_DPI_AWARE | |
PROCESS_PER_MONITOR_DPI_AWARE |
Definition at line 134 of file win32_platform.h.
char* _glfwCreateUTF8FromWideStringWin32 | ( | const WCHAR * | source | ) |
Definition at line 412 of file win32_init.c.
WCHAR* _glfwCreateWideStringFromUTF8Win32 | ( | const char * | source | ) |
Definition at line 384 of file win32_init.c.
void _glfwGetMonitorContentScaleWin32 | ( | HMONITOR | handle, |
float * | xscale, | ||
float * | yscale | ||
) |
Definition at line 312 of file win32_monitor.c.
Definition at line 37 of file win32_time.c.
void _glfwInputErrorWin32 | ( | int | error, |
const char * | description | ||
) |
Definition at line 440 of file win32_init.c.
BOOL _glfwIsWindows10BuildOrGreaterWin32 | ( | WORD | build | ) |
Definition at line 530 of file win32_init.c.
BOOL _glfwIsWindowsVersionOrGreaterWin32 | ( | WORD | major, |
WORD | minor, | ||
WORD | sp | ||
) |
Definition at line 515 of file win32_init.c.
Definition at line 134 of file win32_monitor.c.
Definition at line 1294 of file win32_window.c.
void _glfwRestoreVideoModeWin32 | ( | _GLFWmonitor * | monitor | ) |
Definition at line 302 of file win32_monitor.c.
void _glfwSetVideoModeWin32 | ( | _GLFWmonitor * | monitor, |
const GLFWvidmode * | desired | ||
) |
Definition at line 244 of file win32_monitor.c.
Definition at line 1330 of file win32_window.c.
Definition at line 461 of file win32_init.c.