com.sun.jna.examples.unix
Interface X11
public
interface
X11
extends Library
Definition (incomplete) of the X library.
Method Summary |
X11.Screen | DefaultScreenOfDisplay(X11.Display display) |
int | XAllocNamedColor(X11.Display display, int colormap, String color_name, Pointer screen_def_return, Pointer exact_def_return) |
X11.XSizeHints | XAllocSizeHints() |
int | XAutoRepeatOff(X11.Display display) Turns off auto-repeat for the keyboard on the specified display. |
int | XAutoRepeatOn(X11.Display display) Turns on auto-repeat for the keyboard on the specified display. |
int | XBell(X11.Display display, int percent) Rings the bell on the keyboard on the specified display, if possible. |
int | XChangeKeyboardControl(X11.Display display, NativeLong value_mask, X11.XKeyboardControlRef values) Changes the keyboard control state. |
int | XChangeKeyboardMapping(X11.Display display, int first_keycode, int keysyms_per_keycode, X11.KeySym[] keysyms, int num_codes) Defines the symbols for the specified number of KeyCodes starting with first_keycode. |
int | XChangeProperty(X11.Display display, X11.Window w, X11.Atom property, X11.Atom type, int format, int mode, Pointer data, int nelements) |
int | XChangeWindowAttributes(X11.Display display, X11.Window window, NativeLong valuemask, X11.XSetWindowAttributes attributes) |
boolean | XCheckMaskEvent(X11.Display display, NativeLong event_mask, X11.XEvent event_return) |
boolean | XCheckTypedEvent(X11.Display display, int event_type, X11.XEvent event_return) |
boolean | XCheckTypedWindowEvent(X11.Display display, X11.Window w, int event_type, X11.XEvent event_return) |
boolean | XCheckWindowEvent(X11.Display display, X11.Window w, NativeLong event_mask, X11.XEvent event_return) |
int | XClearArea(X11.Display display, X11.Window window, int x, int y, int w, int h, int exposures) |
int | XClearWindow(X11.Display display, X11.Window window) |
int | XCloseDisplay(X11.Display display) |
int | XCopyArea(X11.Display dpy, X11.Drawable src, X11.Drawable dst, X11.GC gc, int src_x, int src_y, int w, int h, int dst_x, int dst_y) |
X11.Pixmap | XCreateBitmapFromData(X11.Display display, X11.Window window, Pointer data, int width, int height) |
X11.Colormap | XCreateColormap(X11.Display display, X11.Window w, X11.Visual visual, int alloc) |
X11.GC | XCreateGC(X11.Display display, X11.Drawable drawable, NativeLong mask, X11.XGCValues values) |
X11.XImage | XCreateImage(X11.Display dpy, X11.Visual visual, int depth, int format, int offset, Pointer data, int width, int height, int bitmap_pad, int bytes_per_line) |
X11.Pixmap | XCreatePixmap(X11.Display display, X11.Drawable drawable, int width, int height, int depth) |
X11.Window | XCreateSimpleWindow(X11.Display display, X11.Window parent, int x, int y, int width, int height, int border_width, int border, int background) |
X11.Colormap | XDefaultColormap(X11.Display display, int screen) |
X11.Window | XDefaultRootWindow(X11.Display display) |
int | XDefaultScreen(X11.Display display) |
X11.Visual | XDefaultVisual(X11.Display display, int screen) |
X11.XModifierKeymapRef | XDeleteModifiermapEntry(X11.XModifierKeymapRef modmap, byte keycode_entry, int modifier) Deletes the specified KeyCode from the set that controls the specified modifier and returns a pointer to the resulting XModifierKeymap structure. |
int | XDeleteProperty(X11.Display display, X11.Window w, X11.Atom property) |
int | XDestroyImage(X11.XImage image) |
int | XDestroyWindow(X11.Display display, X11.Window window) |
int | XDisplayHeight(X11.Display display, int screen) |
int | XDisplayKeycodes(X11.Display display, IntByReference min_keycodes_return, IntByReference max_keycodes_return) Returns the min-keycodes and max-keycodes supported by the specified display. |
int | XDisplayWidth(X11.Display display, int screen) |
int | XDrawPoint(X11.Display display, X11.Drawable drawable, X11.GC gc, int x, int y) |
int | XDrawPoints(X11.Display display, X11.Drawable drawable, X11.GC gc, X11.XPoint[] points, int npoints, int mode) |
int | XEventsQueued(X11.Display display, int mode) If mode is QueuedAlready, XEventsQueued returns the number of events already in the event queue (and never performs a system call). |
int | XFillArc(X11.Display display, X11.Drawable drawable, X11.GC gc, int x, int y, int width, int height, int angle1, int angle2) |
int | XFillPolygon(X11.Display dpy, X11.Drawable drawable, X11.GC gc, X11.XPoint[] points, int npoints, int shape, int mode) |
int | XFillRectangle(X11.Display display, X11.Drawable drawable, X11.GC gc, int x, int y, int width, int height) |
int | XFillRectangles(X11.Display display, X11.Drawable drawable, X11.GC gc, X11.XRectangle[] rectangles, int nrectangles) |
int | XFlush(X11.Display display) Flushes the output buffer. |
int | XFree(Pointer data) |
int | XFreeGC(X11.Display display, X11.GC gc) |
int | XFreeModifiermap(X11.XModifierKeymapRef modmap) Frees the specified XModifierKeymap structure. |
int | XFreePixmap(X11.Display display, X11.Pixmap pixmap) |
String | XGetAtomName(X11.Display display, X11.Atom atom) |
int | XGetErrorText(X11.Display display, int code, byte[] buffer, int len) |
int | XGetGeometry(X11.Display display, X11.Drawable d, X11.WindowByReference w, IntByReference x, IntByReference y, IntByReference width, IntByReference heigth, IntByReference border_width, IntByReference depth) |
int | XGetKeyboardControl(X11.Display display, X11.XKeyboardStateRef values_return) Returns the current control values for the keyboard to the XKeyboardState structure. |
X11.KeySym | XGetKeyboardMapping(X11.Display display, byte first_keycode, int keycode_count, IntByReference keysyms_per_keycode_return) Returns the symbols for the specified number of KeyCodes starting with first_keycode. |
X11.XModifierKeymapRef | XGetModifierMapping(X11.Display display) The XGetModifierMapping function returns a pointer to a newly created XModifierKeymap structure that contains the keys being used as modifiers. |
X11.XVisualInfo | XGetVisualInfo(X11.Display display, NativeLong vinfo_mask, X11.XVisualInfo vinfo_template, IntByReference nitems_return) |
int | XGetWindowAttributes(X11.Display display, X11.Window window, X11.XWindowAttributes attributes) |
int | XGetWindowProperty(X11.Display display, X11.Window w, X11.Atom property, NativeLong long_offset, NativeLong long_length, boolean delete, X11.Atom reg_type, X11.AtomByReference actual_type_return, IntByReference actual_format_return, NativeLongByReference nitems_return, NativeLongByReference bytes_after_return, PointerByReference prop_return) |
X11.XWMHints | XGetWMHints(X11.Display display, X11.Window window) |
int | XGetWMName(X11.Display display, X11.Window window, X11.XTextProperty text_property_return) |
X11.XModifierKeymapRef | XInsertModifiermapEntry(X11.XModifierKeymapRef modmap, byte keycode_entry, int modifier) Adds the specified KeyCode to the set that controls the specified modifier and returns the resulting XModifierKeymap structure (expanded as needed). |
X11.Atom | XInternAtom(X11.Display display, String name, boolean only_if_exists) |
X11.KeySym | XKeycodeToKeysym(X11.Display display, byte keycode, int index) |
byte | XKeysymToKeycode(X11.Display display, X11.KeySym keysym) |
String | XKeysymToString(X11.KeySym keysym)
KeySyms, Keycodes, Keymaps
|
int | XMapRaised(X11.Display display, X11.Window window) |
int | XMapSubwindows(X11.Display display, X11.Window window) |
int | XMapWindow(X11.Display display, X11.Window window) |
int | XMaskEvent(X11.Display display, NativeLong event_mask, X11.XEvent event_return) |
X11.XModifierKeymapRef | XNewModifiermap(int max_keys_per_mod) Returns a pointer to XModifierKeymap structure for later use. |
int | XNextEvent(X11.Display display, X11.XEvent event_return) |
X11.Display | XOpenDisplay(String name) |
int | XPeekEvent(X11.Display display, X11.XEvent event_return) |
int | XPending(X11.Display display) Returns the number of events that have been received from the X server but have not been removed from the event queue. |
int | XPutImage(X11.Display dpy, X11.Drawable d, X11.GC gc, X11.XImage image, int src_x, int src_y, int dest_x, int dest_y, int width, int height) |
int | XQueryKeymap(X11.Display display, byte[] keys_return) Returns a bit vector for the logical state of the keyboard, where each bit set to 1 indicates that the corresponding key is currently pressed down. |
boolean | XQueryPointer(X11.Display display, X11.Window window, X11.WindowByReference root_return, X11.WindowByReference child_return, IntByReference root_x_return, IntByReference root_y_return, IntByReference win_x_return, IntByReference win_y_return, IntByReference mask_return) |
int | XQueryTree(X11.Display display, X11.Window window, X11.WindowByReference root, X11.WindowByReference parent, PointerByReference children, IntByReference childCount) |
X11.Window | XRootWindow(X11.Display display, int screen) |
int | XSelectInput(X11.Display display, X11.Window window, NativeLong eventMask) |
int | XSendEvent(X11.Display display, X11.Window w, int propagate, NativeLong event_mask, X11.XEvent event_send) |
int | XSetBackground(X11.Display display, X11.GC gc, NativeLong color) |
int | XSetFillRule(X11.Display display, X11.GC gc, int fill_rule) |
int | XSetForeground(X11.Display display, X11.GC gc, NativeLong color) |
int | XSetModifierMapping(X11.Display display, X11.XModifierKeymapRef modmap) Specifies the KeyCodes of the keys (if any) that are to be used as modifiers. |
void | XSetWMProperties(X11.Display display, X11.Window window, String window_name, String icon_name, String[] argv, int argc, X11.XSizeHints normal_hints, Pointer wm_hints, Pointer class_hints) |
X11.KeySym | XStringToKeysym(String string) |
int | XSync(X11.Display display, boolean discard) Flushes the output buffer and then waits until all requests have been received and processed by the X server. |
boolean | XTranslateCoordinates(X11.Display display, X11.Window src_w, X11.Window dest_w, int src_x, int src_y, IntByReference dest_x_return, IntByReference dest_y_return, X11.WindowByReference child_return) |
int | XUnmapWindow(X11.Display display, X11.Window window) |
int | XWindowEvent(X11.Display display, X11.Window w, NativeLong event_mask, X11.XEvent event_return) |
public int Above
public int AllocAll
public int AllocNone
COLOR MAP STUFF
public int AllowExposures
public int AllTemporary
public int AlreadyGrabbed
public int Always
public int AnyButton
public int AnyKey
public int AnyModifier
public int AnyPropertyType
public int ArcChord
public int ArcPieSlice
public int AsyncBoth
public int AsyncKeyboard
public int AsyncPointer
public int AutoRepeatModeDefault
public int AutoRepeatModeOff
KEYBOARD/POINTER STUFF
public int AutoRepeatModeOn
public int BadAccess
public int BadAlloc
public int BadAtom
public int BadColor
public int BadCursor
public int BadDrawable
public int BadFont
public int BadGC
public int BadIDChoice
public int BadImplementation
public int BadLength
public int BadMatch
public int BadName
public int BadPixmap
public int BadRequest
public int BadValue
public int BadWindow
public int Below
public int BottomIf
public int Button1
public int Button1Mask
public int Button1MotionMask
public int Button2
public int Button2Mask
public int Button2MotionMask
public int Button3
public int Button3Mask
public int Button3MotionMask
public int Button4
public int Button4Mask
public int Button4MotionMask
public int Button5
public int Button5Mask
public int Button5MotionMask
public int ButtonMotionMask
public int ButtonPress
public int ButtonPressMask
public int ButtonRelease
public int ButtonReleaseMask
public int CapButt
public int CapNotLast
public int CapProjecting
public int CapRound
public int CenterGravity
public int CirculateNotify
public int CirculateRequest
public int ClientMessage
public int ClipByChildren
public int ColormapChangeMask
public int ColormapInstalled
public int ColormapNotify
public int ColormapUninstalled
public int Complex
public int ConfigureNotify
public int ConfigureRequest
public int ControlMapIndex
public int ControlMask
public int Convex
public int CoordModeOrigin
public int CoordModePrevious
public int CopyFromParent
public int CreateNotify
public int CurrentTime
public int CursorShape
CURSOR STUFF
public int CWBackingPixel
public int CWBackingPlanes
public int CWBackingStore
public int CWBackPixel
public int CWBackPixmap
public int CWBitGravity
public int CWBorderPixel
public int CWBorderPixmap
public int CWBorderWidth
public int CWColormap
public int CWCursor
public int CWDontPropagate
public int CWEventMask
public int CWHeight
public int CWOverrideRedirect
public int CWSaveUnder
public int CWSibling
public int CWStackMode
public int CWWidth
public int CWWinGravity
public int CWX
public int CWY
public int DefaultBlanking
public int DefaultExposures
public int DestroyAll
public int DestroyNotify
public int DirectColor
public int DisableAccess
public int DisableScreenInterval
public int DisableScreenSaver
public int DoBlue
public int DoGreen
public int DontAllowExposures
public int DontPreferBlanking
SCREEN SAVER STUFF
public int DoRed
public int EastGravity
public int EnableAccess
public int EnterNotify
public int EnterWindowMask
public int EvenOddRule
public int Expose
public int ExposureMask
public int FamilyChaos
public int FamilyDECnet
public int FamilyInternet
public int FamilyInternet6
public int FamilyServerInterpreted
public int FillOpaqueStippled
public int FillSolid
public int FillStippled
public int FillTiled
public int FirstExtensionError
public int FocusChangeMask
public int FocusIn
public int FocusOut
public int FontChange
public int FontLeftToRight
FONTS
public int FontRightToLeft
public int ForgetGravity
public int GCArcMode
public int GCBackground
public int GCCapStyle
public int GCClipMask
public int GCClipXOrigin
public int GCClipYOrigin
public int GCDashList
public int GCDashOffset
public int GCFillRule
public int GCFillStyle
public int GCFont
public int GCForeground
public int GCFunction
public int GCGraphicsExposures
public int GCJoinStyle
public int GCLastBit
public int GCLineStyle
public int GCLineWidth
public int GCPlaneMask
public int GCStipple
public int GCSubwindowMode
public int GCTile
public int GCTileStipXOrigin
public int GCTileStipYOrigin
public int GrabFrozen
public int GrabInvalidTime
public int GrabModeAsync
public int GrabModeSync
public int GrabNotViewable
public int GrabSuccess
public int GraphicsExpose
public int GravityNotify
public int GrayScale
public int GXand
public int GXandInverted
public int GXandReverse
public int GXclear
GRAPHICS DEFINITIONS
public int GXcopy
public int GXcopyInverted
public int GXequiv
public int GXinvert
public int GXnand
public int GXnoop
public int GXnor
public int GXor
public int GXorInverted
public int GXorReverse
public int GXset
public int GXxor
public int HostDelete
public int HostInsert
HOSTS AND CONNECTIONS
public int IncludeInferiors
public int InputFocus
public int InputOnly
public int InputOutput
WINDOW DEFINITIONS
public int IsUnmapped
public int IsUnviewable
public int IsViewable
public int JoinBevel
public int JoinMiter
public int JoinRound
public int KBAutoRepeatMode
public int KBBellDuration
public int KBBellPercent
public int KBBellPitch
public int KBKey
public int KBKeyClickPercent
public int KBLed
public int KBLedMode
public int KeymapNotify
public int KeymapStateMask
public int KeyPress
public int KeyPressMask
public int KeyRelease
public int KeyReleaseMask
public int LASTEvent
public int LastExtensionError
public int LeaveNotify
public int LeaveWindowMask
public int LedModeOff
public int LedModeOn
public int LineDoubleDash
public int LineOnOffDash
public int LineSolid
public int LockMapIndex
public int LockMask
public int LowerHighest
public int LSBFirst
public int MapNotify
public int MappingBusy
public int MappingFailed
public int MappingKeyboard
public int MappingModifier
public int MappingNotify
public int MappingPointer
public int MappingSuccess
public int MapRequest
public int Mod1MapIndex
public int Mod1Mask
public int Mod2MapIndex
public int Mod2Mask
public int Mod3MapIndex
public int Mod3Mask
public int Mod4MapIndex
public int Mod4Mask
public int Mod5MapIndex
public int Mod5Mask
public int MotionNotify
public int MSBFirst
public int NoEventMask
EVENT DEFINITIONS
public int NoExpose
public int Nonconvex
public int None
RESERVED RESOURCE AND CONSTANT DEFINITIONS
public int NorthEastGravity
public int NorthGravity
public int NorthWestGravity
public int NoSymbol
public int NotifyAncestor
public int NotifyDetailNone
public int NotifyGrab
public int NotifyHint
public int NotifyInferior
public int NotifyNonlinear
public int NotifyNonlinearVirtual
public int NotifyNormal
public int NotifyPointer
public int NotifyPointerRoot
public int NotifyUngrab
public int NotifyVirtual
public int NotifyWhileGrabbed
public int NotUseful
public int Opposite
public int OwnerGrabButtonMask
public int ParentRelative
public int PlaceOnBottom
public int PlaceOnTop
public int PointerMotionHintMask
public int PointerMotionMask
public int PointerRoot
public int PointerWindow
public int PreferBlanking
public int PropertyChangeMask
public int PropertyDelete
public int PropertyNewValue
public int PropertyNotify
public int PropModeAppend
public int PropModePrepend
public int PropModeReplace
public int PseudoColor
public int RaiseLowest
public int ReparentNotify
public int ReplayKeyboard
public int ReplayPointer
public int ResizeRedirectMask
public int ResizeRequest
public int RetainPermanent
public int RetainTemporary
public int RevertToNone
public int RevertToParent
public int RevertToPointerRoot
public int ScreenSaverActive
public int ScreenSaverReset
public int SelectionClear
public int SelectionNotify
public int SelectionRequest
public int SetModeDelete
public int SetModeInsert
public int ShiftMapIndex
public int ShiftMask
public int SouthEastGravity
public int SouthGravity
public int SouthWestGravity
public int StaticColor
public int StaticGravity
public int StaticGray
public int StippleShape
public int StructureNotifyMask
public int SubstructureNotifyMask
public int SubstructureRedirectMask
public int Success
ERROR CODES
public int SyncBoth
public int SyncKeyboard
public int SyncPointer
public int TileShape
public int TopIf
public int TrueColor
public int UnmapGravity
public int UnmapNotify
public int Unsorted
public int VisibilityChangeMask
public int VisibilityFullyObscured
public int VisibilityNotify
public int VisibilityPartiallyObscured
public int VisibilityUnobscured
public int VisualAllMask
public int VisualBitsPerRGBMask
public int VisualBlueMaskMask
public int VisualClassMask
public int VisualColormapSizeMask
public int VisualDepthMask
public int VisualGreenMaskMask
public int VisualIDMask
public int VisualNoMask
public int VisualRedMaskMask
public int VisualScreenMask
public int WestGravity
public int WhenMapped
public int WindingRule
public
X11.
Atom XA_RESOURCE_MANAGER
public
X11.
Atom XA_STRIKEOUT_ASCENT
public
X11.
Atom XA_STRIKEOUT_DESCENT
public
X11.
Atom XA_UNDERLINE_POSITION
public
X11.
Atom XA_UNDERLINE_THICKNESS
public
X11.
Atom XA_WM_CLIENT_MACHINE
public
X11.
Atom XA_WM_TRANSIENT_FOR
public int XK_0
public int XK_9
public int XK_A
public int XK_Alt_L
public int XK_Alt_R
public int XK_a
public int XK_CapsLock
public int XK_Control_L
public int XK_Control_R
public int XK_Meta_L
public int XK_Meta_R
public int XK_ShiftLock
public int XK_Shift_L
public int XK_Shift_R
public int XK_z
public int XK_Z
public int XYBitmap
IMAGING
public int XYPixmap
public int YSorted
public int YXBanded
public int YXSorted
public int ZPixmap
public int XAllocNamedColor(
X11.
Display display, int colormap, String color_name,
Pointer screen_def_return,
Pointer exact_def_return)
Turns off auto-repeat for the keyboard on the specified display.
Turns on auto-repeat for the keyboard on the specified display.
public int XBell(
X11.
Display display, int percent)
Rings the bell on the keyboard on the specified display, if possible. The specified volume is relative to the base volume for the keyboard. If the value for the percent argument is not in the range -100 to 100 inclusive, a BadValue error results. The volume at which the bell rings when the percent argument is nonnegative is: base - [(base * percent) / 100] + percent. The volume at which the bell rings when the percent argument is negative is: base + [(base * percent) / 100]. To change the base volume of the bell, use XChangeKeyboardControl.
Changes the keyboard control state.
Parameters: display display value_mask disjunction of KBKeyClickPercent, KBBellPercent, KBBellPitch, KBBellDuration, KBLed, KBLedMode, KBKey, KBAutoRepeatMode
public int XChangeKeyboardMapping(
X11.
Display display, int first_keycode, int keysyms_per_keycode,
X11.
KeySym[] keysyms, int num_codes)
Defines the symbols for the specified number of KeyCodes starting with first_keycode. The symbols for KeyCodes outside this range remain unchanged. The number of elements in keysyms must be: num_codes * keysyms_per_keycode. The specified first_keycode must be greater than or equal to min_keycode returned by XDisplayKeycodes, or a BadValue error results. In addition, the following expression must be less than or equal to max_keycode as returned by XDisplayKeycodes, or a BadValue error results: first_keycode + num_codes - 1.
public int XClearArea(
X11.
Display display,
X11.
Window window, int x, int y, int w, int h, int exposures)
public
X11.
Window XCreateSimpleWindow(
X11.
Display display,
X11.
Window parent, int x, int y, int width, int height, int border_width, int border, int background)
Deletes the specified KeyCode from the set that controls the specified modifier and returns a pointer to the resulting XModifierKeymap structure.
public int XDisplayHeight(
X11.
Display display, int screen)
Returns the min-keycodes and max-keycodes supported by the specified display. The minimum number of KeyCodes returned is never less than 8, and the maximum number of KeyCodes returned is never greater than 255. Not all KeyCodes in this range are required to have corresponding keys.
public int XDisplayWidth(
X11.
Display display, int screen)
public int XEventsQueued(
X11.
Display display, int mode)
If mode is QueuedAlready, XEventsQueued returns the number of events already in the event queue (and never performs a system call). If mode is QueuedAfterFlush, XEventsQueued returns the number of events already in the queue if the number is nonzero. If there are no events in the queue, XEventsQueued flushes the output buffer, attempts to read more events out of the application's connection, and returns the number read. If mode is QueuedAfterReading, XEventsQueued returns the number of events already in the queue if the number is nonzero. If there are no events in the queue, XEventsQueued attempts to read more events out of the application's connection without flushing the output buffer and returns the number read.
XEventsQueued always returns immediately without I/O if there are events already in the queue. XEventsQueued with mode QueuedAfterFlush is identical in behavior to XPending. XEventsQueued with mode QueuedAlready is identical to the XQLength function.
public int XFillArc(
X11.
Display display,
X11.
Drawable drawable,
X11.
GC gc, int x, int y, int width, int height, int angle1, int angle2)
Flushes the output buffer. Most client applications need not use this function because the output buffer is automatically flushed as needed by calls to XPending, XNextEvent, and XWindowEvent. Events generated by the server may be enqueued into the library's event queue.
Frees the specified XModifierKeymap structure.
public int XGetErrorText(
X11.
Display display, int code, byte[] buffer, int len)
Returns the current control values for the keyboard to the XKeyboardState structure.
Returns the symbols for the specified number of KeyCodes starting with first_keycode. The value specified in first_keycode must be greater than or equal to min_keycode as returned by XDisplayKeycodes, or a BadValue error results. In addition, the following expression must be less than or equal to max_keycode as returned by XDisplayKeycodes: first_keycode + keycode_count - 1. If this is not the case, a BadValue error results. The number of elements in the KeySyms list is: keycode_count * keysyms_per_keycode_return. KeySym number N, counting from zero, for KeyCode K has the following index in the list, counting from zero: (K - first_code) * keysyms_per_code_return + N. The X server arbitrarily chooses the keysyms_per_keycode_return value to be large enough to report all requested symbols. A special KeySym value of NoSymbol is used to fill in unused elements for individual KeyCodes. To free the storage returned by XGetKeyboardMapping, use XFree.
The XGetModifierMapping function returns a pointer to a newly created XModifierKeymap structure that contains the keys being used as modifiers. The structure should be freed after use by calling XFreeModifiermap. If only zero values appear in the set for any modifier, that modifier is disabled.
public int XGetWindowProperty(
X11.
Display display,
X11.
Window w,
X11.
Atom property,
NativeLong long_offset,
NativeLong long_length, boolean delete,
X11.
Atom reg_type,
X11.
AtomByReference actual_type_return,
IntByReference actual_format_return,
NativeLongByReference nitems_return,
NativeLongByReference bytes_after_return,
PointerByReference prop_return)
Adds the specified KeyCode to the set that controls the specified modifier and returns the resulting XModifierKeymap structure (expanded as needed).
public
X11.
Atom XInternAtom(
X11.
Display display, String name, boolean only_if_exists)
public String XKeysymToString(
X11.
KeySym keysym)
KeySyms, Keycodes, Keymaps
Returns a pointer to XModifierKeymap structure for later use.
Returns the number of events that have been received from the X server but have not been removed from the event queue. XPending is identical to XEventsQueued with the mode QueuedAfterFlush specified.
public int XQueryKeymap(
X11.
Display display, byte[] keys_return)
Returns a bit vector for the logical state of the keyboard, where each bit set to 1 indicates that the corresponding key is currently pressed down. The vector is represented as 32 bytes. Byte N (from 0) contains the bits for keys 8N to 8N + 7 with the least significant bit in the byte representing key 8N. Note that the logical state of a device (as seen by client applications) may lag the physical state if device event processing is frozen.
Specifies the KeyCodes of the keys (if any) that are to be used as modifiers. If it succeeds, the X server generates a MappingNotify event, and XSetModifierMapping returns MappingSuccess. X permits at most 8 modifier keys. If more than 8 are specified in the XModifierKeymap structure, a BadLength error results.
public
X11.
KeySym XStringToKeysym(String string)
public int XSync(
X11.
Display display, boolean discard)
Flushes the output buffer and then waits until all requests have been received and processed by the X server. Any errors generated must be handled by the error handler. For each protocol error received by Xlib, XSync calls the client application's error handling routine (see section 11.8.2). Any events generated by the server are enqueued into the library's event queue.
Finally, if you passed False, XSync does not discard the events in the queue. If you passed True, XSync discards all events in the queue, including those events that were on the queue before XSync was called. Client applications seldom need to call XSync.
Copyright © 2007-2009 Timothy Wall. All Rights Reserved.