Macros | Functions
win32_window.c File Reference
#include "internal.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
 
#define _GLFW_WNDCLASSNAME   L"GLFW30"
 

Functions

void _glfwPlatformApplyCursorMode (_GLFWwindow *window)
 Applies the cursor mode of the specified window to the system. More...
 
int _glfwPlatformCreateCursor (_GLFWcursor *cursor, const GLFWimage *image, int xhot, int yhot)
 Creates a custom cursor. More...
 
int _glfwPlatformCreateStandardCursor (_GLFWcursor *cursor, int shape)
 Creates a cursor with a standard shape. More...
 
int _glfwPlatformCreateWindow (_GLFWwindow *window, const _GLFWwndconfig *wndconfig, const _GLFWctxconfig *ctxconfig, const _GLFWfbconfig *fbconfig)
 
void _glfwPlatformDestroyCursor (_GLFWcursor *cursor)
 Destroys a cursor. More...
 
void _glfwPlatformDestroyWindow (_GLFWwindow *window)
 
const char * _glfwPlatformGetClipboardString (_GLFWwindow *window)
 Returns the contents of the clipboard as a string. More...
 
void _glfwPlatformGetCursorPos (_GLFWwindow *window, double *xpos, double *ypos)
 Retrieves the position of the cursor relative to the client area of the window. More...
 
void _glfwPlatformGetFramebufferSize (_GLFWwindow *window, int *width, int *height)
 Retrieves the size of the framebuffer of the specified window. More...
 
void _glfwPlatformGetWindowFrameSize (_GLFWwindow *window, int *left, int *top, int *right, int *bottom)
 Retrieves the size of the frame of the window. More...
 
void _glfwPlatformGetWindowPos (_GLFWwindow *window, int *xpos, int *ypos)
 Retrieves the position of the client area of the specified window. More...
 
void _glfwPlatformGetWindowSize (_GLFWwindow *window, int *width, int *height)
 Retrieves the size of the client area of the specified window. More...
 
void _glfwPlatformHideWindow (_GLFWwindow *window)
 Hides the specified window. More...
 
void _glfwPlatformIconifyWindow (_GLFWwindow *window)
 Iconifies the specified window. More...
 
void _glfwPlatformPollEvents (void)
 Processes all pending events. More...
 
void _glfwPlatformPostEmptyEvent (void)
 Posts an empty event to the event queue. More...
 
void _glfwPlatformRestoreWindow (_GLFWwindow *window)
 Restores the specified window. More...
 
void _glfwPlatformSetClipboardString (_GLFWwindow *window, const char *string)
 Sets the clipboard to the specified string. More...
 
void _glfwPlatformSetCursor (_GLFWwindow *window, _GLFWcursor *cursor)
 Sets the cursor for the window. More...
 
void _glfwPlatformSetCursorPos (_GLFWwindow *window, double xpos, double ypos)
 Sets the position of the cursor, relative to the client area of the window. More...
 
void _glfwPlatformSetWindowPos (_GLFWwindow *window, int xpos, int ypos)
 Sets the position of the client area of the specified window. More...
 
void _glfwPlatformSetWindowSize (_GLFWwindow *window, int width, int height)
 Sets the size of the client area of the specified window. More...
 
void _glfwPlatformSetWindowTitle (_GLFWwindow *window, const char *title)
 Sets the title of the specified window. More...
 
void _glfwPlatformShowWindow (_GLFWwindow *window)
 Makes the specified window visible. More...
 
void _glfwPlatformUnhideWindow (_GLFWwindow *window)
 
void _glfwPlatformWaitEvents (void)
 Waits until events are queued and processes them. More...
 
int _glfwPlatformWindowFocused (_GLFWwindow *window)
 Returns whether the window is focused. More...
 
int _glfwPlatformWindowIconified (_GLFWwindow *window)
 Returns whether the window is iconified. More...
 
int _glfwPlatformWindowVisible (_GLFWwindow *window)
 Returns whether the window is visible. More...
 
GLboolean _glfwRegisterWindowClass (void)
 
void _glfwUnregisterWindowClass (void)
 
static int createWindow (_GLFWwindow *window, const _GLFWwndconfig *wndconfig, const _GLFWctxconfig *ctxconfig, const _GLFWfbconfig *fbconfig)
 
static void destroyWindow (_GLFWwindow *window)
 
static void disableCursor (_GLFWwindow *window)
 
static GLboolean enterFullscreenMode (_GLFWwindow *window)
 
static int getAsyncKeyMods (void)
 
static void getFullWindowSize (_GLFWwindow *window, int clientWidth, int clientHeight, int *fullWidth, int *fullHeight)
 
static int getKeyMods (void)
 
static DWORD getWindowExStyle (const _GLFWwindow *window)
 
static DWORD getWindowStyle (const _GLFWwindow *window)
 
GLFWAPI HWND glfwGetWin32Window (GLFWwindow *handle)
 
static void hideCursor (_GLFWwindow *window)
 
static void leaveFullscreenMode (_GLFWwindow *window)
 
static void restoreCursor (_GLFWwindow *window)
 
static LPWSTR translateCursorShape (int shape)
 
static int translateKey (WPARAM wParam, LPARAM lParam)
 
static void updateClipRect (_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 36 of file win32_window.c.

#define _GLFW_WNDCLASSNAME   L"GLFW30"

Definition at line 38 of file win32_window.c.

Function Documentation

GLboolean _glfwRegisterWindowClass ( void  )

Definition at line 753 of file win32_window.c.

void _glfwUnregisterWindowClass ( void  )

Definition at line 787 of file win32_window.c.

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

Definition at line 650 of file win32_window.c.

static void destroyWindow ( _GLFWwindow window)
static

Definition at line 735 of file win32_window.c.

static void disableCursor ( _GLFWwindow window)
static

Definition at line 100 of file win32_window.c.

static GLboolean enterFullscreenMode ( _GLFWwindow window)
static

Definition at line 238 of file win32_window.c.

static int getAsyncKeyMods ( void  )
static

Definition at line 176 of file win32_window.c.

static void getFullWindowSize ( _GLFWwindow window,
int  clientWidth,
int  clientHeight,
int fullWidth,
int fullHeight 
)
static

Definition at line 637 of file win32_window.c.

static int getKeyMods ( void  )
static

Definition at line 158 of file win32_window.c.

static DWORD getWindowExStyle ( const _GLFWwindow window)
static

Definition at line 62 of file win32_window.c.

static DWORD getWindowStyle ( const _GLFWwindow window)
static

Definition at line 43 of file win32_window.c.

GLFWAPI HWND glfwGetWin32Window ( GLFWwindow handle)

Definition at line 1306 of file win32_window.c.

static void hideCursor ( _GLFWwindow window)
static

Definition at line 85 of file win32_window.c.

static void leaveFullscreenMode ( _GLFWwindow window)
static

Definition at line 257 of file win32_window.c.

static void restoreCursor ( _GLFWwindow window)
static

Definition at line 115 of file win32_window.c.

static LPWSTR translateCursorShape ( int  shape)
static

Definition at line 135 of file win32_window.c.

static int translateKey ( WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 194 of file win32_window.c.

static void updateClipRect ( _GLFWwindow window)
static

Definition at line 74 of file win32_window.c.

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

Definition at line 264 of file win32_window.c.



librealsense
Author(s): Sergey Dorodnicov , Mark Horn , Reagan Lopez
autogenerated on Fri Mar 13 2020 03:16:18