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

#define _GLFW_KEY_INVALID   -2

Definition at line 37 of file win32_window.c.

Function Documentation

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

Definition at line 1987 of file win32_window.c.

int _glfwPlatformCreateStandardCursor ( _GLFWcursor cursor,
int  shape 
)

Definition at line 1998 of file win32_window.c.

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

Definition at line 1340 of file win32_window.c.

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

Definition at line 2149 of file win32_window.c.

void _glfwPlatformDestroyCursor ( _GLFWcursor cursor)

Definition at line 2028 of file win32_window.c.

void _glfwPlatformDestroyWindow ( _GLFWwindow window)

Definition at line 1384 of file win32_window.c.

void _glfwPlatformFocusWindow ( _GLFWwindow window)

Definition at line 1641 of file win32_window.c.

int _glfwPlatformFramebufferTransparent ( _GLFWwindow window)

Definition at line 1783 of file win32_window.c.

const char* _glfwPlatformGetClipboardString ( void  )

Definition at line 2083 of file win32_window.c.

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

Definition at line 1937 of file win32_window.c.

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

Definition at line 1566 of file win32_window.c.

int _glfwPlatformGetKeyScancode ( int  key)

Definition at line 1982 of file win32_window.c.

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

Definition at line 2131 of file win32_window.c.

void _glfwPlatformGetRequiredInstanceExtensions ( char **  extensions)

Definition at line 2122 of file win32_window.c.

const char* _glfwPlatformGetScancodeName ( int  scancode)

Definition at line 1977 of file win32_window.c.

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

Definition at line 1603 of file win32_window.c.

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

Definition at line 1571 of file win32_window.c.

float _glfwPlatformGetWindowOpacity ( _GLFWwindow window)

Definition at line 1813 of file win32_window.c.

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

Definition at line 1458 of file win32_window.c.

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

Definition at line 1489 of file win32_window.c.

void _glfwPlatformHideWindow ( _GLFWwindow window)

Definition at line 1631 of file win32_window.c.

void _glfwPlatformIconifyWindow ( _GLFWwindow window)

Definition at line 1611 of file win32_window.c.

void _glfwPlatformMaximizeWindow ( _GLFWwindow window)

Definition at line 1621 of file win32_window.c.

void _glfwPlatformPollEvents ( void  )

Definition at line 1846 of file win32_window.c.

void _glfwPlatformPostEmptyEvent ( void  )

Definition at line 1932 of file win32_window.c.

void _glfwPlatformRequestWindowAttention ( _GLFWwindow window)

Definition at line 1636 of file win32_window.c.

void _glfwPlatformRestoreWindow ( _GLFWwindow window)

Definition at line 1616 of file win32_window.c.

void _glfwPlatformSetClipboardString ( const char *  string)

Definition at line 2040 of file win32_window.c.

void _glfwPlatformSetCursor ( _GLFWwindow window,
_GLFWcursor cursor 
)

Definition at line 2034 of file win32_window.c.

void _glfwPlatformSetCursorMode ( _GLFWwindow window,
int  mode 
)

Definition at line 1964 of file win32_window.c.

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

Definition at line 1952 of file win32_window.c.

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

Definition at line 1551 of file win32_window.c.

void _glfwPlatformSetWindowDecorated ( _GLFWwindow window,
GLFWbool  enabled 
)

Definition at line 1801 of file win32_window.c.

void _glfwPlatformSetWindowFloating ( _GLFWwindow window,
GLFWbool  enabled 
)

Definition at line 1806 of file win32_window.c.

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

Definition at line 1419 of file win32_window.c.

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

Definition at line 1648 of file win32_window.c.

void _glfwPlatformSetWindowOpacity ( _GLFWwindow window,
float  opacity 
)

Definition at line 1828 of file win32_window.c.

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

Definition at line 1469 of file win32_window.c.

void _glfwPlatformSetWindowResizable ( _GLFWwindow window,
GLFWbool  enabled 
)

Definition at line 1796 of file win32_window.c.

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

Definition at line 1500 of file win32_window.c.

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

Definition at line 1532 of file win32_window.c.

void _glfwPlatformSetWindowTitle ( _GLFWwindow window,
const char *  title 
)

Definition at line 1409 of file win32_window.c.

void _glfwPlatformShowWindow ( _GLFWwindow window)

Definition at line 1626 of file win32_window.c.

void _glfwPlatformWaitEvents ( void  )

Definition at line 1918 of file win32_window.c.

void _glfwPlatformWaitEventsTimeout ( double  timeout)

Definition at line 1925 of file win32_window.c.

int _glfwPlatformWindowFocused ( _GLFWwindow window)

Definition at line 1758 of file win32_window.c.

int _glfwPlatformWindowHovered ( _GLFWwindow window)

Definition at line 1778 of file win32_window.c.

int _glfwPlatformWindowIconified ( _GLFWwindow window)

Definition at line 1763 of file win32_window.c.

int _glfwPlatformWindowMaximized ( _GLFWwindow window)

Definition at line 1773 of file win32_window.c.

int _glfwPlatformWindowVisible ( _GLFWwindow window)

Definition at line 1768 of file win32_window.c.

GLFWbool _glfwRegisterWindowClassWin32 ( void  )

Definition at line 1294 of file win32_window.c.

void _glfwUnregisterWindowClassWin32 ( void  )

Definition at line 1330 of file win32_window.c.

static void acquireMonitor ( _GLFWwindow window)
static

Definition at line 527 of file win32_window.c.

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

Definition at line 209 of file win32_window.c.

static void centerCursor ( _GLFWwindow window)
static

Definition at line 241 of file win32_window.c.

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

Definition at line 79 of file win32_window.c.

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

Definition at line 101 of file win32_window.c.

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

Definition at line 1171 of file win32_window.c.

static GLFWbool cursorInClientArea ( _GLFWwindow window)
static

Definition at line 322 of file win32_window.c.

static void disableCursor ( _GLFWwindow window)
static

Definition at line 281 of file win32_window.c.

static void enableCursor ( _GLFWwindow window)
static

Definition at line 302 of file win32_window.c.

static void fitToMonitor ( _GLFWwindow window)
static

Definition at line 513 of file win32_window.c.

static int getAsyncKeyMods ( void  )
static

Definition at line 444 of file win32_window.c.

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.

static int getKeyMods ( void  )
static

Definition at line 422 of file win32_window.c.

static DWORD getWindowExStyle ( const _GLFWwindow window)
static

Definition at line 67 of file win32_window.c.

static DWORD getWindowStyle ( const _GLFWwindow window)
static

Definition at line 41 of file win32_window.c.

GLFWAPI HWND glfwGetWin32Window ( GLFWwindow handle)

Definition at line 2188 of file win32_window.c.

static void releaseMonitor ( _GLFWwindow window)
static

Definition at line 551 of file win32_window.c.

static int translateKey ( WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 466 of file win32_window.c.

static void updateClipRect ( _GLFWwindow window)
static

Definition at line 265 of file win32_window.c.

static void updateCursorImage ( _GLFWwindow window)
static

Definition at line 250 of file win32_window.c.

static void updateFramebufferTransparency ( const _GLFWwindow window)
static

Definition at line 371 of file win32_window.c.

static void updateWindowStyles ( const _GLFWwindow window)
static

Definition at line 342 of file win32_window.c.

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

Definition at line 572 of file win32_window.c.



librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:31