Fork me on GitHub

LibX11 Class

Summary

Part of the libX11 library on unix platforms.
Namespace
SharpInputSystem
Base Types
  • object
graph BT Type-->Base0["object"] Type["LibX11"] class Type type-node

Syntax

public sealed class LibX11

Fields

Name Constant Value Summary
AutoRepeatModeDefault 2
static
AutoRepeatModeOff 0
static
AutoRepeatModeOn 1
static
BadAccess 10
static
BadWindow 3
static
ButtonPressMask 4
static
ButtonReleaseMask 8
static
CurrentTime 0
static
EnterWindowMask 16
static
GrabModeAsync 1
static
KeyPressMask 1
static
KeyReleaseMask 2
static
LeaveWindowMask 32
static
LibraryName libX11
Name of the library we grab the input functions from
static
LockMask 2
static
Mod1Mask 8
static
Mod4Mask 64
static
MouseMovedPressedReleased 76
static
PointerMotionHintMask 128
static
PointerMotionMask 64
static
ShiftMask 1
static

Methods

Name Value Summary
ToKeys(uint) KeyCode
Convert's X11KeyCode to standard System.Windows.Forms.Keys;
static
XAllocColor(IntPtr, IntPtr, LibX11.XColor) int
static
XAllocNamedColor(IntPtr, IntPtr, string, LibX11.XColor, LibX11.XColor) int
static
XAutoRepeatOff(IntPtr) int
static
XAutoRepeatOn(IntPtr) int
static
XCheckMaskEvent(IntPtr, int, LibX11.XEvent) bool
static
XCloseDisplay(IntPtr) IntPtr
static
XCreateBitmapFromData(IntPtr, IntPtr, byte[], int, int) IntPtr
static
XCreatePixmapCursor(IntPtr, IntPtr, IntPtr, LibX11.XColor, LibX11.XColor, int, int) IntPtr
static
XCreatePixmapFromBitmapData(IntPtr, IntPtr, byte[], int, int, long, int, int) IntPtr
static
XDefaultColormap(IntPtr, int) IntPtr
static
XDefaultRootWindow(IntPtr) IntPtr
Get's the root window for the default screen.
static
XDefaultScreen(IntPtr) int
static
XDefineCursor(IntPtr, IntPtr, IntPtr) int
static
XGetKeyboardControl(IntPtr, LibX11.XKeyboardState) int
static
XGrabKeyboard(IntPtr, IntPtr, bool, int, int, long) int
The XGrabKeyboard() function actively grabs control of the keyboard and generates FocusIn and FocusOut events. Further key events are reported only to the grabbing client. XGrabKeyboard() overrides any active keyboard grab by this client. If owner_events is False, all generated key events are reported with respect to grab_window. If owner_events is True and if a generated key event would normally be reported to this client, it is reported normally; otherwise, the event is reported with respect to the grab_window. Both KeyPress and KeyRelease events are always reported, independent of any event selection made by the client.
static
XGrabPointer(IntPtr, IntPtr, bool, int, int, int, IntPtr, IntPtr, long) int
static
XkbSetDetectableAutoRepeat(IntPtr, bool, bool) bool
Sets DetectableAutorepeat
static
XKeycodeToKeysym(IntPtr, int, int) uint
static
XKeysymToString(LibX11.KeySym) string
static
XLookupKeysym(LibX11.XKeyEvent, int) IntPtr
static
XLookupString(LibX11.XKeyEvent, StringBuilder, int, int, IntPtr) int
static
XNextEvent(IntPtr, LibX11.XEvent) void
static
XOpenDisplay(IntPtr) IntPtr
To open a connection to the X server that controls a display
static
XPending(IntPtr) int
static
XQueryPointer(IntPtr, IntPtr, IntPtr, IntPtr, int, int, int, int, uint) bool
static
XSelectInput(IntPtr, IntPtr, long) int
static
XTranslateCoordinates(IntPtr, IntPtr, IntPtr, int, int, int, int, IntPtr) bool
static
XUndefineCursor(IntPtr, IntPtr) int
static
XUngrabKeyboard(IntPtr, long) void
The XUngrabKeyboard() function releases the keyboard and any queued events if this client has it actively grabbed from either XGrabKeyboard() or XGrabKey(). XUngrabKeyboard() does not release the keyboard and any queued events if the specified time is earlier than the last-keyboard-grab time or is later than the current X server time. It also generates FocusIn and FocusOut events. The X server automatically performs an UngrabKeyboard request if the event window for an active keyboard grab becomes not viewable.
static
XUngrabPointer(IntPtr, long) int
static
XWarpPointer(IntPtr, IntPtr, IntPtr, int, int, int, int, int, int) void
static