Macros | Functions
x11_window.c File Reference
#include "internal.h"
#include <X11/cursorfont.h>
#include <X11/Xmd.h>
#include <sys/select.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <errno.h>
#include <assert.h>
Include dependency graph for x11_window.c:

Go to the source code of this file.

Macros

#define _GLFW_XDND_VERSION   5
 
#define _NET_WM_STATE_ADD   1
 
#define _NET_WM_STATE_REMOVE   0
 
#define _NET_WM_STATE_TOGGLE   2
 
#define Button6   6
 
#define Button7   7
 

Functions

unsigned long _glfwGetWindowPropertyX11 (Window window, Atom property, Atom type, unsigned char **value)
 
GLFWbool _glfwIsVisualTransparentX11 (Visual *visual)
 
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 x, double y)
 
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)
 
void _glfwPushSelectionToManagerX11 (void)
 
static void acquireMonitor (_GLFWwindow *window)
 
static void centerCursor (_GLFWwindow *window)
 
static char * convertLatin1toUTF8 (const char *source)
 
static GLFWbool createNativeWindow (_GLFWwindow *window, const _GLFWwndconfig *wndconfig, Visual *visual, int depth)
 
static void disableCursor (_GLFWwindow *window)
 
static void enableCursor (_GLFWwindow *window)
 
static size_t encodeUTF8 (char *s, unsigned int ch)
 
static const char * getSelectionString (Atom selection)
 
static int getWindowState (_GLFWwindow *window)
 
GLFWAPI Display * glfwGetX11Display (void)
 
GLFWAPI const char * glfwGetX11SelectionString (void)
 
GLFWAPI Window glfwGetX11Window (GLFWwindow *handle)
 
GLFWAPI void glfwSetX11SelectionString (const char *string)
 
static void handleSelectionClear (XEvent *event)
 
static void handleSelectionRequest (XEvent *event)
 
static Bool isFrameExtentsEvent (Display *display, XEvent *event, XPointer pointer)
 
static Bool isSelectionEvent (Display *display, XEvent *event, XPointer pointer)
 
static Bool isSelPropNewValueNotify (Display *display, XEvent *event, XPointer pointer)
 
static char ** parseUriList (char *text, int *count)
 
static void processEvent (XEvent *event)
 
static void releaseMonitor (_GLFWwindow *window)
 
static void sendEventToWM (_GLFWwindow *window, Atom type, long a, long b, long c, long d, long e)
 
static int translateKey (int scancode)
 
static int translateState (int state)
 
static void updateCursorImage (_GLFWwindow *window)
 
static void updateNormalHints (_GLFWwindow *window, int width, int height)
 
static void updateWindowMode (_GLFWwindow *window)
 
static GLFWbool waitForEvent (double *timeout)
 
static GLFWbool waitForVisibilityNotify (_GLFWwindow *window)
 
static Atom writeTargetToProperty (const XSelectionRequestEvent *request)
 

Macro Definition Documentation

#define _GLFW_XDND_VERSION   5

Definition at line 51 of file x11_window.c.

#define _NET_WM_STATE_ADD   1

Definition at line 44 of file x11_window.c.

#define _NET_WM_STATE_REMOVE   0

Definition at line 43 of file x11_window.c.

#define _NET_WM_STATE_TOGGLE   2

Definition at line 45 of file x11_window.c.

#define Button6   6

Definition at line 48 of file x11_window.c.

#define Button7   7

Definition at line 49 of file x11_window.c.

Function Documentation

unsigned long _glfwGetWindowPropertyX11 ( Window  window,
Atom  property,
Atom  type,
unsigned char **  value 
)

Definition at line 1860 of file x11_window.c.

GLFWbool _glfwIsVisualTransparentX11 ( Visual *  visual)

Definition at line 1885 of file x11_window.c.

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

Definition at line 2791 of file x11_window.c.

int _glfwPlatformCreateStandardCursor ( _GLFWcursor cursor,
int  shape 
)

Definition at line 2802 of file x11_window.c.

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

Definition at line 1947 of file x11_window.c.

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

Definition at line 2944 of file x11_window.c.

void _glfwPlatformDestroyCursor ( _GLFWcursor cursor)

Definition at line 2832 of file x11_window.c.

void _glfwPlatformDestroyWindow ( _GLFWwindow window)

Definition at line 2018 of file x11_window.c.

void _glfwPlatformFocusWindow ( _GLFWwindow window)

Definition at line 2377 of file x11_window.c.

int _glfwPlatformFramebufferTransparent ( _GLFWwindow window)

Definition at line 2513 of file x11_window.c.

const char* _glfwPlatformGetClipboardString ( void  )

Definition at line 2865 of file x11_window.c.

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

Definition at line 2722 of file x11_window.c.

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

Definition at line 2213 of file x11_window.c.

int _glfwPlatformGetKeyScancode ( int  key)

Definition at line 2786 of file x11_window.c.

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

Definition at line 2891 of file x11_window.c.

void _glfwPlatformGetRequiredInstanceExtensions ( char **  extensions)

Definition at line 2870 of file x11_window.c.

const char* _glfwPlatformGetScancodeName ( int  scancode)

Definition at line 2765 of file x11_window.c.

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

Definition at line 2279 of file x11_window.c.

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

Definition at line 2218 of file x11_window.c.

float _glfwPlatformGetWindowOpacity ( _GLFWwindow window)

Definition at line 2624 of file x11_window.c.

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

Definition at line 2128 of file x11_window.c.

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

Definition at line 2166 of file x11_window.c.

void _glfwPlatformHideWindow ( _GLFWwindow window)

Definition at line 2362 of file x11_window.c.

void _glfwPlatformIconifyWindow ( _GLFWwindow window)

Definition at line 2288 of file x11_window.c.

void _glfwPlatformMaximizeWindow ( _GLFWwindow window)

Definition at line 2337 of file x11_window.c.

void _glfwPlatformPollEvents ( void  )

Definition at line 2655 of file x11_window.c.

void _glfwPlatformPostEmptyEvent ( void  )

Definition at line 2708 of file x11_window.c.

void _glfwPlatformRequestWindowAttention ( _GLFWwindow window)

Definition at line 2368 of file x11_window.c.

void _glfwPlatformRestoreWindow ( _GLFWwindow window)

Definition at line 2303 of file x11_window.c.

void _glfwPlatformSetClipboardString ( const char *  string)

Definition at line 2847 of file x11_window.c.

void _glfwPlatformSetCursor ( _GLFWwindow window,
_GLFWcursor cursor 
)

Definition at line 2838 of file x11_window.c.

void _glfwPlatformSetCursorMode ( _GLFWwindow window,
int  mode 
)

Definition at line 2750 of file x11_window.c.

void _glfwPlatformSetCursorPos ( _GLFWwindow window,
double  x,
double  y 
)

Definition at line 2739 of file x11_window.c.

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

Definition at line 2205 of file x11_window.c.

void _glfwPlatformSetWindowDecorated ( _GLFWwindow window,
GLFWbool  enabled 
)

Definition at line 2528 of file x11_window.c.

void _glfwPlatformSetWindowFloating ( _GLFWwindow window,
GLFWbool  enabled 
)

Definition at line 2559 of file x11_window.c.

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

Definition at line 2083 of file x11_window.c.

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

Definition at line 2391 of file x11_window.c.

void _glfwPlatformSetWindowOpacity ( _GLFWwindow window,
float  opacity 
)

Definition at line 2647 of file x11_window.c.

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

Definition at line 2142 of file x11_window.c.

void _glfwPlatformSetWindowResizable ( _GLFWwindow window,
GLFWbool  enabled 
)

Definition at line 2521 of file x11_window.c.

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

Definition at line 2177 of file x11_window.c.

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

Definition at line 2195 of file x11_window.c.

void _glfwPlatformSetWindowTitle ( _GLFWwindow window,
const char *  title 
)

Definition at line 2052 of file x11_window.c.

void _glfwPlatformShowWindow ( _GLFWwindow window)

Definition at line 2353 of file x11_window.c.

void _glfwPlatformWaitEvents ( void  )

Definition at line 2689 of file x11_window.c.

void _glfwPlatformWaitEventsTimeout ( double  timeout)

Definition at line 2697 of file x11_window.c.

int _glfwPlatformWindowFocused ( _GLFWwindow window)

Definition at line 2435 of file x11_window.c.

int _glfwPlatformWindowHovered ( _GLFWwindow window)

Definition at line 2491 of file x11_window.c.

int _glfwPlatformWindowIconified ( _GLFWwindow window)

Definition at line 2444 of file x11_window.c.

int _glfwPlatformWindowMaximized ( _GLFWwindow window)

Definition at line 2456 of file x11_window.c.

int _glfwPlatformWindowVisible ( _GLFWwindow window)

Definition at line 2449 of file x11_window.c.

void _glfwPushSelectionToManagerX11 ( void  )

Definition at line 1896 of file x11_window.c.

static void acquireMonitor ( _GLFWwindow window)
static

Definition at line 1103 of file x11_window.c.

static void centerCursor ( _GLFWwindow window)
static

Definition at line 506 of file x11_window.c.

static char* convertLatin1toUTF8 ( const char *  source)
static

Definition at line 487 of file x11_window.c.

static GLFWbool createNativeWindow ( _GLFWwindow window,
const _GLFWwndconfig wndconfig,
Visual *  visual,
int  depth 
)
static

Definition at line 591 of file x11_window.c.

static void disableCursor ( _GLFWwindow window)
static

Definition at line 536 of file x11_window.c.

static void enableCursor ( _GLFWwindow window)
static

Definition at line 567 of file x11_window.c.

static size_t encodeUTF8 ( char *  s,
unsigned int  ch 
)
static

Definition at line 432 of file x11_window.c.

static const char* getSelectionString ( Atom  selection)
static

Definition at line 960 of file x11_window.c.

static int getWindowState ( _GLFWwindow window)
static

Definition at line 122 of file x11_window.c.

GLFWAPI Display* glfwGetX11Display ( void  )

Definition at line 3024 of file x11_window.c.

GLFWAPI const char* glfwGetX11SelectionString ( void  )

Definition at line 3057 of file x11_window.c.

GLFWAPI Window glfwGetX11Window ( GLFWwindow handle)

Definition at line 3030 of file x11_window.c.

GLFWAPI void glfwSetX11SelectionString ( const char *  string)

Definition at line 3037 of file x11_window.c.

static void handleSelectionClear ( XEvent *  event)
static

Definition at line 928 of file x11_window.c.

static void handleSelectionRequest ( XEvent *  event)
static

Definition at line 942 of file x11_window.c.

static Bool isFrameExtentsEvent ( Display *  display,
XEvent *  event,
XPointer  pointer 
)
static

Definition at line 158 of file x11_window.c.

static Bool isSelectionEvent ( Display *  display,
XEvent *  event,
XPointer  pointer 
)
static

Definition at line 146 of file x11_window.c.

static Bool isSelPropNewValueNotify ( Display *  display,
XEvent *  event,
XPointer  pointer 
)
static

Definition at line 169 of file x11_window.c.

static char** parseUriList ( char *  text,
int *  count 
)
static

Definition at line 381 of file x11_window.c.

static void processEvent ( XEvent *  event)
static

Definition at line 1165 of file x11_window.c.

static void releaseMonitor ( _GLFWwindow window)
static

Definition at line 1142 of file x11_window.c.

static void sendEventToWM ( _GLFWwindow window,
Atom  type,
long  a,
long  b,
long  c,
long  d,
long  e 
)
static

Definition at line 213 of file x11_window.c.

static int translateKey ( int  scancode)
static

Definition at line 202 of file x11_window.c.

static int translateState ( int  state)
static

Definition at line 180 of file x11_window.c.

static void updateCursorImage ( _GLFWwindow window)
static

Definition at line 515 of file x11_window.c.

static void updateNormalHints ( _GLFWwindow window,
int  width,
int  height 
)
static

Definition at line 237 of file x11_window.c.

static void updateWindowMode ( _GLFWwindow window)
static

Definition at line 286 of file x11_window.c.

static GLFWbool waitForEvent ( double *  timeout)
static

Definition at line 58 of file x11_window.c.

static GLFWbool waitForVisibilityNotify ( _GLFWwindow window)
static

Definition at line 103 of file x11_window.c.

static Atom writeTargetToProperty ( const XSelectionRequestEvent *  request)
static

Definition at line 794 of file x11_window.c.



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