Documentation ¶
Index ¶
- Constants
- Variables
- func GLXGetProcAddressARB(p string) unsafe.Pointer
- func GlGetString(name uint32) string
- func XFree(ptr unsafe.Pointer)
- func XInitThreads()
- func XSetErrorHandler(c func(err string))
- type AllocColorCookie
- type AllocColorReply
- type Atom
- type Button
- type ButtonPressEvent
- type ButtonReleaseEvent
- type CirculateNotifyEvent
- type CirculateRequestEvent
- type ClientMessageEvent
- type Colormap
- type ColormapNotifyEvent
- type ConfigureNotifyEvent
- type ConfigureRequestEvent
- type Connection
- func (c *Connection) AllocColor(cmap Colormap, red, green, blue uint16) AllocColorCookie
- func (c *Connection) AllocColorReply(cookie AllocColorCookie) (reply *AllocColorReply, err error)
- func (c *Connection) ChangeGCChecked(cid GContext, valueMask uint32, values *uint32) VoidCookie
- func (c *Connection) ChangeProperty(mode uint8, w Window, prop Atom, Type Atom, format uint8, dataLen uint32, ...) VoidCookie
- func (c *Connection) ChangePropertyChecked(mode uint8, w Window, prop Atom, Type Atom, format uint8, dataLen uint32, ...) VoidCookie
- func (c *Connection) ChangeWindowAttributes(w Window, mask uint32, values *uint32) VoidCookie
- func (c *Connection) ConfigureWindow(w Window, flags uint16, values []uint32)
- func (c *Connection) CopyArea(src, dst Drawable, gc GContext, srcX, srcY, dstX, dstY int16, ...) VoidCookie
- func (c *Connection) CreateColormap(alloc uint8, mid Colormap, window Window, visual VisualId) VoidCookie
- func (c *Connection) CreateColormapChecked(allocAll bool, mid Colormap, w Window, v VisualId) VoidCookie
- func (c *Connection) CreateGCChecked(cid GContext, d Drawable, valueMask uint32, values *uint32) VoidCookie
- func (c *Connection) CreatePixmapChecked(depth uint8, pid Pixmap, d Drawable, width, height uint16) VoidCookie
- func (c *Connection) CreateWindowChecked(depth uint8, wid, parent Window, x, y int16, ...) VoidCookie
- func (c *Connection) DeleteProperty(w Window, prop Atom)
- func (c *Connection) DestroyWindow(w Window) VoidCookie
- func (c *Connection) Disconnect()
- func (c *Connection) FindPixmapFormat(depth, bpp uint8) (foundFormat *Format)
- func (c *Connection) Flush()
- func (c *Connection) FreeCursor(cursor Cursor) VoidCookie
- func (c *Connection) FreeGC(gc GContext) VoidCookie
- func (c *Connection) FreePixmap(pixmap Pixmap) VoidCookie
- func (c *Connection) GenerateId() Window
- func (c *Connection) GetFileDescriptor() int
- func (c *Connection) GetKeyboardMapping(firstKeycode Keycode, count uint8) GetKeyboardMappingCookie
- func (c *Connection) GetKeyboardMappingKeysyms(r *GetKeyboardMappingReply) (keysyms *Keysyms)
- func (c *Connection) GetKeyboardMappingReply(cookie GetKeyboardMappingCookie) (reply *GetKeyboardMappingReply, err error)
- func (c *Connection) GetProperty(delete bool, w Window, prop Atom, Type Atom, offset uint32, length uint32) (reply *GetPropertyReply, ptr unsafe.Pointer, ptrLen int, err error)
- func (c *Connection) GetSetup() *Setup
- func (c *Connection) GrabKeyboard(ownerEvents uint8, grabWindow Window, time Timestamp, ...) GrabKeyboardCookie
- func (c *Connection) GrabKeyboardReply(cookie GrabKeyboardCookie) (reply *GrabKeyboardReply, err error)
- func (c *Connection) GrabPointer(ownerEvents uint8, grabEvents Window, eventMask uint16, ...) GrabPointerCookie
- func (c *Connection) GrabPointerReply(cookie GrabPointerCookie) (reply *GrabPointerReply, err error)
- func (c *Connection) HasError() error
- func (c *Connection) ImageNative(i *Image, convert bool) *Image
- func (c *Connection) ImagePut(draw Drawable, gc GContext, image *Image, x, y int16, leftPad uint8) VoidCookie
- func (c *Connection) InternAtom(onlyIfExists bool, name string) Atom
- func (c *Connection) MapWindow(w Window) VoidCookie
- func (c *Connection) PixmapFormatsIterator(callback func(*Format) (again bool))
- func (c *Connection) PutImageChecked(format uint8, d Drawable, gc GContext, width, height uint16, dstX, dstY int16, ...) VoidCookie
- func (c *Connection) QueryExtension(name string) bool
- func (c *Connection) RandrGetCrtcInfo(crtc RandrCrtc, configTimestamp Timestamp) RandrGetCrtcInfoCookie
- func (c *Connection) RandrGetCrtcInfoReply(cookie RandrGetCrtcInfoCookie) (reply *RandrGetCrtcInfoReply, err error)
- func (c *Connection) RandrGetCrtcInfoReplyOutputs(r *RandrGetCrtcInfoReply) (outputs *RandrOutputs)
- func (c *Connection) RandrGetOutputInfo(output RandrOutput, configTimestamp Timestamp) RandrGetOutputInfoCookie
- func (c *Connection) RandrGetOutputInfoModes(r *RandrGetOutputInfoReply) (modes *RandrModes)
- func (c *Connection) RandrGetOutputInfoName(r *RandrGetOutputInfoReply) (name string)
- func (c *Connection) RandrGetOutputInfoReply(cookie RandrGetOutputInfoCookie) (reply *RandrGetOutputInfoReply, err error)
- func (c *Connection) RandrGetScreenResources(window Window) RandrGetScreenResourcesCookie
- func (c *Connection) RandrGetScreenResourcesCrtcs(r *RandrGetScreenResourcesReply) (crtcs *RandrCrtcs)
- func (c *Connection) RandrGetScreenResourcesCurrent(window Window) RandrGetScreenResourcesCurrentCookie
- func (c *Connection) RandrGetScreenResourcesCurrentCrtcs(r *RandrGetScreenResourcesCurrentReply) (crtcs *RandrCrtcs)
- func (c *Connection) RandrGetScreenResourcesCurrentModes(r *RandrGetScreenResourcesCurrentReply) (modes *RandrModeInfos)
- func (c *Connection) RandrGetScreenResourcesCurrentReply(cookie RandrGetScreenResourcesCurrentCookie) (reply *RandrGetScreenResourcesCurrentReply, err error)
- func (c *Connection) RandrGetScreenResourcesModes(r *RandrGetScreenResourcesReply) (modes *RandrModeInfos)
- func (c *Connection) RandrGetScreenResourcesReply(cookie RandrGetScreenResourcesCookie) (reply *RandrGetScreenResourcesReply, err error)
- func (c *Connection) RandrQueryVersion(majorVersion, minorVersion uint32) RandrQueryVersionCookie
- func (c *Connection) RandrQueryVersionReply(cookie RandrQueryVersionCookie) (reply *RandrQueryVersionReply, err error)
- func (c *Connection) RandrSetCrtcConfig(crtc RandrCrtc, timestamp Timestamp, configTimestamp Timestamp, x, y int16, ...) RandrSetCrtcConfigCookie
- func (c *Connection) RandrSetCrtcConfigReply(cookie RandrSetCrtcConfigCookie) (reply *RandrSetCrtcConfigReply, err error)
- func (c *Connection) RenderCreateCursorChecked(cid Cursor, source RenderPicture, x, y uint16) VoidCookie
- func (c *Connection) RenderCreatePictureChecked(pid RenderPicture, d Drawable, format RenderPictformat, mask uint32, ...) VoidCookie
- func (c *Connection) RenderFreePicture(pid RenderPicture) VoidCookie
- func (c *Connection) RenderQueryPictFormats() RenderQueryPictFormatsCookie
- func (c *Connection) RenderQueryPictFormatsReply(cookie RenderQueryPictFormatsCookie) (reply *RenderQueryPictFormatsReply, err error)
- func (c *Connection) RequestCheck(cookie VoidCookie) (err error)
- func (c *Connection) RootsIterator(callback func(s *Screen) (again bool))
- func (c *Connection) ScreenAllowedDepthsIterator(s *Screen, callback func(d *Depth) (again bool))
- func (c *Connection) ScreenOfDisplay(screen int) *Screen
- func (c *Connection) SendClientMessage(w, dest Window, atom Atom, dataLen uint32, data *uint32)
- func (c *Connection) SendEvent(propogate bool, dest Window, eventMask uint32, event unsafe.Pointer)
- func (c *Connection) SetWmSizeHints(w Window, hints *SizeHints)
- func (c *Connection) SetupRootsLength(r *Setup) int
- func (c *Connection) TranslateCoordinates(srcWindow, dstWindow Window, srcX, srcY int16) TranslateCoordinatesCookie
- func (c *Connection) TranslateCoordinatesReply(cookie TranslateCoordinatesCookie) (reply *TranslateCoordinatesReply, err error)
- func (c *Connection) UngrabKeyboard(time Timestamp) VoidCookie
- func (c *Connection) UngrabPointer(time Timestamp) VoidCookie
- func (c *Connection) UnmapWindow(w Window) VoidCookie
- func (c *Connection) WaitForEvent() (ev *GenericEvent)
- func (c *Connection) WarpPointer(src, dst Window, srcX, srcY int16, srcWidth, srcHeight uint16, ...) VoidCookie
- func (c *Connection) XkbSelectEventsAuxChecked(deviceSpec XkbDeviceSpec, ...) VoidCookie
- type CreateNotifyEvent
- type Cursor
- type Depth
- type DestroyNotifyEvent
- type Display
- func (d *Display) Close()
- func (d *Display) GLXCreateContextAttribsARB(config GLXFBConfig, share GLXContext, direct bool, attribs *Int) GLXContext
- func (d *Display) GLXCreateNewContext(config GLXFBConfig, renderType int, shareList GLXContext, direct bool) GLXContext
- func (d *Display) GLXCreateWindow(config GLXFBConfig, win Window) GLXWindow
- func (d *Display) GLXDestroyContext(ctx GLXContext)
- func (d *Display) GLXDestroyWindow(win GLXWindow)
- func (d *Display) GLXGetFBConfigAttrib(config GLXFBConfig, attrib int) (value Int, ret int)
- func (d *Display) GLXGetFBConfigs(screen int) (configs []GLXFBConfig)
- func (d *Display) GLXGetVisualFromFBConfig(config GLXFBConfig) *XVisualInfo
- func (d *Display) GLXMakeContextCurrent(draw, read GLXDrawable, ctx GLXContext) int
- func (d *Display) GLXQueryExtensionsString(screen int) string
- func (d *Display) GLXQueryVersion(maj, min *Int) bool
- func (d *Display) GLXSwapBuffers(drawable GLXDrawable)
- func (d *Display) GLXSwapIntervalEXT(drawable GLXDrawable, interval int)
- func (d *Display) GLXSwapIntervalMESA(interval int) int
- func (d *Display) GLXSwapIntervalSGI(interval int) int
- func (d *Display) XDefaultScreen() int
- func (d *Display) XFlush()
- func (d *Display) XSetEventQueueOwner(owner uint32)
- func (d *Display) XSync(x bool)
- func (d *Display) XkbGetIndicatorState(deviceSpec uint32) (state uint32, status Status)
- func (d *Display) XkbSetDetectableAutoRepeat(detectable bool) (wasSetOk, supported bool)
- type Drawable
- type EAllocColorReply
- type EGenericEvent
- type EGetKeyboardMappingReply
- type EGetPropertyReply
- type EGrabKeyboardReply
- type EGrabPointerReply
- type ERandrGetCrtcInfoReply
- type ERandrGetOutputInfoReply
- type ERandrGetScreenResourcesCurrentReply
- type ERandrGetScreenResourcesReply
- type ERandrQueryVersionReply
- type ERandrSetCrtcConfigReply
- type ERenderQueryPictFormatsReply
- type ETranslateCoordinatesReply
- type EnterNotifyEvent
- type ExposeEvent
- type FocusInEvent
- type FocusOutEvent
- type Format
- type GContext
- type GLXContext
- type GLXDrawable
- type GLXFBConfig
- type GLXWindow
- type GenericEvent
- type GetKeyboardMappingCookie
- type GetKeyboardMappingReply
- type GetPropertyReply
- type GrabKeyboardCookie
- type GrabKeyboardReply
- type GrabPointerCookie
- type GrabPointerReply
- type GraphicsExposureEvent
- type GravityNotifyEvent
- type Image
- type Int
- type Int32
- type InternAtomCookie
- type KeyPressEvent
- type KeyReleaseEvent
- type Keycode
- type KeymapNotifyEvent
- type Keysym
- type Keysyms
- type LeaveNotifyEvent
- type Long
- type MapNotifyEvent
- type MapRequestEvent
- type MappingNotifyEvent
- type MotifWMHints
- type MotionNotifyEvent
- type NoExposureEvent
- type PictStandard
- type Pixmap
- type PropertyNotifyEvent
- type RandrCrtc
- type RandrCrtcs
- type RandrGetCrtcInfoCookie
- type RandrGetCrtcInfoReply
- type RandrGetOutputInfoCookie
- type RandrGetOutputInfoReply
- type RandrGetScreenResourcesCookie
- type RandrGetScreenResourcesCurrentCookie
- type RandrGetScreenResourcesCurrentReply
- type RandrGetScreenResourcesReply
- type RandrMode
- type RandrModeInfo
- type RandrModeInfos
- type RandrModes
- type RandrOutput
- type RandrOutputs
- type RandrQueryVersionCookie
- type RandrQueryVersionReply
- type RandrSetCrtcConfigCookie
- type RandrSetCrtcConfigReply
- type RenderPictformat
- type RenderPictforminfo
- type RenderPicture
- type RenderQueryPictFormatsCookie
- type RenderQueryPictFormatsReply
- type ReparentNotifyEvent
- type RequestError
- type ResizeRequestEvent
- type Screen
- type SelectionClearEvent
- type SelectionNotifyEvent
- type SelectionRequestEvent
- type Setup
- type SizeHints
- type Status
- type Timestamp
- type TranslateCoordinatesCookie
- type TranslateCoordinatesReply
- type Uint32
- type UnmapNotifyEvent
- type VisibilityNotifyEvent
- type VisualId
- type VisualType
- type VoidCookie
- type Window
- type XVisualInfo
- type XkbAnyEvent
- type XkbDeviceSpec
- type XkbSelectEventDetails
- type XkbStateNotifyEvent
- func (e *XkbStateNotifyEvent) BaseGroup() int16
- func (e *XkbStateNotifyEvent) BaseMods() uint8
- func (e *XkbStateNotifyEvent) Keycode() Keycode
- func (e *XkbStateNotifyEvent) LatchedGroup() int16
- func (e *XkbStateNotifyEvent) LatchedMods() uint8
- func (e *XkbStateNotifyEvent) LockedGroup() uint8
- func (e *XkbStateNotifyEvent) LockedMods() uint8
Constants ¶
View Source
const ( EVENT_MASK_NO_EVENT = C.XCB_EVENT_MASK_NO_EVENT EVENT_MASK_KEY_PRESS = C.XCB_EVENT_MASK_KEY_PRESS EVENT_MASK_KEY_RELEASE = C.XCB_EVENT_MASK_KEY_RELEASE EVENT_MASK_BUTTON_PRESS = C.XCB_EVENT_MASK_BUTTON_PRESS EVENT_MASK_BUTTON_RELEASE = C.XCB_EVENT_MASK_BUTTON_RELEASE EVENT_MASK_ENTER_WINDOW = C.XCB_EVENT_MASK_ENTER_WINDOW EVENT_MASK_LEAVE_WINDOW = C.XCB_EVENT_MASK_LEAVE_WINDOW EVENT_MASK_POINTER_MOTION = C.XCB_EVENT_MASK_POINTER_MOTION EVENT_MASK_POINTER_MOTION_HINT = C.XCB_EVENT_MASK_POINTER_MOTION_HINT EVENT_MASK_BUTTON_1_MOTION = C.XCB_EVENT_MASK_BUTTON_1_MOTION EVENT_MASK_BUTTON_2_MOTION = C.XCB_EVENT_MASK_BUTTON_2_MOTION EVENT_MASK_BUTTON_3_MOTION = C.XCB_EVENT_MASK_BUTTON_3_MOTION EVENT_MASK_BUTTON_4_MOTION = C.XCB_EVENT_MASK_BUTTON_4_MOTION EVENT_MASK_BUTTON_5_MOTION = C.XCB_EVENT_MASK_BUTTON_5_MOTION EVENT_MASK_BUTTON_MOTION = C.XCB_EVENT_MASK_BUTTON_MOTION EVENT_MASK_KEYMAP_STATE = C.XCB_EVENT_MASK_KEYMAP_STATE EVENT_MASK_EXPOSURE = C.XCB_EVENT_MASK_EXPOSURE EVENT_MASK_VISIBILITY_CHANGE = C.XCB_EVENT_MASK_VISIBILITY_CHANGE EVENT_MASK_STRUCTURE_NOTIFY = C.XCB_EVENT_MASK_STRUCTURE_NOTIFY EVENT_MASK_RESIZE_REDIRECT = C.XCB_EVENT_MASK_RESIZE_REDIRECT EVENT_MASK_SUBSTRUCTURE_NOTIFY = C.XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY EVENT_MASK_SUBSTRUCTURE_REDIRECT = C.XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT EVENT_MASK_FOCUS_CHANGE = C.XCB_EVENT_MASK_FOCUS_CHANGE EVENT_MASK_PROPERTY_CHANGE = C.XCB_EVENT_MASK_PROPERTY_CHANGE EVENT_MASK_OWNER_GRAB_BUTTON = C.XCB_EVENT_MASK_OWNER_GRAB_BUTTON KEY_PRESS = C.XCB_KEY_PRESS KEY_RELEASE = C.XCB_KEY_RELEASE BUTTON_PRESS = C.XCB_BUTTON_PRESS BUTTON_MASK_1 = C.XCB_BUTTON_MASK_1 BUTTON_MASK_2 = C.XCB_BUTTON_MASK_2 BUTTON_MASK_3 = C.XCB_BUTTON_MASK_3 BUTTON_MASK_4 = C.XCB_BUTTON_MASK_4 BUTTON_MASK_5 = C.XCB_BUTTON_MASK_5 BUTTON_MASK_ANY = C.XCB_BUTTON_MASK_ANY BUTTON_RELEASE = C.XCB_BUTTON_RELEASE MOTION_NOTIFY = C.XCB_MOTION_NOTIFY ENTER_NOTIFY = C.XCB_ENTER_NOTIFY LEAVE_NOTIFY = C.XCB_LEAVE_NOTIFY FOCUS_IN = C.XCB_FOCUS_IN FOCUS_OUT = C.XCB_FOCUS_OUT KEYMAP_NOTIFY = C.XCB_KEYMAP_NOTIFY EXPOSE = C.XCB_EXPOSE GRAPHICS_EXPOSURE = C.XCB_GRAPHICS_EXPOSURE NO_EXPOSURE = C.XCB_NO_EXPOSURE VISIBILITY_NOTIFY = C.XCB_VISIBILITY_NOTIFY CREATE_NOTIFY = C.XCB_CREATE_NOTIFY DESTROY_NOTIFY = C.XCB_DESTROY_NOTIFY UNMAP_NOTIFY = C.XCB_UNMAP_NOTIFY MAP_NOTIFY = C.XCB_MAP_NOTIFY MAP_REQUEST = C.XCB_MAP_REQUEST REPARENT_NOTIFY = C.XCB_REPARENT_NOTIFY CONFIGURE_NOTIFY = C.XCB_CONFIGURE_NOTIFY CONFIGURE_REQUEST = C.XCB_CONFIGURE_REQUEST GRAVITY_NOTIFY = C.XCB_GRAVITY_NOTIFY RESIZE_REQUEST = C.XCB_RESIZE_REQUEST CIRCULATE_NOTIFY = C.XCB_CIRCULATE_NOTIFY CIRCULATE_REQUEST = C.XCB_CIRCULATE_REQUEST PROPERTY_NOTIFY = C.XCB_PROPERTY_NOTIFY SELECTION_CLEAR = C.XCB_SELECTION_CLEAR SELECTION_REQUEST = C.XCB_SELECTION_REQUEST COLORMAP_NOTIFY = C.XCB_COLORMAP_NOTIFY CLIENT_MESSAGE = C.XCB_CLIENT_MESSAGE SELECTION_NOTIFY = C.XCB_SELECTION_NOTIFY MAPPING_NOTIFY = C.XCB_MAPPING_NOTIFY COLORMAP_STATE_UNINSTALLED = C.XCB_COLORMAP_STATE_UNINSTALLED COLORMAP_STATE_INSTALLED = C.XCB_COLORMAP_STATE_INSTALLED PLACE_ON_TOP = C.XCB_PLACE_ON_TOP PLACE_ON_BOTTOM = C.XCB_PLACE_ON_BOTTOM VISIBILITY_UNOBSCURED = C.XCB_VISIBILITY_UNOBSCURED VISIBILITY_PARTIALLY_OBSCURED = C.XCB_VISIBILITY_PARTIALLY_OBSCURED VISIBILITY_FULLY_OBSCURED = C.XCB_VISIBILITY_FULLY_OBSCURED MOTION_NORMAL = C.XCB_MOTION_NORMAL MOTION_HINT = C.XCB_MOTION_HINT NOTIFY_DETAIL_ANCESTOR = C.XCB_NOTIFY_DETAIL_ANCESTOR NOTIFY_DETAIL_VIRTUAL = C.XCB_NOTIFY_DETAIL_VIRTUAL NOTIFY_DETAIL_INFERIOR = C.XCB_NOTIFY_DETAIL_INFERIOR NOTIFY_DETAIL_NONLINEAR = C.XCB_NOTIFY_DETAIL_NONLINEAR NOTIFY_DETAIL_NONLINEAR_VIRTUAL = C.XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL NOTIFY_DETAIL_POINTER = C.XCB_NOTIFY_DETAIL_POINTER NOTIFY_DETAIL_POINTER_ROOT = C.XCB_NOTIFY_DETAIL_POINTER_ROOT NOTIFY_DETAIL_NONE = C.XCB_NOTIFY_DETAIL_NONE NOTIFY_MODE_NORMAL = C.XCB_NOTIFY_MODE_NORMAL NOTIFY_MODE_GRAB = C.XCB_NOTIFY_MODE_GRAB NOTIFY_MODE_UNGRAB = C.XCB_NOTIFY_MODE_UNGRAB NOTIFY_MODE_WHILE_GRABBED = C.XCB_NOTIFY_MODE_WHILE_GRABBED MAPPING_MODIFIER = C.XCB_MAPPING_MODIFIER MAPPING_KEYBOARD = C.XCB_MAPPING_KEYBOARD MAPPING_POINTER = C.XCB_MAPPING_POINTER MOD_MASK_SHIFT = C.XCB_MOD_MASK_SHIFT MOD_MASK_LOCK = C.XCB_MOD_MASK_LOCK MOD_MASK_CONTROL = C.XCB_MOD_MASK_CONTROL MOD_MASK_1 = C.XCB_MOD_MASK_1 MOD_MASK_2 = C.XCB_MOD_MASK_2 MOD_MASK_3 = C.XCB_MOD_MASK_3 MOD_MASK_4 = C.XCB_MOD_MASK_4 MOD_MASK_5 = C.XCB_MOD_MASK_5 MOD_MASK_ANY = C.XCB_MOD_MASK_ANY )
View Source
const ( GLX_DOUBLEBUFFER = C.GLX_DOUBLEBUFFER GLX_STEREO = C.GLX_STEREO GLX_AUX_BUFFERS = C.GLX_AUX_BUFFERS GLX_RED_SIZE = C.GLX_RED_SIZE GLX_GREEN_SIZE = C.GLX_GREEN_SIZE GLX_BLUE_SIZE = C.GLX_BLUE_SIZE GLX_ALPHA_SIZE = C.GLX_ALPHA_SIZE GLX_DEPTH_SIZE = C.GLX_DEPTH_SIZE GLX_STENCIL_SIZE = C.GLX_STENCIL_SIZE GLX_ACCUM_RED_SIZE = C.GLX_ACCUM_RED_SIZE GLX_ACCUM_GREEN_SIZE = C.GLX_ACCUM_GREEN_SIZE GLX_ACCUM_BLUE_SIZE = C.GLX_ACCUM_BLUE_SIZE GLX_ACCUM_ALPHA_SIZE = C.GLX_ACCUM_ALPHA_SIZE GLX_SAMPLE_BUFFERS = C.GLX_SAMPLE_BUFFERS GLX_SAMPLES = C.GLX_SAMPLES GLX_TRANSPARENT_TYPE = C.GLX_TRANSPARENT_TYPE GLX_NONE = C.GLX_NONE GLX_TRANSPARENT_RGB = C.GLX_TRANSPARENT_RGB GLX_TRANSPARENT_INDEX = C.GLX_TRANSPARENT_INDEX GLX_TRANSPARENT_INDEX_VALUE = C.GLX_TRANSPARENT_INDEX_VALUE GLX_TRANSPARENT_RED_VALUE = C.GLX_TRANSPARENT_RED_VALUE GLX_TRANSPARENT_GREEN_VALUE = C.GLX_TRANSPARENT_GREEN_VALUE GLX_TRANSPARENT_BLUE_VALUE = C.GLX_TRANSPARENT_BLUE_VALUE GLX_TRANSPARENT_ALPHA_VALUE = C.GLX_TRANSPARENT_ALPHA_VALUE GLX_RENDER_TYPE = C.GLX_RENDER_TYPE GLX_RGBA_TYPE = C.GLX_RGBA_TYPE GLX_COLOR_INDEX_TYPE = C.GLX_COLOR_INDEX_TYPE GLX_X_VISUAL_TYPE = C.GLX_X_VISUAL_TYPE GLX_TRUE_COLOR = C.GLX_TRUE_COLOR GLX_CONFIG_CAVEAT = C.GLX_CONFIG_CAVEAT GLX_SLOW_CONFIG = C.GLX_SLOW_CONFIG GLX_NON_CONFORMANT_CONFIG = C.GLX_NON_CONFORMANT_CONFIG GLX_CONTEXT_MAJOR_VERSION_ARB = C.GLX_CONTEXT_MAJOR_VERSION_ARB GLX_CONTEXT_MINOR_VERSION_ARB = C.GLX_CONTEXT_MINOR_VERSION_ARB GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB = C.GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB GLX_CONTEXT_DEBUG_BIT_ARB = C.GLX_CONTEXT_DEBUG_BIT_ARB GLX_CONTEXT_FLAGS_ARB = C.GLX_CONTEXT_FLAGS_ARB GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB = C.GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB GLX_CONTEXT_CORE_PROFILE_BIT_ARB = C.GLX_CONTEXT_CORE_PROFILE_BIT_ARB GLX_CONTEXT_PROFILE_MASK_ARB = C.GLX_CONTEXT_PROFILE_MASK_ARB )
View Source
const ( SIZE_HINT_US_POSITION = C.XCB_SIZE_HINT_US_POSITION SIZE_HINT_US_SIZE = C.XCB_SIZE_HINT_US_SIZE SIZE_HINT_P_POSITION = C.XCB_SIZE_HINT_P_POSITION SIZE_HINT_P_SIZE = C.XCB_SIZE_HINT_P_SIZE SIZE_HINT_P_MIN_SIZE = C.XCB_SIZE_HINT_P_MIN_SIZE SIZE_HINT_P_MAX_SIZE = C.XCB_SIZE_HINT_P_MAX_SIZE SIZE_HINT_P_RESIZE_INC = C.XCB_SIZE_HINT_P_RESIZE_INC SIZE_HINT_P_ASPECT = C.XCB_SIZE_HINT_P_ASPECT SIZE_HINT_BASE_SIZE = C.XCB_SIZE_HINT_BASE_SIZE SIZE_HINT_P_WIN_GRAVITY = C.XCB_SIZE_HINT_P_WIN_GRAVITY WM_STATE_ICONIC = C.XCB_WM_STATE_ICONIC WM_STATE_NORMAL = C.XCB_WM_STATE_NORMAL )
View Source
const ( RANDR_MODE_FLAG_DOUBLE_SCAN = C.XCB_RANDR_MODE_FLAG_DOUBLE_SCAN RANDR_MODE_FLAG_INTERLACE = C.XCB_RANDR_MODE_FLAG_INTERLACE )
View Source
const ( TIME_CURRENT_TIME = C.XCB_TIME_CURRENT_TIME COPY_FROM_PARENT = C.XCB_COPY_FROM_PARENT WINDOW_CLASS_INPUT_OUTPUT = C.XCB_WINDOW_CLASS_INPUT_OUTPUT PROP_MODE_REPLACE = C.XCB_PROP_MODE_REPLACE ATOM_ANY = C.XCB_ATOM_ANY ATOM_CARDINAL = C.XCB_ATOM_CARDINAL ATOM_WM_NAME = C.XCB_ATOM_WM_NAME ATOM_STRING = C.XCB_ATOM_STRING ATOM_ATOM = C.XCB_ATOM_ATOM CONFIG_WINDOW_X = C.XCB_CONFIG_WINDOW_X CONFIG_WINDOW_Y = C.XCB_CONFIG_WINDOW_Y CONFIG_WINDOW_WIDTH = C.XCB_CONFIG_WINDOW_WIDTH CONFIG_WINDOW_HEIGHT = C.XCB_CONFIG_WINDOW_HEIGHT CONFIG_WINDOW_STACK_MODE = C.XCB_CONFIG_WINDOW_STACK_MODE STACK_MODE_ABOVE = C.XCB_STACK_MODE_ABOVE CW_EVENT_MASK = C.XCB_CW_EVENT_MASK CW_BACK_PIXEL = C.XCB_CW_BACK_PIXEL CW_BORDER_PIXEL = C.XCB_CW_BORDER_PIXEL CW_COLORMAP = C.XCB_CW_COLORMAP CW_CURSOR = C.XCB_CW_CURSOR GC_FOREGROUND = C.XCB_GC_FOREGROUND GC_BACKGROUND = C.XCB_GC_BACKGROUND IMAGE_FORMAT_Z_PIXMAP = C.XCB_IMAGE_FORMAT_Z_PIXMAP IMAGE_FORMAT_XY_PIXMAP = C.XCB_IMAGE_FORMAT_XY_PIXMAP IMAGE_ORDER_LSB_FIRST = C.XCB_IMAGE_ORDER_LSB_FIRST IMAGE_ORDER_MSB_FIRST = C.XCB_IMAGE_ORDER_MSB_FIRST )
View Source
const ( XKB_STATE_NOTIFY = C.XCB_XKB_STATE_NOTIFY XKB_MAP_NOTIFY = C.XCB_XKB_MAP_NOTIFY XKB_NEW_KEYBOARD_NOTIFY = C.XCB_XKB_NEW_KEYBOARD_NOTIFY XKB_EVENT_TYPE_NEW_KEYBOARD_NOTIFY = C.XCB_XKB_EVENT_TYPE_NEW_KEYBOARD_NOTIFY XKB_EVENT_TYPE_MAP_NOTIFY = C.XCB_XKB_EVENT_TYPE_MAP_NOTIFY XKB_EVENT_TYPE_STATE_NOTIFY = C.XCB_XKB_EVENT_TYPE_STATE_NOTIFY XKB_NKN_DETAIL_KEYCODES = C.XCB_XKB_NKN_DETAIL_KEYCODES XKB_MAP_PART_KEY_TYPES = C.XCB_XKB_MAP_PART_KEY_TYPES XKB_MAP_PART_KEY_SYMS = C.XCB_XKB_MAP_PART_KEY_SYMS XKB_MAP_PART_MODIFIER_MAP = C.XCB_XKB_MAP_PART_MODIFIER_MAP XKB_MAP_PART_EXPLICIT_COMPONENTS = C.XCB_XKB_MAP_PART_EXPLICIT_COMPONENTS XKB_MAP_PART_KEY_ACTIONS = C.XCB_XKB_MAP_PART_KEY_ACTIONS XKB_MAP_PART_VIRTUAL_MODS = C.XCB_XKB_MAP_PART_VIRTUAL_MODS XKB_MAP_PART_VIRTUAL_MOD_MAP = C.XCB_XKB_MAP_PART_VIRTUAL_MOD_MAP XKB_STATE_PART_MODIFIER_BASE = C.XCB_XKB_STATE_PART_MODIFIER_BASE XKB_STATE_PART_MODIFIER_LATCH = C.XCB_XKB_STATE_PART_MODIFIER_LATCH XKB_STATE_PART_MODIFIER_LOCK = C.XCB_XKB_STATE_PART_MODIFIER_LOCK XKB_STATE_PART_GROUP_BASE = C.XCB_XKB_STATE_PART_GROUP_BASE XKB_STATE_PART_GROUP_LATCH = C.XCB_XKB_STATE_PART_GROUP_LATCH XKB_STATE_PART_GROUP_LOCK = C.XCB_XKB_STATE_PART_GROUP_LOCK )
View Source
const ( NoSymbol = C.NoSymbol XK_minus = C.XK_minus XK_BackSpace = C.XK_BackSpace XK_Tab = C.XK_Tab XK_Linefeed = C.XK_Linefeed XK_Clear = C.XK_Clear XK_Return = C.XK_Return XK_Pause = C.XK_Pause XK_Scroll_Lock = C.XK_Scroll_Lock XK_Num_Lock = C.XK_Num_Lock XK_Shift_Lock = C.XK_Shift_Lock XK_Sys_Req = C.XK_Sys_Req XK_Escape = C.XK_Escape XK_Delete = C.XK_Delete XK_underscore = C.XK_underscore XK_asciitilde = C.XK_asciitilde XK_grave = C.XK_grave XK_plus = C.XK_plus XK_equal = C.XK_equal XK_colon = C.XK_colon XK_semicolon = C.XK_semicolon XK_quotedbl = C.XK_quotedbl XK_apostrophe = C.XK_apostrophe XK_comma = C.XK_comma XK_less = C.XK_less XK_period = C.XK_period XK_greater = C.XK_greater XK_slash = C.XK_slash XK_question = C.XK_question XK_backslash = C.XK_backslash XK_bar = C.XK_bar XK_space = C.XK_space XK_parenright = C.XK_parenright XK_exclam = C.XK_exclam XK_at = C.XK_at XK_numbersign = C.XK_numbersign XK_dollar = C.XK_dollar XK_percent = C.XK_percent XK_asciicircum = C.XK_asciicircum XK_ampersand = C.XK_ampersand XK_asterisk = C.XK_asterisk XK_parenleft = C.XK_parenleft XK_braceleft = C.XK_braceleft XK_bracketleft = C.XK_bracketleft XK_braceright = C.XK_braceright XK_bracketright = C.XK_bracketright XK_Print = C.XK_Print XK_Insert = C.XK_Insert XK_ISO_Left_Tab = C.XK_ISO_Left_Tab XK_3270_PrintScreen = C.XK_3270_PrintScreen XK_Select = C.XK_Select XK_Execute = C.XK_Execute XK_Help = C.XK_Help XK_3270_Play = C.XK_3270_Play XK_3270_ExSelect = C.XK_3270_ExSelect XK_3270_CursorSelect = C.XK_3270_CursorSelect XK_Kanji = C.XK_Kanji XK_3270_Attn = C.XK_3270_Attn XK_3270_EraseEOF = C.XK_3270_EraseEOF XK_0 = C.XK_0 XK_1 = C.XK_1 XK_2 = C.XK_2 XK_3 = C.XK_3 XK_4 = C.XK_4 XK_5 = C.XK_5 XK_6 = C.XK_6 XK_7 = C.XK_7 XK_8 = C.XK_8 XK_9 = C.XK_9 XK_a = C.XK_a XK_b = C.XK_b XK_c = C.XK_c XK_d = C.XK_d XK_e = C.XK_e XK_f = C.XK_f XK_g = C.XK_g XK_h = C.XK_h XK_i = C.XK_i XK_j = C.XK_j XK_k = C.XK_k XK_l = C.XK_l XK_m = C.XK_m XK_n = C.XK_n XK_o = C.XK_o XK_p = C.XK_p XK_q = C.XK_q XK_r = C.XK_r XK_s = C.XK_s XK_t = C.XK_t XK_u = C.XK_u XK_v = C.XK_v XK_w = C.XK_w XK_x = C.XK_x XK_y = C.XK_y XK_z = C.XK_z XK_A = C.XK_A XK_B = C.XK_B XK_C = C.XK_C XK_D = C.XK_D XK_E = C.XK_E XK_F = C.XK_F XK_G = C.XK_G XK_H = C.XK_H XK_I = C.XK_I XK_J = C.XK_J XK_K = C.XK_K XK_L = C.XK_L XK_M = C.XK_M XK_N = C.XK_N XK_O = C.XK_O XK_P = C.XK_P XK_Q = C.XK_Q XK_R = C.XK_R XK_S = C.XK_S XK_T = C.XK_T XK_U = C.XK_U XK_V = C.XK_V XK_W = C.XK_W XK_X = C.XK_X XK_Y = C.XK_Y XK_Z = C.XK_Z XK_F1 = C.XK_F1 XK_F2 = C.XK_F2 XK_F3 = C.XK_F3 XK_F4 = C.XK_F4 XK_F5 = C.XK_F5 XK_F6 = C.XK_F6 XK_F7 = C.XK_F7 XK_F8 = C.XK_F8 XK_F9 = C.XK_F9 XK_F10 = C.XK_F10 XK_F11 = C.XK_F11 XK_F12 = C.XK_F12 XK_F13 = C.XK_F13 XK_F14 = C.XK_F14 XK_F15 = C.XK_F15 XK_F16 = C.XK_F16 XK_F17 = C.XK_F17 XK_F18 = C.XK_F18 XK_F19 = C.XK_F19 XK_F20 = C.XK_F20 XK_F21 = C.XK_F21 XK_F22 = C.XK_F22 XK_F23 = C.XK_F23 XK_F24 = C.XK_F24 XK_Shift_L = C.XK_Shift_L XK_Shift_R = C.XK_Shift_R XK_Control_L = C.XK_Control_L XK_Control_R = C.XK_Control_R XK_Caps_Lock = C.XK_Caps_Lock XK_Alt_L = C.XK_Alt_L XK_Alt_R = C.XK_Alt_R XK_Super_L = C.XK_Super_L XK_Super_R = C.XK_Super_R XK_Home = C.XK_Home XK_Left = C.XK_Left XK_Up = C.XK_Up XK_Right = C.XK_Right XK_Down = C.XK_Down XK_Prior = C.XK_Prior XK_Page_Up = C.XK_Page_Up XK_Next = C.XK_Next XK_Page_Down = C.XK_Page_Down XK_End = C.XK_End XK_Begin = C.XK_Begin XK_KP_Space = C.XK_KP_Space XK_KP_Tab = C.XK_KP_Tab XK_KP_Enter = C.XK_KP_Enter XK_KP_F1 = C.XK_KP_F1 XK_KP_F2 = C.XK_KP_F2 XK_KP_F3 = C.XK_KP_F3 XK_KP_F4 = C.XK_KP_F4 XK_KP_Home = C.XK_KP_Home XK_KP_Left = C.XK_KP_Left XK_KP_Up = C.XK_KP_Up XK_KP_Right = C.XK_KP_Right XK_KP_Down = C.XK_KP_Down XK_KP_Prior = C.XK_KP_Prior XK_KP_Page_Up = C.XK_KP_Page_Up XK_KP_Next = C.XK_KP_Next XK_KP_Page_Down = C.XK_KP_Page_Down XK_KP_End = C.XK_KP_End XK_KP_Begin = C.XK_KP_Begin XK_KP_Insert = C.XK_KP_Insert XK_KP_Delete = C.XK_KP_Delete XK_KP_Equal = C.XK_KP_Equal XK_KP_Multiply = C.XK_KP_Multiply XK_KP_Separator = C.XK_KP_Separator XK_KP_Add = C.XK_KP_Add XK_KP_Subtract = C.XK_KP_Subtract XK_KP_Decimal = C.XK_KP_Decimal XK_KP_Divide = C.XK_KP_Divide XK_KP_0 = C.XK_KP_0 XK_KP_1 = C.XK_KP_1 XK_KP_2 = C.XK_KP_2 XK_KP_3 = C.XK_KP_3 XK_KP_4 = C.XK_KP_4 XK_KP_5 = C.XK_KP_5 XK_KP_6 = C.XK_KP_6 XK_KP_7 = C.XK_KP_7 XK_KP_8 = C.XK_KP_8 XK_KP_9 = C.XK_KP_9 Success = C.Success XkbUseCoreKbd = C.XkbUseCoreKbd BadRequest = C.BadRequest )
View Source
const (
COLORMAP_ALLOC_NONE = C.XCB_COLORMAP_ALLOC_NONE
)
View Source
const (
GL_VERSION = 0x1F02
)
View Source
const (
GRAB_MODE_ASYNC = C.XCB_GRAB_MODE_ASYNC
)
Variables ¶
View Source
var ( RandrSetConfigInvalidConfigTime = errors.New("RandrSetConfig(): Invalid config timestamp.") RandrSetConfigInvalidTime = errors.New("RandrSetConfig(): Invalid timestamp.") RandrSetConfigFailed = errors.New("RandrSetConfig(): Failed to set configuration.") )
View Source
var ( ConnError = errors.New("XCB_CONN_ERROR: socket, pipe, or other stream error occurred.") ConnClosedExtNotSupported = errors.New("XCB_CONN_CLOSED_EXT_NOTSUPPORTED: extension is not supported.") ConnClosedMemInsufficient = errors.New("XCB_CONN_CLOSED_MEM_INSUFFICIENT: memory not available.") ConnClosedReqLenExceed = errors.New("XCB_CONN_CLOSED_REQ_LEN_EXCEED: exceeded request length that server accepts.") ConnClosedParseErr = errors.New("XCB_CONN_CLOSED_PARSE_ERR: error during parsing display string.") ConnClosedInvalidScreen = errors.New("XCB_CONN_CLOSED_INVALID_SCREEN: the server does not have a screen matching the display.") )
View Source
var ( XlibOwnsEventQueue uint32 = C.XlibOwnsEventQueue XCBOwnsEventQueue uint32 = C.XCBOwnsEventQueue )
Functions ¶
func GLXGetProcAddressARB ¶
func GlGetString ¶
func XInitThreads ¶
func XInitThreads()
func XSetErrorHandler ¶
func XSetErrorHandler(c func(err string))
Types ¶
type AllocColorCookie ¶
type AllocColorCookie C.xcb_alloc_color_cookie_t
type AllocColorReply ¶
type AllocColorReply struct {
*EAllocColorReply
}
type Atom ¶
type Atom C.xcb_atom_t
type Button ¶
type Button C.xcb_button_t
type ButtonPressEvent ¶
type ButtonReleaseEvent ¶
type ButtonReleaseEvent ButtonPressEvent
type CirculateNotifyEvent ¶
type CirculateRequestEvent ¶
type CirculateRequestEvent CirculateNotifyEvent
type ClientMessageEvent ¶
type Colormap ¶
type Colormap C.xcb_colormap_t
type ColormapNotifyEvent ¶
type ConfigureNotifyEvent ¶
type ConfigureRequestEvent ¶
type Connection ¶
type Connection C.xcb_connection_t
func Connect ¶
func Connect(displayName string, screen *int) *Connection
func XGetXCBConnection ¶
func XGetXCBConnection(d *Display) *Connection
func (*Connection) AllocColor ¶
func (c *Connection) AllocColor(cmap Colormap, red, green, blue uint16) AllocColorCookie
func (*Connection) AllocColorReply ¶
func (c *Connection) AllocColorReply(cookie AllocColorCookie) (reply *AllocColorReply, err error)
func (*Connection) ChangeGCChecked ¶
func (c *Connection) ChangeGCChecked(cid GContext, valueMask uint32, values *uint32) VoidCookie
func (*Connection) ChangeProperty ¶
func (c *Connection) ChangeProperty(mode uint8, w Window, prop Atom, Type Atom, format uint8, dataLen uint32, data unsafe.Pointer) VoidCookie
func (*Connection) ChangePropertyChecked ¶
func (c *Connection) ChangePropertyChecked(mode uint8, w Window, prop Atom, Type Atom, format uint8, dataLen uint32, data unsafe.Pointer) VoidCookie
func (*Connection) ChangeWindowAttributes ¶
func (c *Connection) ChangeWindowAttributes(w Window, mask uint32, values *uint32) VoidCookie
func (*Connection) ConfigureWindow ¶
func (c *Connection) ConfigureWindow(w Window, flags uint16, values []uint32)
func (*Connection) CopyArea ¶
func (c *Connection) CopyArea(src, dst Drawable, gc GContext, srcX, srcY, dstX, dstY int16, width, height uint16) VoidCookie
func (*Connection) CreateColormap ¶
func (c *Connection) CreateColormap(alloc uint8, mid Colormap, window Window, visual VisualId) VoidCookie
func (*Connection) CreateColormapChecked ¶
func (c *Connection) CreateColormapChecked(allocAll bool, mid Colormap, w Window, v VisualId) VoidCookie
func (*Connection) CreateGCChecked ¶
func (c *Connection) CreateGCChecked(cid GContext, d Drawable, valueMask uint32, values *uint32) VoidCookie
func (*Connection) CreatePixmapChecked ¶
func (c *Connection) CreatePixmapChecked(depth uint8, pid Pixmap, d Drawable, width, height uint16) VoidCookie
func (*Connection) CreateWindowChecked ¶
func (c *Connection) CreateWindowChecked(depth uint8, wid, parent Window, x, y int16, width, height, border, class uint16, visual VisualId, valueMask uint32, valueList *uint32) VoidCookie
func (*Connection) DeleteProperty ¶
func (c *Connection) DeleteProperty(w Window, prop Atom)
func (*Connection) DestroyWindow ¶
func (c *Connection) DestroyWindow(w Window) VoidCookie
func (*Connection) Disconnect ¶
func (c *Connection) Disconnect()
func (*Connection) FindPixmapFormat ¶
func (c *Connection) FindPixmapFormat(depth, bpp uint8) (foundFormat *Format)
func (*Connection) Flush ¶
func (c *Connection) Flush()
func (*Connection) FreeCursor ¶
func (c *Connection) FreeCursor(cursor Cursor) VoidCookie
func (*Connection) FreeGC ¶
func (c *Connection) FreeGC(gc GContext) VoidCookie
func (*Connection) FreePixmap ¶
func (c *Connection) FreePixmap(pixmap Pixmap) VoidCookie
func (*Connection) GenerateId ¶
func (c *Connection) GenerateId() Window
func (*Connection) GetFileDescriptor ¶
func (c *Connection) GetFileDescriptor() int
func (*Connection) GetKeyboardMapping ¶
func (c *Connection) GetKeyboardMapping(firstKeycode Keycode, count uint8) GetKeyboardMappingCookie
func (*Connection) GetKeyboardMappingKeysyms ¶
func (c *Connection) GetKeyboardMappingKeysyms(r *GetKeyboardMappingReply) (keysyms *Keysyms)
func (*Connection) GetKeyboardMappingReply ¶
func (c *Connection) GetKeyboardMappingReply(cookie GetKeyboardMappingCookie) (reply *GetKeyboardMappingReply, err error)
func (*Connection) GetProperty ¶
func (*Connection) GetSetup ¶
func (c *Connection) GetSetup() *Setup
func (*Connection) GrabKeyboard ¶
func (c *Connection) GrabKeyboard(ownerEvents uint8, grabWindow Window, time Timestamp, pointerMode, keyboardMode uint8) GrabKeyboardCookie
func (*Connection) GrabKeyboardReply ¶
func (c *Connection) GrabKeyboardReply(cookie GrabKeyboardCookie) (reply *GrabKeyboardReply, err error)
func (*Connection) GrabPointer ¶
func (c *Connection) GrabPointer(ownerEvents uint8, grabEvents Window, eventMask uint16, pointerMode, keyboardMode uint8, confineTo Window, cursor Cursor, time Timestamp) GrabPointerCookie
func (*Connection) GrabPointerReply ¶
func (c *Connection) GrabPointerReply(cookie GrabPointerCookie) (reply *GrabPointerReply, err error)
func (*Connection) HasError ¶
func (c *Connection) HasError() error
func (*Connection) ImageNative ¶
func (c *Connection) ImageNative(i *Image, convert bool) *Image
func (*Connection) ImagePut ¶
func (c *Connection) ImagePut(draw Drawable, gc GContext, image *Image, x, y int16, leftPad uint8) VoidCookie
func (*Connection) InternAtom ¶
func (c *Connection) InternAtom(onlyIfExists bool, name string) Atom
func (*Connection) MapWindow ¶
func (c *Connection) MapWindow(w Window) VoidCookie
func (*Connection) PixmapFormatsIterator ¶
func (c *Connection) PixmapFormatsIterator(callback func(*Format) (again bool))
func (*Connection) PutImageChecked ¶
func (*Connection) QueryExtension ¶
func (c *Connection) QueryExtension(name string) bool
func (*Connection) RandrGetCrtcInfo ¶
func (c *Connection) RandrGetCrtcInfo(crtc RandrCrtc, configTimestamp Timestamp) RandrGetCrtcInfoCookie
func (*Connection) RandrGetCrtcInfoReply ¶
func (c *Connection) RandrGetCrtcInfoReply(cookie RandrGetCrtcInfoCookie) (reply *RandrGetCrtcInfoReply, err error)
func (*Connection) RandrGetCrtcInfoReplyOutputs ¶
func (c *Connection) RandrGetCrtcInfoReplyOutputs(r *RandrGetCrtcInfoReply) (outputs *RandrOutputs)
func (*Connection) RandrGetOutputInfo ¶
func (c *Connection) RandrGetOutputInfo(output RandrOutput, configTimestamp Timestamp) RandrGetOutputInfoCookie
func (*Connection) RandrGetOutputInfoModes ¶
func (c *Connection) RandrGetOutputInfoModes(r *RandrGetOutputInfoReply) (modes *RandrModes)
func (*Connection) RandrGetOutputInfoName ¶
func (c *Connection) RandrGetOutputInfoName(r *RandrGetOutputInfoReply) (name string)
func (*Connection) RandrGetOutputInfoReply ¶
func (c *Connection) RandrGetOutputInfoReply(cookie RandrGetOutputInfoCookie) (reply *RandrGetOutputInfoReply, err error)
func (*Connection) RandrGetScreenResources ¶
func (c *Connection) RandrGetScreenResources(window Window) RandrGetScreenResourcesCookie
func (*Connection) RandrGetScreenResourcesCrtcs ¶
func (c *Connection) RandrGetScreenResourcesCrtcs(r *RandrGetScreenResourcesReply) (crtcs *RandrCrtcs)
func (*Connection) RandrGetScreenResourcesCurrent ¶
func (c *Connection) RandrGetScreenResourcesCurrent(window Window) RandrGetScreenResourcesCurrentCookie
func (*Connection) RandrGetScreenResourcesCurrentCrtcs ¶
func (c *Connection) RandrGetScreenResourcesCurrentCrtcs(r *RandrGetScreenResourcesCurrentReply) (crtcs *RandrCrtcs)
func (*Connection) RandrGetScreenResourcesCurrentModes ¶
func (c *Connection) RandrGetScreenResourcesCurrentModes(r *RandrGetScreenResourcesCurrentReply) (modes *RandrModeInfos)
func (*Connection) RandrGetScreenResourcesCurrentReply ¶
func (c *Connection) RandrGetScreenResourcesCurrentReply(cookie RandrGetScreenResourcesCurrentCookie) (reply *RandrGetScreenResourcesCurrentReply, err error)
func (*Connection) RandrGetScreenResourcesModes ¶
func (c *Connection) RandrGetScreenResourcesModes(r *RandrGetScreenResourcesReply) (modes *RandrModeInfos)
func (*Connection) RandrGetScreenResourcesReply ¶
func (c *Connection) RandrGetScreenResourcesReply(cookie RandrGetScreenResourcesCookie) (reply *RandrGetScreenResourcesReply, err error)
func (*Connection) RandrQueryVersion ¶
func (c *Connection) RandrQueryVersion(majorVersion, minorVersion uint32) RandrQueryVersionCookie
func (*Connection) RandrQueryVersionReply ¶
func (c *Connection) RandrQueryVersionReply(cookie RandrQueryVersionCookie) (reply *RandrQueryVersionReply, err error)
func (*Connection) RandrSetCrtcConfig ¶
func (c *Connection) RandrSetCrtcConfig(crtc RandrCrtc, timestamp Timestamp, configTimestamp Timestamp, x, y int16, mode RandrMode, rotation uint16, outputs []RandrOutput) RandrSetCrtcConfigCookie
func (*Connection) RandrSetCrtcConfigReply ¶
func (c *Connection) RandrSetCrtcConfigReply(cookie RandrSetCrtcConfigCookie) (reply *RandrSetCrtcConfigReply, err error)
func (*Connection) RenderCreateCursorChecked ¶
func (c *Connection) RenderCreateCursorChecked(cid Cursor, source RenderPicture, x, y uint16) VoidCookie
func (*Connection) RenderCreatePictureChecked ¶
func (c *Connection) RenderCreatePictureChecked(pid RenderPicture, d Drawable, format RenderPictformat, mask uint32, list *uint32) VoidCookie
func (*Connection) RenderFreePicture ¶
func (c *Connection) RenderFreePicture(pid RenderPicture) VoidCookie
func (*Connection) RenderQueryPictFormats ¶
func (c *Connection) RenderQueryPictFormats() RenderQueryPictFormatsCookie
func (*Connection) RenderQueryPictFormatsReply ¶
func (c *Connection) RenderQueryPictFormatsReply(cookie RenderQueryPictFormatsCookie) (reply *RenderQueryPictFormatsReply, err error)
func (*Connection) RequestCheck ¶
func (c *Connection) RequestCheck(cookie VoidCookie) (err error)
func (*Connection) RootsIterator ¶
func (c *Connection) RootsIterator(callback func(s *Screen) (again bool))
func (*Connection) ScreenAllowedDepthsIterator ¶
func (c *Connection) ScreenAllowedDepthsIterator(s *Screen, callback func(d *Depth) (again bool))
func (*Connection) ScreenOfDisplay ¶
func (c *Connection) ScreenOfDisplay(screen int) *Screen
func (*Connection) SendClientMessage ¶
func (c *Connection) SendClientMessage(w, dest Window, atom Atom, dataLen uint32, data *uint32)
func (*Connection) SetWmSizeHints ¶
func (c *Connection) SetWmSizeHints(w Window, hints *SizeHints)
func (*Connection) SetupRootsLength ¶
func (c *Connection) SetupRootsLength(r *Setup) int
func (*Connection) TranslateCoordinates ¶
func (c *Connection) TranslateCoordinates(srcWindow, dstWindow Window, srcX, srcY int16) TranslateCoordinatesCookie
func (*Connection) TranslateCoordinatesReply ¶
func (c *Connection) TranslateCoordinatesReply(cookie TranslateCoordinatesCookie) (reply *TranslateCoordinatesReply, err error)
func (*Connection) UngrabKeyboard ¶
func (c *Connection) UngrabKeyboard(time Timestamp) VoidCookie
func (*Connection) UngrabPointer ¶
func (c *Connection) UngrabPointer(time Timestamp) VoidCookie
func (*Connection) UnmapWindow ¶
func (c *Connection) UnmapWindow(w Window) VoidCookie
func (*Connection) WaitForEvent ¶
func (c *Connection) WaitForEvent() (ev *GenericEvent)
func (*Connection) WarpPointer ¶
func (c *Connection) WarpPointer(src, dst Window, srcX, srcY int16, srcWidth, srcHeight uint16, dstX, dstY int16) VoidCookie
func (*Connection) XkbSelectEventsAuxChecked ¶
func (c *Connection) XkbSelectEventsAuxChecked(deviceSpec XkbDeviceSpec, affectWhich, clear, selectAll, affectMap, pmap uint16, details *XkbSelectEventDetails) VoidCookie
type CreateNotifyEvent ¶
type Cursor ¶
type Cursor C.xcb_cursor_t
type Depth ¶
func (*Depth) Iterate ¶
func (d *Depth) Iterate(callback func(vis *VisualType) (again bool))
type DestroyNotifyEvent ¶
type Display ¶
func XOpenDisplay ¶
func (*Display) GLXCreateContextAttribsARB ¶
func (d *Display) GLXCreateContextAttribsARB(config GLXFBConfig, share GLXContext, direct bool, attribs *Int) GLXContext
func (*Display) GLXCreateNewContext ¶
func (d *Display) GLXCreateNewContext(config GLXFBConfig, renderType int, shareList GLXContext, direct bool) GLXContext
func (*Display) GLXCreateWindow ¶
func (d *Display) GLXCreateWindow(config GLXFBConfig, win Window) GLXWindow
func (*Display) GLXDestroyContext ¶
func (d *Display) GLXDestroyContext(ctx GLXContext)
func (*Display) GLXDestroyWindow ¶
func (*Display) GLXGetFBConfigAttrib ¶
func (d *Display) GLXGetFBConfigAttrib(config GLXFBConfig, attrib int) (value Int, ret int)
func (*Display) GLXGetFBConfigs ¶
func (d *Display) GLXGetFBConfigs(screen int) (configs []GLXFBConfig)
func (*Display) GLXGetVisualFromFBConfig ¶
func (d *Display) GLXGetVisualFromFBConfig(config GLXFBConfig) *XVisualInfo
func (*Display) GLXMakeContextCurrent ¶
func (d *Display) GLXMakeContextCurrent(draw, read GLXDrawable, ctx GLXContext) int
func (*Display) GLXQueryExtensionsString ¶
func (*Display) GLXQueryVersion ¶
func (*Display) GLXSwapBuffers ¶
func (d *Display) GLXSwapBuffers(drawable GLXDrawable)
func (*Display) GLXSwapIntervalEXT ¶
func (d *Display) GLXSwapIntervalEXT(drawable GLXDrawable, interval int)
func (*Display) GLXSwapIntervalMESA ¶
func (*Display) GLXSwapIntervalSGI ¶
func (*Display) XDefaultScreen ¶
func (*Display) XSetEventQueueOwner ¶
func (*Display) XkbGetIndicatorState ¶
func (*Display) XkbSetDetectableAutoRepeat ¶
type Drawable ¶
type Drawable C.xcb_drawable_t
type EAllocColorReply ¶
type EGenericEvent ¶
type EGetPropertyReply ¶
type EGrabKeyboardReply ¶
type EGrabPointerReply ¶
type ERandrGetCrtcInfoReply ¶
type ERandrGetCrtcInfoReply struct { ResponseType C.uint8_t Status C.uint8_t Sequence C.uint16_t Length C.uint32_t Timestamp Timestamp X C.int16_t Y C.int16_t Width C.uint16_t Height C.uint16_t Mode RandrMode Rotation C.uint16_t Rotations C.uint16_t NumOutputs C.uint16_t NumPossibleOutputs C.uint16_t }
type ERandrGetOutputInfoReply ¶
type ERandrGetOutputInfoReply struct { ResponseType C.uint8_t Status C.uint8_t Sequence C.uint16_t Length C.uint32_t Timestamp Timestamp Crtc RandrCrtc MMWidth C.uint32_t MMHeight C.uint32_t Connection C.uint8_t SubpixelOrder C.uint8_t NumCrtcs C.uint16_t NumModes C.uint16_t NumPreferred C.uint16_t NumClones C.uint16_t NameLen C.uint16_t }
type ERandrQueryVersionReply ¶
type EnterNotifyEvent ¶
type ExposeEvent ¶
type FocusInEvent ¶
type FocusOutEvent ¶
type FocusOutEvent FocusInEvent
type GContext ¶
type GContext C.xcb_gcontext_t
type GLXContext ¶
type GLXContext C.GLXContext
func GLXGetCurrentContext ¶
func GLXGetCurrentContext() GLXContext
type GLXDrawable ¶
type GLXDrawable C.GLXDrawable
type GLXFBConfig ¶
type GLXFBConfig uintptr
type GenericEvent ¶
type GenericEvent struct { *EGenericEvent Free func() }
type GetKeyboardMappingCookie ¶
type GetKeyboardMappingCookie C.xcb_get_keyboard_mapping_cookie_t
type GetKeyboardMappingReply ¶
type GetKeyboardMappingReply struct {
*EGetKeyboardMappingReply
}
type GetPropertyReply ¶
type GetPropertyReply struct {
*EGetPropertyReply
}
type GrabKeyboardCookie ¶
type GrabKeyboardCookie C.xcb_grab_keyboard_cookie_t
type GrabKeyboardReply ¶
type GrabKeyboardReply struct {
*EGrabKeyboardReply
}
type GrabPointerCookie ¶
type GrabPointerCookie C.xcb_grab_pointer_cookie_t
type GrabPointerReply ¶
type GrabPointerReply struct {
*EGrabPointerReply
}
type GraphicsExposureEvent ¶
type GravityNotifyEvent ¶
type Image ¶
type Image C.xcb_image_t
type InternAtomCookie ¶
type InternAtomCookie C.xcb_intern_atom_cookie_t
type KeyPressEvent ¶
type KeyReleaseEvent ¶
type KeyReleaseEvent KeyPressEvent
type Keycode ¶
type Keycode C.xcb_keycode_t
type KeymapNotifyEvent ¶
type Keysym ¶
type Keysym C.xcb_keysym_t
type LeaveNotifyEvent ¶
type LeaveNotifyEvent EnterNotifyEvent
type MapNotifyEvent ¶
type MapRequestEvent ¶
type MappingNotifyEvent ¶
type MotifWMHints ¶
type MotionNotifyEvent ¶
type NoExposureEvent ¶
type PictStandard ¶
type PictStandard C.xcb_pict_standard_t
const ( PICT_STANDARD_ARGB_32 PictStandard = C.XCB_PICT_STANDARD_ARGB_32 PICT_STANDARD_RGB_24 = C.XCB_PICT_STANDARD_RGB_24 )
type Pixmap ¶
type Pixmap C.xcb_pixmap_t
type PropertyNotifyEvent ¶
type RandrCrtc ¶
type RandrCrtc C.xcb_randr_crtc_t
type RandrCrtcs ¶
type RandrCrtcs struct {
Slice []RandrCrtc
}
type RandrGetCrtcInfoCookie ¶
type RandrGetCrtcInfoCookie C.xcb_randr_get_crtc_info_cookie_t
type RandrGetCrtcInfoReply ¶
type RandrGetCrtcInfoReply struct {
*ERandrGetCrtcInfoReply
}
type RandrGetOutputInfoCookie ¶
type RandrGetOutputInfoCookie C.xcb_randr_get_output_info_cookie_t
type RandrGetOutputInfoReply ¶
type RandrGetOutputInfoReply struct {
*ERandrGetOutputInfoReply
}
type RandrGetScreenResourcesCookie ¶
type RandrGetScreenResourcesCookie C.xcb_randr_get_screen_resources_cookie_t
type RandrGetScreenResourcesCurrentCookie ¶
type RandrGetScreenResourcesCurrentCookie C.xcb_randr_get_screen_resources_current_cookie_t
type RandrGetScreenResourcesCurrentReply ¶
type RandrGetScreenResourcesCurrentReply struct {
*ERandrGetScreenResourcesCurrentReply
}
type RandrGetScreenResourcesReply ¶
type RandrGetScreenResourcesReply struct {
*ERandrGetScreenResourcesReply
}
type RandrMode ¶
type RandrMode C.xcb_randr_mode_t
type RandrModeInfo ¶
type RandrModeInfos ¶
type RandrModeInfos struct {
Slice []RandrModeInfo
}
type RandrModes ¶
type RandrModes struct {
Slice []RandrMode
}
type RandrOutput ¶
type RandrOutput C.xcb_randr_output_t
type RandrOutputs ¶
type RandrOutputs struct {
Slice []RandrOutput
}
type RandrQueryVersionCookie ¶
type RandrQueryVersionCookie C.xcb_randr_query_version_cookie_t
type RandrQueryVersionReply ¶
type RandrQueryVersionReply struct {
*ERandrQueryVersionReply
}
type RandrSetCrtcConfigCookie ¶
type RandrSetCrtcConfigCookie C.xcb_randr_set_crtc_config_cookie_t
type RandrSetCrtcConfigReply ¶
type RandrSetCrtcConfigReply struct {
*ERandrSetCrtcConfigReply
}
type RenderPictformat ¶
type RenderPictformat C.xcb_render_pictformat_t
type RenderPictforminfo ¶
type RenderPictforminfo struct { Id RenderPictformat Type C.uint8_t Depth C.uint8_t Pad0 [2]C.uint8_t Direct C.xcb_render_directformat_t Colormap Colormap }
func RenderUtilFindStandardFormat ¶
func RenderUtilFindStandardFormat(formats *RenderQueryPictFormatsReply, format PictStandard) *RenderPictforminfo
type RenderPicture ¶
type RenderPicture C.xcb_render_picture_t
type RenderQueryPictFormatsCookie ¶
type RenderQueryPictFormatsCookie C.xcb_render_query_pict_formats_cookie_t
type RenderQueryPictFormatsReply ¶
type RenderQueryPictFormatsReply struct {
*ERenderQueryPictFormatsReply
}
type ReparentNotifyEvent ¶
type RequestError ¶
type ResizeRequestEvent ¶
type Screen ¶
type Screen struct { Root Window DefaultColormap Colormap WhitePixel C.uint32_t BlackPixel C.uint32_t CurrentInputMasks C.uint32_t WidthInPixels C.uint16_t HeightInPixels C.uint16_t WidthInMillimeters C.uint16_t HeightInMillimeters C.uint16_t MinInstalledMaps C.uint16_t MaxInstalledMaps C.uint16_t RootVisual VisualId BackingStores C.uint8_t SaveUnders C.uint8_t RootDepth C.uint8_t AllowedDepthsLen C.uint8_t }
type SelectionClearEvent ¶
type SelectionNotifyEvent ¶
type SelectionRequestEvent ¶
type Setup ¶
type Setup struct { Status C.uint8_t Pad0 C.uint8_t ProtocolMajorVersion C.uint16_t ProtocolMinorVersion C.uint16_t Length C.uint16_t ReleaseNumber C.uint32_t ResourceIdBase C.uint32_t ResourceIdMask C.uint32_t MotionBufferSize C.uint32_t VenderLen C.uint16_t MaximumRequestLength C.uint16_t RootsLen C.uint8_t PixmapFormatsLen C.uint8_t ImageByteOrder C.uint8_t BitmapFormatBitOrder C.uint8_t BitmapFormatScanlineUnit C.uint8_t BitmapFormatScanlinePad C.uint8_t MinKeycode Keycode MaxKeycode Keycode Pad1 [4]C.uint8_t }
type Timestamp ¶
type Timestamp C.xcb_timestamp_t
type TranslateCoordinatesCookie ¶
type TranslateCoordinatesCookie C.xcb_translate_coordinates_cookie_t
type TranslateCoordinatesReply ¶
type TranslateCoordinatesReply struct {
*ETranslateCoordinatesReply
}
type UnmapNotifyEvent ¶
type VisibilityNotifyEvent ¶
type VisualId ¶
type VisualId C.xcb_visualid_t
type VisualType ¶
type VoidCookie ¶
type VoidCookie C.xcb_void_cookie_t
type Window ¶
type Window C.xcb_window_t
type XVisualInfo ¶
type XVisualInfo C.XVisualInfo
func (*XVisualInfo) BlueMask ¶
func (v *XVisualInfo) BlueMask() int
func (*XVisualInfo) Depth ¶
func (v *XVisualInfo) Depth() int
func (*XVisualInfo) GreenMask ¶
func (v *XVisualInfo) GreenMask() int
func (*XVisualInfo) RedMask ¶
func (v *XVisualInfo) RedMask() int
func (*XVisualInfo) Visualid ¶
func (v *XVisualInfo) Visualid() int
type XkbAnyEvent ¶
type XkbDeviceSpec ¶
type XkbDeviceSpec C.xcb_xkb_device_spec_t
type XkbSelectEventDetails ¶
type XkbSelectEventDetails struct { AffectNewKeyboard uint16 NewKeyboardDetails uint16 AffectState uint16 StateDetails uint16 AffectCtrls uint32 CtrlDetails uint32 AffectIndicatorState uint32 IndicatorStateDetails uint32 AffectIndicatorMap uint32 IndicatorMapDetails uint32 AffectNames uint16 NamesDetails uint16 AffectCompat uint8 CompatDetails uint8 AffectBell uint8 BellDetails uint8 AffectMsgDetails uint8 MsgDetails uint8 AffectAccessX uint16 AccessXDetails uint16 AffectExtDev uint16 ExtdevDetails uint16 }
type XkbStateNotifyEvent ¶
type XkbStateNotifyEvent C.xcb_xkb_state_notify_event_t
func (*XkbStateNotifyEvent) BaseGroup ¶
func (e *XkbStateNotifyEvent) BaseGroup() int16
func (*XkbStateNotifyEvent) BaseMods ¶
func (e *XkbStateNotifyEvent) BaseMods() uint8
func (*XkbStateNotifyEvent) Keycode ¶
func (e *XkbStateNotifyEvent) Keycode() Keycode
func (*XkbStateNotifyEvent) LatchedGroup ¶
func (e *XkbStateNotifyEvent) LatchedGroup() int16
func (*XkbStateNotifyEvent) LatchedMods ¶
func (e *XkbStateNotifyEvent) LatchedMods() uint8
func (*XkbStateNotifyEvent) LockedGroup ¶
func (e *XkbStateNotifyEvent) LockedGroup() uint8
func (*XkbStateNotifyEvent) LockedMods ¶
func (e *XkbStateNotifyEvent) LockedMods() uint8
Click to show internal directories.
Click to hide internal directories.