Classes | Macros | Typedefs | Functions
x11_platform.h File Reference
#include <unistd.h>
#include <signal.h>
#include <stdint.h>
#include <dlfcn.h>
#include <X11/Xlib.h>
#include <X11/keysym.h>
#include <X11/Xatom.h>
#include <X11/Xcursor/Xcursor.h>
#include <X11/extensions/Xrandr.h>
#include <X11/XKBlib.h>
#include <X11/extensions/Xinerama.h>
#include <X11/extensions/XInput2.h>
#include "posix_thread.h"
#include "posix_time.h"
#include "xkb_unicode.h"
#include "glx_context.h"
#include "egl_context.h"
#include "osmesa_context.h"
#include "null_joystick.h"
Include dependency graph for x11_platform.h:

Go to the source code of this file.

Classes

struct  _GLFWcursorX11
 
struct  _GLFWlibraryX11
 
struct  _GLFWmonitorX11
 
struct  _GLFWwindowX11
 
struct  VkXcbSurfaceCreateInfoKHR
 
struct  VkXlibSurfaceCreateInfoKHR
 

Macros

#define _glfw_dlclose(handle)   dlclose(handle)
 
#define _glfw_dlopen(name)   dlopen(name, RTLD_LAZY | RTLD_LOCAL)
 
#define _glfw_dlsym(handle, name)   dlsym(handle, name)
 
#define _GLFW_EGL_NATIVE_DISPLAY   ((EGLNativeDisplayType) _glfw.x11.display)
 
#define _GLFW_EGL_NATIVE_WINDOW   ((EGLNativeWindowType) window->x11.handle)
 
#define _GLFW_PLATFORM_CURSOR_STATE   _GLFWcursorX11 x11
 
#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE   _GLFWlibraryX11 x11
 
#define _GLFW_PLATFORM_MONITOR_STATE   _GLFWmonitorX11 x11
 
#define _GLFW_PLATFORM_WINDOW_STATE   _GLFWwindowX11 x11
 
#define XcursorImageCreate   _glfw.x11.xcursor.ImageCreate
 
#define XcursorImageDestroy   _glfw.x11.xcursor.ImageDestroy
 
#define XcursorImageLoadCursor   _glfw.x11.xcursor.ImageLoadCursor
 
#define XF86VidModeGetGammaRamp   _glfw.x11.vidmode.GetGammaRamp
 
#define XF86VidModeGetGammaRampSize   _glfw.x11.vidmode.GetGammaRampSize
 
#define XF86VidModeQueryExtension   _glfw.x11.vidmode.QueryExtension
 
#define XF86VidModeSetGammaRamp   _glfw.x11.vidmode.SetGammaRamp
 
#define XGetXCBConnection   _glfw.x11.x11xcb.GetXCBConnection
 
#define XineramaIsActive   _glfw.x11.xinerama.IsActive
 
#define XineramaQueryExtension   _glfw.x11.xinerama.QueryExtension
 
#define XineramaQueryScreens   _glfw.x11.xinerama.QueryScreens
 
#define XIQueryVersion   _glfw.x11.xi.QueryVersion
 
#define XISelectEvents   _glfw.x11.xi.SelectEvents
 
#define XRenderFindVisualFormat   _glfw.x11.xrender.FindVisualFormat
 
#define XRenderQueryExtension   _glfw.x11.xrender.QueryExtension
 
#define XRenderQueryVersion   _glfw.x11.xrender.QueryVersion
 
#define XRRAllocGamma   _glfw.x11.randr.AllocGamma
 
#define XRRFreeCrtcInfo   _glfw.x11.randr.FreeCrtcInfo
 
#define XRRFreeGamma   _glfw.x11.randr.FreeGamma
 
#define XRRFreeOutputInfo   _glfw.x11.randr.FreeOutputInfo
 
#define XRRFreeScreenResources   _glfw.x11.randr.FreeScreenResources
 
#define XRRGetCrtcGamma   _glfw.x11.randr.GetCrtcGamma
 
#define XRRGetCrtcGammaSize   _glfw.x11.randr.GetCrtcGammaSize
 
#define XRRGetCrtcInfo   _glfw.x11.randr.GetCrtcInfo
 
#define XRRGetOutputInfo   _glfw.x11.randr.GetOutputInfo
 
#define XRRGetOutputPrimary   _glfw.x11.randr.GetOutputPrimary
 
#define XRRGetScreenResourcesCurrent   _glfw.x11.randr.GetScreenResourcesCurrent
 
#define XRRQueryExtension   _glfw.x11.randr.QueryExtension
 
#define XRRQueryVersion   _glfw.x11.randr.QueryVersion
 
#define XRRSelectInput   _glfw.x11.randr.SelectInput
 
#define XRRSetCrtcConfig   _glfw.x11.randr.SetCrtcConfig
 
#define XRRSetCrtcGamma   _glfw.x11.randr.SetCrtcGamma
 
#define XRRUpdateConfiguration   _glfw.x11.randr.UpdateConfiguration
 

Typedefs

typedef struct _GLFWcursorX11 _GLFWcursorX11
 
typedef struct _GLFWlibraryX11 _GLFWlibraryX11
 
typedef struct _GLFWmonitorX11 _GLFWmonitorX11
 
typedef struct _GLFWwindowX11 _GLFWwindowX11
 
typedef VkResult(APIENTRYPFN_vkCreateXcbSurfaceKHR) (VkInstance, const VkXcbSurfaceCreateInfoKHR *, const VkAllocationCallbacks *, VkSurfaceKHR *)
 
typedef VkResult(APIENTRYPFN_vkCreateXlibSurfaceKHR) (VkInstance, const VkXlibSurfaceCreateInfoKHR *, const VkAllocationCallbacks *, VkSurfaceKHR *)
 
typedef VkBool32(APIENTRYPFN_vkGetPhysicalDeviceXcbPresentationSupportKHR) (VkPhysicalDevice, uint32_t, xcb_connection_t *, xcb_visualid_t)
 
typedef VkBool32(APIENTRYPFN_vkGetPhysicalDeviceXlibPresentationSupportKHR) (VkPhysicalDevice, uint32_t, Display *, VisualID)
 
typedef XcursorImage *(* PFN_XcursorImageCreate) (int, int)
 
typedef void(* PFN_XcursorImageDestroy) (XcursorImage *)
 
typedef Cursor(* PFN_XcursorImageLoadCursor) (Display *, const XcursorImage *)
 
typedef Bool(* PFN_XF86VidModeGetGammaRamp) (Display *, int, int, unsigned short *, unsigned short *, unsigned short *)
 
typedef Bool(* PFN_XF86VidModeGetGammaRampSize) (Display *, int, int *)
 
typedef Bool(* PFN_XF86VidModeQueryExtension) (Display *, int *, int *)
 
typedef Bool(* PFN_XF86VidModeSetGammaRamp) (Display *, int, int, unsigned short *, unsigned short *, unsigned short *)
 
typedef xcb_connection_t *(* PFN_XGetXCBConnection) (Display *)
 
typedef Bool(* PFN_XineramaIsActive) (Display *)
 
typedef Bool(* PFN_XineramaQueryExtension) (Display *, int *, int *)
 
typedef XineramaScreenInfo *(* PFN_XineramaQueryScreens) (Display *, int *)
 
typedef Status(* PFN_XIQueryVersion) (Display *, int *, int *)
 
typedef int(* PFN_XISelectEvents) (Display *, Window, XIEventMask *, int)
 
typedef XRenderPictFormat *(* PFN_XRenderFindVisualFormat) (Display *, Visual const *)
 
typedef Bool(* PFN_XRenderQueryExtension) (Display *, int *, int *)
 
typedef Status(* PFN_XRenderQueryVersion) (Display *dpy, int *, int *)
 
typedef XRRCrtcGamma *(* PFN_XRRAllocGamma) (int)
 
typedef void(* PFN_XRRFreeCrtcInfo) (XRRCrtcInfo *)
 
typedef void(* PFN_XRRFreeGamma) (XRRCrtcGamma *)
 
typedef void(* PFN_XRRFreeOutputInfo) (XRROutputInfo *)
 
typedef void(* PFN_XRRFreeScreenResources) (XRRScreenResources *)
 
typedef XRRCrtcGamma *(* PFN_XRRGetCrtcGamma) (Display *, RRCrtc)
 
typedef int(* PFN_XRRGetCrtcGammaSize) (Display *, RRCrtc)
 
typedef XRRCrtcInfo *(* PFN_XRRGetCrtcInfo) (Display *, XRRScreenResources *, RRCrtc)
 
typedef XRROutputInfo *(* PFN_XRRGetOutputInfo) (Display *, XRRScreenResources *, RROutput)
 
typedef RROutput(* PFN_XRRGetOutputPrimary) (Display *, Window)
 
typedef XRRScreenResources *(* PFN_XRRGetScreenResourcesCurrent) (Display *, Window)
 
typedef Bool(* PFN_XRRQueryExtension) (Display *, int *, int *)
 
typedef Status(* PFN_XRRQueryVersion) (Display *, int *, int *)
 
typedef void(* PFN_XRRSelectInput) (Display *, Window, int)
 
typedef Status(* PFN_XRRSetCrtcConfig) (Display *, XRRScreenResources *, RRCrtc, Time, int, int, RRMode, Rotation, RROutput *, int)
 
typedef void(* PFN_XRRSetCrtcGamma) (Display *, RRCrtc, XRRCrtcGamma *)
 
typedef int(* PFN_XRRUpdateConfiguration) (XEvent *)
 
typedef VkFlags VkXcbSurfaceCreateFlagsKHR
 
typedef struct VkXcbSurfaceCreateInfoKHR VkXcbSurfaceCreateInfoKHR
 
typedef VkFlags VkXlibSurfaceCreateFlagsKHR
 
typedef struct VkXlibSurfaceCreateInfoKHR VkXlibSurfaceCreateInfoKHR
 
typedef struct xcb_connection_t xcb_connection_t
 
typedef XID xcb_visualid_t
 
typedef XID xcb_window_t
 

Functions

Cursor _glfwCreateCursorX11 (const GLFWimage *image, int xhot, int yhot)
 
unsigned long _glfwGetWindowPropertyX11 (Window window, Atom property, Atom type, unsigned char **value)
 
void _glfwGrabErrorHandlerX11 (void)
 
void _glfwInputErrorX11 (int error, const char *message)
 
GLFWbool _glfwIsVisualTransparentX11 (Visual *visual)
 
void _glfwPollMonitorsX11 (void)
 
void _glfwPushSelectionToManagerX11 (void)
 
void _glfwReleaseErrorHandlerX11 (void)
 
void _glfwRestoreVideoModeX11 (_GLFWmonitor *monitor)
 
void _glfwSetVideoModeX11 (_GLFWmonitor *monitor, const GLFWvidmode *desired)
 

Macro Definition Documentation

#define _glfw_dlclose (   handle)    dlclose(handle)

Definition at line 165 of file x11_platform.h.

#define _glfw_dlopen (   name)    dlopen(name, RTLD_LAZY | RTLD_LOCAL)

Definition at line 164 of file x11_platform.h.

#define _glfw_dlsym (   handle,
  name 
)    dlsym(handle, name)

Definition at line 166 of file x11_platform.h.

#define _GLFW_EGL_NATIVE_DISPLAY   ((EGLNativeDisplayType) _glfw.x11.display)

Definition at line 169 of file x11_platform.h.

#define _GLFW_EGL_NATIVE_WINDOW   ((EGLNativeWindowType) window->x11.handle)

Definition at line 168 of file x11_platform.h.

#define _GLFW_PLATFORM_CURSOR_STATE   _GLFWcursorX11 x11

Definition at line 174 of file x11_platform.h.

#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE   _GLFWlibraryX11 x11

Definition at line 172 of file x11_platform.h.

#define _GLFW_PLATFORM_MONITOR_STATE   _GLFWmonitorX11 x11

Definition at line 173 of file x11_platform.h.

#define _GLFW_PLATFORM_WINDOW_STATE   _GLFWwindowX11 x11

Definition at line 171 of file x11_platform.h.

#define XcursorImageCreate   _glfw.x11.xcursor.ImageCreate

Definition at line 88 of file x11_platform.h.

#define XcursorImageDestroy   _glfw.x11.xcursor.ImageDestroy

Definition at line 89 of file x11_platform.h.

#define XcursorImageLoadCursor   _glfw.x11.xcursor.ImageLoadCursor

Definition at line 90 of file x11_platform.h.

#define XF86VidModeGetGammaRamp   _glfw.x11.vidmode.GetGammaRamp

Definition at line 110 of file x11_platform.h.

#define XF86VidModeGetGammaRampSize   _glfw.x11.vidmode.GetGammaRampSize

Definition at line 112 of file x11_platform.h.

#define XF86VidModeQueryExtension   _glfw.x11.vidmode.QueryExtension

Definition at line 109 of file x11_platform.h.

#define XF86VidModeSetGammaRamp   _glfw.x11.vidmode.SetGammaRamp

Definition at line 111 of file x11_platform.h.

#define XGetXCBConnection   _glfw.x11.x11xcb.GetXCBConnection

Definition at line 103 of file x11_platform.h.

#define XineramaIsActive   _glfw.x11.xinerama.IsActive

Definition at line 95 of file x11_platform.h.

#define XineramaQueryExtension   _glfw.x11.xinerama.QueryExtension

Definition at line 96 of file x11_platform.h.

#define XineramaQueryScreens   _glfw.x11.xinerama.QueryScreens

Definition at line 97 of file x11_platform.h.

#define XIQueryVersion   _glfw.x11.xi.QueryVersion

Definition at line 116 of file x11_platform.h.

#define XISelectEvents   _glfw.x11.xi.SelectEvents

Definition at line 117 of file x11_platform.h.

#define XRenderFindVisualFormat   _glfw.x11.xrender.FindVisualFormat

Definition at line 124 of file x11_platform.h.

#define XRenderQueryExtension   _glfw.x11.xrender.QueryExtension

Definition at line 122 of file x11_platform.h.

#define XRenderQueryVersion   _glfw.x11.xrender.QueryVersion

Definition at line 123 of file x11_platform.h.

#define XRRAllocGamma   _glfw.x11.randr.AllocGamma

Definition at line 67 of file x11_platform.h.

#define XRRFreeCrtcInfo   _glfw.x11.randr.FreeCrtcInfo

Definition at line 68 of file x11_platform.h.

#define XRRFreeGamma   _glfw.x11.randr.FreeGamma

Definition at line 69 of file x11_platform.h.

#define XRRFreeOutputInfo   _glfw.x11.randr.FreeOutputInfo

Definition at line 70 of file x11_platform.h.

#define XRRFreeScreenResources   _glfw.x11.randr.FreeScreenResources

Definition at line 71 of file x11_platform.h.

#define XRRGetCrtcGamma   _glfw.x11.randr.GetCrtcGamma

Definition at line 72 of file x11_platform.h.

#define XRRGetCrtcGammaSize   _glfw.x11.randr.GetCrtcGammaSize

Definition at line 73 of file x11_platform.h.

#define XRRGetCrtcInfo   _glfw.x11.randr.GetCrtcInfo

Definition at line 74 of file x11_platform.h.

#define XRRGetOutputInfo   _glfw.x11.randr.GetOutputInfo

Definition at line 75 of file x11_platform.h.

#define XRRGetOutputPrimary   _glfw.x11.randr.GetOutputPrimary

Definition at line 76 of file x11_platform.h.

#define XRRGetScreenResourcesCurrent   _glfw.x11.randr.GetScreenResourcesCurrent

Definition at line 77 of file x11_platform.h.

#define XRRQueryExtension   _glfw.x11.randr.QueryExtension

Definition at line 78 of file x11_platform.h.

#define XRRQueryVersion   _glfw.x11.randr.QueryVersion

Definition at line 79 of file x11_platform.h.

#define XRRSelectInput   _glfw.x11.randr.SelectInput

Definition at line 80 of file x11_platform.h.

#define XRRSetCrtcConfig   _glfw.x11.randr.SetCrtcConfig

Definition at line 81 of file x11_platform.h.

#define XRRSetCrtcGamma   _glfw.x11.randr.SetCrtcGamma

Definition at line 82 of file x11_platform.h.

#define XRRUpdateConfiguration   _glfw.x11.randr.UpdateConfiguration

Definition at line 83 of file x11_platform.h.

Typedef Documentation

typedef VkResult(APIENTRY * PFN_vkCreateXcbSurfaceKHR) (VkInstance, const VkXcbSurfaceCreateInfoKHR *, const VkAllocationCallbacks *, VkSurfaceKHR *)

Definition at line 149 of file x11_platform.h.

typedef VkResult(APIENTRY * PFN_vkCreateXlibSurfaceKHR) (VkInstance, const VkXlibSurfaceCreateInfoKHR *, const VkAllocationCallbacks *, VkSurfaceKHR *)

Definition at line 147 of file x11_platform.h.

typedef VkBool32(APIENTRY * PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR) (VkPhysicalDevice, uint32_t, xcb_connection_t *, xcb_visualid_t)

Definition at line 150 of file x11_platform.h.

typedef VkBool32(APIENTRY * PFN_vkGetPhysicalDeviceXlibPresentationSupportKHR) (VkPhysicalDevice, uint32_t, Display *, VisualID)

Definition at line 148 of file x11_platform.h.

typedef XcursorImage*(* PFN_XcursorImageCreate) (int, int)

Definition at line 85 of file x11_platform.h.

typedef void(* PFN_XcursorImageDestroy) (XcursorImage *)

Definition at line 86 of file x11_platform.h.

typedef Cursor(* PFN_XcursorImageLoadCursor) (Display *, const XcursorImage *)

Definition at line 87 of file x11_platform.h.

typedef Bool(* PFN_XF86VidModeGetGammaRamp) (Display *, int, int, unsigned short *, unsigned short *, unsigned short *)

Definition at line 106 of file x11_platform.h.

typedef Bool(* PFN_XF86VidModeGetGammaRampSize) (Display *, int, int *)

Definition at line 108 of file x11_platform.h.

typedef Bool(* PFN_XF86VidModeQueryExtension) (Display *, int *, int *)

Definition at line 105 of file x11_platform.h.

typedef Bool(* PFN_XF86VidModeSetGammaRamp) (Display *, int, int, unsigned short *, unsigned short *, unsigned short *)

Definition at line 107 of file x11_platform.h.

typedef xcb_connection_t*(* PFN_XGetXCBConnection) (Display *)

Definition at line 102 of file x11_platform.h.

typedef Bool(* PFN_XineramaIsActive) (Display *)

Definition at line 92 of file x11_platform.h.

typedef Bool(* PFN_XineramaQueryExtension) (Display *, int *, int *)

Definition at line 93 of file x11_platform.h.

typedef XineramaScreenInfo*(* PFN_XineramaQueryScreens) (Display *, int *)

Definition at line 94 of file x11_platform.h.

typedef Status(* PFN_XIQueryVersion) (Display *, int *, int *)

Definition at line 114 of file x11_platform.h.

typedef int(* PFN_XISelectEvents) (Display *, Window, XIEventMask *, int)

Definition at line 115 of file x11_platform.h.

typedef XRenderPictFormat*(* PFN_XRenderFindVisualFormat) (Display *, Visual const *)

Definition at line 121 of file x11_platform.h.

typedef Bool(* PFN_XRenderQueryExtension) (Display *, int *, int *)

Definition at line 119 of file x11_platform.h.

typedef Status(* PFN_XRenderQueryVersion) (Display *dpy, int *, int *)

Definition at line 120 of file x11_platform.h.

typedef XRRCrtcGamma*(* PFN_XRRAllocGamma) (int)

Definition at line 50 of file x11_platform.h.

typedef void(* PFN_XRRFreeCrtcInfo) (XRRCrtcInfo *)

Definition at line 51 of file x11_platform.h.

typedef void(* PFN_XRRFreeGamma) (XRRCrtcGamma *)

Definition at line 52 of file x11_platform.h.

typedef void(* PFN_XRRFreeOutputInfo) (XRROutputInfo *)

Definition at line 53 of file x11_platform.h.

typedef void(* PFN_XRRFreeScreenResources) (XRRScreenResources *)

Definition at line 54 of file x11_platform.h.

typedef XRRCrtcGamma*(* PFN_XRRGetCrtcGamma) (Display *, RRCrtc)

Definition at line 55 of file x11_platform.h.

typedef int(* PFN_XRRGetCrtcGammaSize) (Display *, RRCrtc)

Definition at line 56 of file x11_platform.h.

typedef XRRCrtcInfo*(* PFN_XRRGetCrtcInfo) (Display *, XRRScreenResources *, RRCrtc)

Definition at line 57 of file x11_platform.h.

typedef XRROutputInfo*(* PFN_XRRGetOutputInfo) (Display *, XRRScreenResources *, RROutput)

Definition at line 58 of file x11_platform.h.

typedef RROutput(* PFN_XRRGetOutputPrimary) (Display *, Window)

Definition at line 59 of file x11_platform.h.

typedef XRRScreenResources*(* PFN_XRRGetScreenResourcesCurrent) (Display *, Window)

Definition at line 60 of file x11_platform.h.

typedef Bool(* PFN_XRRQueryExtension) (Display *, int *, int *)

Definition at line 61 of file x11_platform.h.

typedef Status(* PFN_XRRQueryVersion) (Display *, int *, int *)

Definition at line 62 of file x11_platform.h.

typedef void(* PFN_XRRSelectInput) (Display *, Window, int)

Definition at line 63 of file x11_platform.h.

typedef Status(* PFN_XRRSetCrtcConfig) (Display *, XRRScreenResources *, RRCrtc, Time, int, int, RRMode, Rotation, RROutput *, int)

Definition at line 64 of file x11_platform.h.

typedef void(* PFN_XRRSetCrtcGamma) (Display *, RRCrtc, XRRCrtcGamma *)

Definition at line 65 of file x11_platform.h.

typedef int(* PFN_XRRUpdateConfiguration) (XEvent *)

Definition at line 66 of file x11_platform.h.

Definition at line 127 of file x11_platform.h.

Definition at line 126 of file x11_platform.h.

Definition at line 101 of file x11_platform.h.

typedef XID xcb_visualid_t

Definition at line 100 of file x11_platform.h.

typedef XID xcb_window_t

Definition at line 99 of file x11_platform.h.

Function Documentation

Cursor _glfwCreateCursorX11 ( const GLFWimage image,
int  xhot,
int  yhot 
)

Definition at line 883 of file x11_init.c.

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

Definition at line 1860 of file x11_window.c.

void _glfwGrabErrorHandlerX11 ( void  )

Definition at line 855 of file x11_init.c.

void _glfwInputErrorX11 ( int  error,
const char *  message 
)

Definition at line 872 of file x11_init.c.

GLFWbool _glfwIsVisualTransparentX11 ( Visual *  visual)

Definition at line 1885 of file x11_window.c.

void _glfwPollMonitorsX11 ( void  )

Definition at line 100 of file x11_monitor.c.

void _glfwPushSelectionToManagerX11 ( void  )

Definition at line 1896 of file x11_window.c.

void _glfwReleaseErrorHandlerX11 ( void  )

Definition at line 863 of file x11_init.c.

void _glfwRestoreVideoModeX11 ( _GLFWmonitor monitor)

Definition at line 277 of file x11_monitor.c.

void _glfwSetVideoModeX11 ( _GLFWmonitor monitor,
const GLFWvidmode desired 
)

Definition at line 219 of file x11_monitor.c.



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