Macros | Functions
win32_window.c File Reference
#include "internal.h"
#include <limits.h>
#include <stdlib.h>
#include <malloc.h>
#include <string.h>
#include <windowsx.h>
#include <shellapi.h>
Include dependency graph for win32_window.c:

Go to the source code of this file.

Macros

#define _GLFW_KEY_INVALID   -2
 

Functions

int _glfwPlatformCreateCursor (_GLFWcursor *cursor, const GLFWimage *image, int xhot, int yhot)
 
int _glfwPlatformCreateStandardCursor (_GLFWcursor *cursor, int shape)
 
int _glfwPlatformCreateWindow (_GLFWwindow *window, const _GLFWwndconfig *wndconfig, const _GLFWctxconfig *ctxconfig, const _GLFWfbconfig *fbconfig)
 
VkResult _glfwPlatformCreateWindowSurface (VkInstance instance, _GLFWwindow *window, const VkAllocationCallbacks *allocator, VkSurfaceKHR *surface)
 
void _glfwPlatformDestroyCursor (_GLFWcursor *cursor)
 
void _glfwPlatformDestroyWindow (_GLFWwindow *window)
 
void _glfwPlatformFocusWindow (_GLFWwindow *window)
 
int _glfwPlatformFramebufferTransparent (_GLFWwindow *window)
 
const char * _glfwPlatformGetClipboardString (void)
 
void _glfwPlatformGetCursorPos (_GLFWwindow *window, double *xpos, double *ypos)
 
void _glfwPlatformGetFramebufferSize (_GLFWwindow *window, int *width, int *height)
 
int _glfwPlatformGetKeyScancode (int key)
 
int _glfwPlatformGetPhysicalDevicePresentationSupport (VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily)
 
void _glfwPlatformGetRequiredInstanceExtensions (char **extensions)
 
const char * _glfwPlatformGetScancodeName (int scancode)
 
void _glfwPlatformGetWindowContentScale (_GLFWwindow *window, float *xscale, float *yscale)
 
void _glfwPlatformGetWindowFrameSize (_GLFWwindow *window, int *left, int *top, int *right, int *bottom)
 
float _glfwPlatformGetWindowOpacity (_GLFWwindow *window)
 
void _glfwPlatformGetWindowPos (_GLFWwindow *window, int *xpos, int *ypos)
 
void _glfwPlatformGetWindowSize (_GLFWwindow *window, int *width, int *height)
 
void _glfwPlatformHideWindow (_GLFWwindow *window)
 
void _glfwPlatformIconifyWindow (_GLFWwindow *window)
 
void _glfwPlatformMaximizeWindow (_GLFWwindow *window)
 
void _glfwPlatformPollEvents (void)
 
void _glfwPlatformPostEmptyEvent (void)
 
void _glfwPlatformRequestWindowAttention (_GLFWwindow *window)
 
void _glfwPlatformRestoreWindow (_GLFWwindow *window)
 
void _glfwPlatformSetClipboardString (const char *string)
 
void _glfwPlatformSetCursor (_GLFWwindow *window, _GLFWcursor *cursor)
 
void _glfwPlatformSetCursorMode (_GLFWwindow *window, int mode)
 
void _glfwPlatformSetCursorPos (_GLFWwindow *window, double xpos, double ypos)
 
void _glfwPlatformSetWindowAspectRatio (_GLFWwindow *window, int numer, int denom)
 
void _glfwPlatformSetWindowDecorated (_GLFWwindow *window, GLFWbool enabled)
 
void _glfwPlatformSetWindowFloating (_GLFWwindow *window, GLFWbool enabled)
 
void _glfwPlatformSetWindowIcon (_GLFWwindow *window, int count, const GLFWimage *images)
 
void _glfwPlatformSetWindowMonitor (_GLFWwindow *window, _GLFWmonitor *monitor, int xpos, int ypos, int width, int height, int refreshRate)
 
void _glfwPlatformSetWindowOpacity (_GLFWwindow *window, float opacity)
 
void _glfwPlatformSetWindowPos (_GLFWwindow *window, int xpos, int ypos)
 
void _glfwPlatformSetWindowResizable (_GLFWwindow *window, GLFWbool enabled)
 
void _glfwPlatformSetWindowSize (_GLFWwindow *window, int width, int height)
 
void _glfwPlatformSetWindowSizeLimits (_GLFWwindow *window, int minwidth, int minheight, int maxwidth, int maxheight)
 
void _glfwPlatformSetWindowTitle (_GLFWwindow *window, const char *title)
 
void _glfwPlatformShowWindow (_GLFWwindow *window)
 
void _glfwPlatformWaitEvents (void)
 
void _glfwPlatformWaitEventsTimeout (double timeout)
 
int _glfwPlatformWindowFocused (_GLFWwindow *window)
 
int _glfwPlatformWindowHovered (_GLFWwindow *window)
 
int _glfwPlatformWindowIconified (_GLFWwindow *window)
 
int _glfwPlatformWindowMaximized (_GLFWwindow *window)
 
int _glfwPlatformWindowVisible (_GLFWwindow *window)
 
GLFWbool _glfwRegisterWindowClassWin32 (void)
 
void _glfwUnregisterWindowClassWin32 (void)
 
static void acquireMonitor (_GLFWwindow *window)
 
static void applyAspectRatio (_GLFWwindow *window, int edge, RECT *area)
 
static void centerCursor (_GLFWwindow *window)
 
static const GLFWimagechooseImage (int count, const GLFWimage *images, int width, int height)
 
static HICON createIcon (const GLFWimage *image, int xhot, int yhot, GLFWbool icon)
 
static int createNativeWindow (_GLFWwindow *window, const _GLFWwndconfig *wndconfig, const _GLFWfbconfig *fbconfig)
 
static GLFWbool cursorInClientArea (_GLFWwindow *window)
 
static void disableCursor (_GLFWwindow *window)
 
static void enableCursor (_GLFWwindow *window)
 
static void fitToMonitor (_GLFWwindow *window)
 
static int getAsyncKeyMods (void)
 
static void getFullWindowSize (DWORD style, DWORD exStyle, int clientWidth, int clientHeight, int *fullWidth, int *fullHeight, UINT dpi)
 
static int getKeyMods (void)
 
static DWORD getWindowExStyle (const _GLFWwindow *window)
 
static DWORD getWindowStyle (const _GLFWwindow *window)
 
GLFWAPI HWND glfwGetWin32Window (GLFWwindow *handle)
 
static void releaseMonitor (_GLFWwindow *window)
 
static int translateKey (WPARAM wParam, LPARAM lParam)
 
static void updateClipRect (_GLFWwindow *window)
 
static void updateCursorImage (_GLFWwindow *window)
 
static void updateFramebufferTransparency (const _GLFWwindow *window)
 
static void updateWindowStyles (const _GLFWwindow *window)
 
static LRESULT CALLBACK windowProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 

Macro Definition Documentation

◆ _GLFW_KEY_INVALID

#define _GLFW_KEY_INVALID   -2

Definition at line 37 of file win32_window.c.

Function Documentation

◆ _glfwPlatformCreateCursor()

int _glfwPlatformCreateCursor ( _GLFWcursor cursor,
const GLFWimage image,
int  xhot,
int  yhot 
)

Definition at line 1998 of file win32_window.c.

◆ _glfwPlatformCreateStandardCursor()

int _glfwPlatformCreateStandardCursor ( _GLFWcursor cursor,
int  shape 
)

Definition at line 2009 of file win32_window.c.

◆ _glfwPlatformCreateWindow()

int _glfwPlatformCreateWindow ( _GLFWwindow window,
const _GLFWwndconfig wndconfig,
const _GLFWctxconfig ctxconfig,
const _GLFWfbconfig fbconfig 
)

Definition at line 1351 of file win32_window.c.

◆ _glfwPlatformCreateWindowSurface()

VkResult _glfwPlatformCreateWindowSurface ( VkInstance  instance,
_GLFWwindow window,
const VkAllocationCallbacks allocator,
VkSurfaceKHR surface 
)

Definition at line 2160 of file win32_window.c.

◆ _glfwPlatformDestroyCursor()

void _glfwPlatformDestroyCursor ( _GLFWcursor cursor)

Definition at line 2039 of file win32_window.c.

◆ _glfwPlatformDestroyWindow()

void _glfwPlatformDestroyWindow ( _GLFWwindow window)

Definition at line 1395 of file win32_window.c.

◆ _glfwPlatformFocusWindow()

void _glfwPlatformFocusWindow ( _GLFWwindow window)

Definition at line 1652 of file win32_window.c.

◆ _glfwPlatformFramebufferTransparent()

int _glfwPlatformFramebufferTransparent ( _GLFWwindow window)

Definition at line 1794 of file win32_window.c.

◆ _glfwPlatformGetClipboardString()

const char* _glfwPlatformGetClipboardString ( void  )

Definition at line 2094 of file win32_window.c.

◆ _glfwPlatformGetCursorPos()

void _glfwPlatformGetCursorPos ( _GLFWwindow window,
double *  xpos,
double *  ypos 
)

Definition at line 1948 of file win32_window.c.

◆ _glfwPlatformGetFramebufferSize()

void _glfwPlatformGetFramebufferSize ( _GLFWwindow window,
int *  width,
int *  height 
)

Definition at line 1577 of file win32_window.c.

◆ _glfwPlatformGetKeyScancode()

int _glfwPlatformGetKeyScancode ( int  key)

Definition at line 1993 of file win32_window.c.

◆ _glfwPlatformGetPhysicalDevicePresentationSupport()

int _glfwPlatformGetPhysicalDevicePresentationSupport ( VkInstance  instance,
VkPhysicalDevice  device,
uint32_t  queuefamily 
)

Definition at line 2142 of file win32_window.c.

◆ _glfwPlatformGetRequiredInstanceExtensions()

void _glfwPlatformGetRequiredInstanceExtensions ( char **  extensions)

Definition at line 2133 of file win32_window.c.

◆ _glfwPlatformGetScancodeName()

const char* _glfwPlatformGetScancodeName ( int  scancode)

Definition at line 1988 of file win32_window.c.

◆ _glfwPlatformGetWindowContentScale()

void _glfwPlatformGetWindowContentScale ( _GLFWwindow window,
float *  xscale,
float *  yscale 
)

Definition at line 1614 of file win32_window.c.

◆ _glfwPlatformGetWindowFrameSize()

void _glfwPlatformGetWindowFrameSize ( _GLFWwindow window,
int *  left,
int *  top,
int *  right,
int *  bottom 
)

Definition at line 1582 of file win32_window.c.

◆ _glfwPlatformGetWindowOpacity()

float _glfwPlatformGetWindowOpacity ( _GLFWwindow window)

Definition at line 1824 of file win32_window.c.

◆ _glfwPlatformGetWindowPos()

void _glfwPlatformGetWindowPos ( _GLFWwindow window,
int *  xpos,
int *  ypos 
)

Definition at line 1469 of file win32_window.c.

◆ _glfwPlatformGetWindowSize()

void _glfwPlatformGetWindowSize ( _GLFWwindow window,
int *  width,
int *  height 
)

Definition at line 1500 of file win32_window.c.

◆ _glfwPlatformHideWindow()

void _glfwPlatformHideWindow ( _GLFWwindow window)

Definition at line 1642 of file win32_window.c.

◆ _glfwPlatformIconifyWindow()

void _glfwPlatformIconifyWindow ( _GLFWwindow window)

Definition at line 1622 of file win32_window.c.

◆ _glfwPlatformMaximizeWindow()

void _glfwPlatformMaximizeWindow ( _GLFWwindow window)

Definition at line 1632 of file win32_window.c.

◆ _glfwPlatformPollEvents()

void _glfwPlatformPollEvents ( void  )

Definition at line 1857 of file win32_window.c.

◆ _glfwPlatformPostEmptyEvent()

void _glfwPlatformPostEmptyEvent ( void  )

Definition at line 1943 of file win32_window.c.

◆ _glfwPlatformRequestWindowAttention()

void _glfwPlatformRequestWindowAttention ( _GLFWwindow window)

Definition at line 1647 of file win32_window.c.

◆ _glfwPlatformRestoreWindow()

void _glfwPlatformRestoreWindow ( _GLFWwindow window)

Definition at line 1627 of file win32_window.c.

◆ _glfwPlatformSetClipboardString()

void _glfwPlatformSetClipboardString ( const char *  string)

Definition at line 2051 of file win32_window.c.

◆ _glfwPlatformSetCursor()

void _glfwPlatformSetCursor ( _GLFWwindow window,
_GLFWcursor cursor 
)

Definition at line 2045 of file win32_window.c.

◆ _glfwPlatformSetCursorMode()

void _glfwPlatformSetCursorMode ( _GLFWwindow window,
int  mode 
)

Definition at line 1975 of file win32_window.c.

◆ _glfwPlatformSetCursorPos()

void _glfwPlatformSetCursorPos ( _GLFWwindow window,
double  xpos,
double  ypos 
)

Definition at line 1963 of file win32_window.c.

◆ _glfwPlatformSetWindowAspectRatio()

void _glfwPlatformSetWindowAspectRatio ( _GLFWwindow window,
int  numer,
int  denom 
)

Definition at line 1562 of file win32_window.c.

◆ _glfwPlatformSetWindowDecorated()

void _glfwPlatformSetWindowDecorated ( _GLFWwindow window,
GLFWbool  enabled 
)

Definition at line 1812 of file win32_window.c.

◆ _glfwPlatformSetWindowFloating()

void _glfwPlatformSetWindowFloating ( _GLFWwindow window,
GLFWbool  enabled 
)

Definition at line 1817 of file win32_window.c.

◆ _glfwPlatformSetWindowIcon()

void _glfwPlatformSetWindowIcon ( _GLFWwindow window,
int  count,
const GLFWimage images 
)

Definition at line 1430 of file win32_window.c.

◆ _glfwPlatformSetWindowMonitor()

void _glfwPlatformSetWindowMonitor ( _GLFWwindow window,
_GLFWmonitor monitor,
int  xpos,
int  ypos,
int  width,
int  height,
int  refreshRate 
)

Definition at line 1659 of file win32_window.c.

◆ _glfwPlatformSetWindowOpacity()

void _glfwPlatformSetWindowOpacity ( _GLFWwindow window,
float  opacity 
)

Definition at line 1839 of file win32_window.c.

◆ _glfwPlatformSetWindowPos()

void _glfwPlatformSetWindowPos ( _GLFWwindow window,
int  xpos,
int  ypos 
)

Definition at line 1480 of file win32_window.c.

◆ _glfwPlatformSetWindowResizable()

void _glfwPlatformSetWindowResizable ( _GLFWwindow window,
GLFWbool  enabled 
)

Definition at line 1807 of file win32_window.c.

◆ _glfwPlatformSetWindowSize()

void _glfwPlatformSetWindowSize ( _GLFWwindow window,
int  width,
int  height 
)

Definition at line 1511 of file win32_window.c.

◆ _glfwPlatformSetWindowSizeLimits()

void _glfwPlatformSetWindowSizeLimits ( _GLFWwindow window,
int  minwidth,
int  minheight,
int  maxwidth,
int  maxheight 
)

Definition at line 1543 of file win32_window.c.

◆ _glfwPlatformSetWindowTitle()

void _glfwPlatformSetWindowTitle ( _GLFWwindow window,
const char *  title 
)

Definition at line 1420 of file win32_window.c.

◆ _glfwPlatformShowWindow()

void _glfwPlatformShowWindow ( _GLFWwindow window)

Definition at line 1637 of file win32_window.c.

◆ _glfwPlatformWaitEvents()

void _glfwPlatformWaitEvents ( void  )

Definition at line 1929 of file win32_window.c.

◆ _glfwPlatformWaitEventsTimeout()

void _glfwPlatformWaitEventsTimeout ( double  timeout)

Definition at line 1936 of file win32_window.c.

◆ _glfwPlatformWindowFocused()

int _glfwPlatformWindowFocused ( _GLFWwindow window)

Definition at line 1769 of file win32_window.c.

◆ _glfwPlatformWindowHovered()

int _glfwPlatformWindowHovered ( _GLFWwindow window)

Definition at line 1789 of file win32_window.c.

◆ _glfwPlatformWindowIconified()

int _glfwPlatformWindowIconified ( _GLFWwindow window)

Definition at line 1774 of file win32_window.c.

◆ _glfwPlatformWindowMaximized()

int _glfwPlatformWindowMaximized ( _GLFWwindow window)

Definition at line 1784 of file win32_window.c.

◆ _glfwPlatformWindowVisible()

int _glfwPlatformWindowVisible ( _GLFWwindow window)

Definition at line 1779 of file win32_window.c.

◆ _glfwRegisterWindowClassWin32()

GLFWbool _glfwRegisterWindowClassWin32 ( void  )

Definition at line 1305 of file win32_window.c.

◆ _glfwUnregisterWindowClassWin32()

void _glfwUnregisterWindowClassWin32 ( void  )

Definition at line 1341 of file win32_window.c.

◆ acquireMonitor()

static void acquireMonitor ( _GLFWwindow window)
static

Definition at line 527 of file win32_window.c.

◆ applyAspectRatio()

static void applyAspectRatio ( _GLFWwindow window,
int  edge,
RECT *  area 
)
static

Definition at line 209 of file win32_window.c.

◆ centerCursor()

static void centerCursor ( _GLFWwindow window)
static

Definition at line 241 of file win32_window.c.

◆ chooseImage()

static const GLFWimage* chooseImage ( int  count,
const GLFWimage images,
int  width,
int  height 
)
static

Definition at line 79 of file win32_window.c.

◆ createIcon()

static HICON createIcon ( const GLFWimage image,
int  xhot,
int  yhot,
GLFWbool  icon 
)
static

Definition at line 101 of file win32_window.c.

◆ createNativeWindow()

static int createNativeWindow ( _GLFWwindow window,
const _GLFWwndconfig wndconfig,
const _GLFWfbconfig fbconfig 
)
static

Definition at line 1182 of file win32_window.c.

◆ cursorInClientArea()

static GLFWbool cursorInClientArea ( _GLFWwindow window)
static

Definition at line 322 of file win32_window.c.

◆ disableCursor()

static void disableCursor ( _GLFWwindow window)
static

Definition at line 281 of file win32_window.c.

◆ enableCursor()

static void enableCursor ( _GLFWwindow window)
static

Definition at line 302 of file win32_window.c.

◆ fitToMonitor()

static void fitToMonitor ( _GLFWwindow window)
static

Definition at line 513 of file win32_window.c.

◆ getAsyncKeyMods()

static int getAsyncKeyMods ( void  )
static

Definition at line 444 of file win32_window.c.

◆ getFullWindowSize()

static void getFullWindowSize ( DWORD  style,
DWORD  exStyle,
int  clientWidth,
int  clientHeight,
int *  fullWidth,
int *  fullHeight,
UINT  dpi 
)
static

Definition at line 191 of file win32_window.c.

◆ getKeyMods()

static int getKeyMods ( void  )
static

Definition at line 422 of file win32_window.c.

◆ getWindowExStyle()

static DWORD getWindowExStyle ( const _GLFWwindow window)
static

Definition at line 67 of file win32_window.c.

◆ getWindowStyle()

static DWORD getWindowStyle ( const _GLFWwindow window)
static

Definition at line 41 of file win32_window.c.

◆ glfwGetWin32Window()

GLFWAPI HWND glfwGetWin32Window ( GLFWwindow handle)

Definition at line 2199 of file win32_window.c.

◆ releaseMonitor()

static void releaseMonitor ( _GLFWwindow window)
static

Definition at line 551 of file win32_window.c.

◆ translateKey()

static int translateKey ( WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 466 of file win32_window.c.

◆ updateClipRect()

static void updateClipRect ( _GLFWwindow window)
static

Definition at line 265 of file win32_window.c.

◆ updateCursorImage()

static void updateCursorImage ( _GLFWwindow window)
static

Definition at line 250 of file win32_window.c.

◆ updateFramebufferTransparency()

static void updateFramebufferTransparency ( const _GLFWwindow window)
static

Definition at line 371 of file win32_window.c.

◆ updateWindowStyles()

static void updateWindowStyles ( const _GLFWwindow window)
static

Definition at line 342 of file win32_window.c.

◆ windowProc()

static LRESULT CALLBACK windowProc ( HWND  hWnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 572 of file win32_window.c.



mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:22