Wise&mystical  1.0
Project about Europe
Loading...
Searching...
No Matches
window.c File Reference
#include "internal.h"
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <float.h>
+ Include dependency graph for window.c:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void _glfwInputWindowFocus (_GLFWwindow *window, GLFWbool focused)
 
void _glfwInputWindowPos (_GLFWwindow *window, int x, int y)
 
void _glfwInputWindowSize (_GLFWwindow *window, int width, int height)
 
void _glfwInputWindowIconify (_GLFWwindow *window, GLFWbool iconified)
 
void _glfwInputWindowMaximize (_GLFWwindow *window, GLFWbool maximized)
 
void _glfwInputFramebufferSize (_GLFWwindow *window, int width, int height)
 
void _glfwInputWindowContentScale (_GLFWwindow *window, float xscale, float yscale)
 
void _glfwInputWindowDamage (_GLFWwindow *window)
 
void _glfwInputWindowCloseRequest (_GLFWwindow *window)
 
void _glfwInputWindowMonitor (_GLFWwindow *window, _GLFWmonitor *monitor)
 
GLFWAPI GLFWwindowglfwCreateWindow (int width, int height, const char *title, GLFWmonitor *monitor, GLFWwindow *share)
 Creates a window and its associated context. More...
 
void glfwDefaultWindowHints (void)
 Resets all window hints to their default values. More...
 
GLFWAPI void glfwWindowHint (int hint, int value)
 Sets the specified window hint to the desired value. More...
 
GLFWAPI void glfwWindowHintString (int hint, const char *value)
 Sets the specified window hint to the desired value. More...
 
GLFWAPI void glfwDestroyWindow (GLFWwindow *handle)
 Destroys the specified window and its context. More...
 
GLFWAPI int glfwWindowShouldClose (GLFWwindow *handle)
 Checks the close flag of the specified window. More...
 
GLFWAPI void glfwSetWindowShouldClose (GLFWwindow *handle, int value)
 Sets the close flag of the specified window. More...
 
GLFWAPI void glfwSetWindowTitle (GLFWwindow *handle, const char *title)
 Sets the title of the specified window. More...
 
GLFWAPI void glfwSetWindowIcon (GLFWwindow *handle, int count, const GLFWimage *images)
 Sets the icon for the specified window. More...
 
GLFWAPI void glfwGetWindowPos (GLFWwindow *handle, int *xpos, int *ypos)
 Retrieves the position of the content area of the specified window. More...
 
GLFWAPI void glfwSetWindowPos (GLFWwindow *handle, int xpos, int ypos)
 Sets the position of the content area of the specified window. More...
 
GLFWAPI void glfwGetWindowSize (GLFWwindow *handle, int *width, int *height)
 Retrieves the size of the content area of the specified window. More...
 
GLFWAPI void glfwSetWindowSize (GLFWwindow *handle, int width, int height)
 Sets the size of the content area of the specified window. More...
 
GLFWAPI void glfwSetWindowSizeLimits (GLFWwindow *handle, int minwidth, int minheight, int maxwidth, int maxheight)
 Sets the size limits of the specified window. More...
 
GLFWAPI void glfwSetWindowAspectRatio (GLFWwindow *handle, int numer, int denom)
 Sets the aspect ratio of the specified window. More...
 
GLFWAPI void glfwGetFramebufferSize (GLFWwindow *handle, int *width, int *height)
 Retrieves the size of the framebuffer of the specified window. More...
 
GLFWAPI void glfwGetWindowFrameSize (GLFWwindow *handle, int *left, int *top, int *right, int *bottom)
 Retrieves the size of the frame of the window. More...
 
GLFWAPI void glfwGetWindowContentScale (GLFWwindow *handle, float *xscale, float *yscale)
 Retrieves the content scale for the specified window. More...
 
GLFWAPI float glfwGetWindowOpacity (GLFWwindow *handle)
 Returns the opacity of the whole window. More...
 
GLFWAPI void glfwSetWindowOpacity (GLFWwindow *handle, float opacity)
 Sets the opacity of the whole window. More...
 
GLFWAPI void glfwIconifyWindow (GLFWwindow *handle)
 Iconifies the specified window. More...
 
GLFWAPI void glfwRestoreWindow (GLFWwindow *handle)
 Restores the specified window. More...
 
GLFWAPI void glfwMaximizeWindow (GLFWwindow *handle)
 Maximizes the specified window. More...
 
GLFWAPI void glfwShowWindow (GLFWwindow *handle)
 Makes the specified window visible. More...
 
GLFWAPI void glfwRequestWindowAttention (GLFWwindow *handle)
 Requests user attention to the specified window. More...
 
GLFWAPI void glfwHideWindow (GLFWwindow *handle)
 Hides the specified window. More...
 
GLFWAPI void glfwFocusWindow (GLFWwindow *handle)
 Brings the specified window to front and sets input focus. More...
 
GLFWAPI int glfwGetWindowAttrib (GLFWwindow *handle, int attrib)
 Returns an attribute of the specified window. More...
 
GLFWAPI void glfwSetWindowAttrib (GLFWwindow *handle, int attrib, int value)
 Sets an attribute of the specified window. More...
 
GLFWAPI GLFWmonitorglfwGetWindowMonitor (GLFWwindow *handle)
 Returns the monitor that the window uses for full screen mode. More...
 
GLFWAPI void glfwSetWindowMonitor (GLFWwindow *wh, GLFWmonitor *mh, int xpos, int ypos, int width, int height, int refreshRate)
 Sets the mode, monitor, video mode and placement of a window. More...
 
GLFWAPI void glfwSetWindowUserPointer (GLFWwindow *handle, void *pointer)
 Sets the user pointer of the specified window. More...
 
GLFWAPI void * glfwGetWindowUserPointer (GLFWwindow *handle)
 Returns the user pointer of the specified window. More...
 
GLFWAPI GLFWwindowposfun glfwSetWindowPosCallback (GLFWwindow *handle, GLFWwindowposfun cbfun)
 Sets the position callback for the specified window. More...
 
GLFWAPI GLFWwindowsizefun glfwSetWindowSizeCallback (GLFWwindow *handle, GLFWwindowsizefun cbfun)
 Sets the size callback for the specified window. More...
 
GLFWAPI GLFWwindowclosefun glfwSetWindowCloseCallback (GLFWwindow *handle, GLFWwindowclosefun cbfun)
 Sets the close callback for the specified window. More...
 
GLFWAPI GLFWwindowrefreshfun glfwSetWindowRefreshCallback (GLFWwindow *handle, GLFWwindowrefreshfun cbfun)
 Sets the refresh callback for the specified window. More...
 
GLFWAPI GLFWwindowfocusfun glfwSetWindowFocusCallback (GLFWwindow *handle, GLFWwindowfocusfun cbfun)
 Sets the focus callback for the specified window. More...
 
GLFWAPI GLFWwindowiconifyfun glfwSetWindowIconifyCallback (GLFWwindow *handle, GLFWwindowiconifyfun cbfun)
 Sets the iconify callback for the specified window. More...
 
GLFWAPI GLFWwindowmaximizefun glfwSetWindowMaximizeCallback (GLFWwindow *handle, GLFWwindowmaximizefun cbfun)
 Sets the maximize callback for the specified window. More...
 
GLFWAPI GLFWframebuffersizefun glfwSetFramebufferSizeCallback (GLFWwindow *handle, GLFWframebuffersizefun cbfun)
 Sets the framebuffer resize callback for the specified window. More...
 
GLFWAPI GLFWwindowcontentscalefun glfwSetWindowContentScaleCallback (GLFWwindow *handle, GLFWwindowcontentscalefun cbfun)
 Sets the window content scale callback for the specified window. More...
 
GLFWAPI void glfwPollEvents (void)
 Processes all pending events. More...
 
GLFWAPI void glfwWaitEvents (void)
 Waits until events are queued and processes them. More...
 
GLFWAPI void glfwWaitEventsTimeout (double timeout)
 Waits with timeout until events are queued and processes them. More...
 
GLFWAPI void glfwPostEmptyEvent (void)
 Posts an empty event to the event queue. More...
 

Function Documentation

◆ _glfwInputFramebufferSize()

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

Definition at line 108 of file window.c.

+ Here is the caller graph for this function:

◆ _glfwInputWindowCloseRequest()

void _glfwInputWindowCloseRequest ( _GLFWwindow window)

Definition at line 133 of file window.c.

+ Here is the caller graph for this function:

◆ _glfwInputWindowContentScale()

void _glfwInputWindowContentScale ( _GLFWwindow window,
float  xscale,
float  yscale 
)

Definition at line 117 of file window.c.

◆ _glfwInputWindowDamage()

void _glfwInputWindowDamage ( _GLFWwindow window)

Definition at line 125 of file window.c.

◆ _glfwInputWindowFocus()

void _glfwInputWindowFocus ( _GLFWwindow window,
GLFWbool  focused 
)

Definition at line 45 of file window.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _glfwInputWindowIconify()

void _glfwInputWindowIconify ( _GLFWwindow window,
GLFWbool  iconified 
)

Definition at line 91 of file window.c.

+ Here is the caller graph for this function:

◆ _glfwInputWindowMaximize()

void _glfwInputWindowMaximize ( _GLFWwindow window,
GLFWbool  maximized 
)

Definition at line 99 of file window.c.

+ Here is the caller graph for this function:

◆ _glfwInputWindowMonitor()

void _glfwInputWindowMonitor ( _GLFWwindow window,
_GLFWmonitor monitor 
)

Definition at line 143 of file window.c.

+ Here is the caller graph for this function:

◆ _glfwInputWindowPos()

void _glfwInputWindowPos ( _GLFWwindow window,
int  x,
int  y 
)

Definition at line 74 of file window.c.

+ Here is the caller graph for this function:

◆ _glfwInputWindowSize()

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

Definition at line 83 of file window.c.

+ Here is the caller graph for this function: