public class X11
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
X11.Functions
Contains the function pointers loaded from the X11
SharedLibrary. |
| Modifier and Type | Field and Description |
|---|---|
static int |
Above |
static int |
AllocAll
|
static int |
AllocNone
|
static int |
AllowExposures
SCREEN SAVER STUFF
|
static int |
AllTemporary
RESERVED RESOURCE AND CONSTANT DEFINITIONS
|
static int |
AlreadyGrabbed
GrabPointer, GrabKeyboard reply status
|
static int |
AnyButton
RESERVED RESOURCE AND CONSTANT DEFINITIONS
|
static int |
AnyKey
RESERVED RESOURCE AND CONSTANT DEFINITIONS
|
static int |
AnyModifier
button masks.
|
static int |
AnyPropertyType
RESERVED RESOURCE AND CONSTANT DEFINITIONS
|
static int |
ArcChord
Arc modes for PolyFillArc
|
static int |
ArcPieSlice
Arc modes for PolyFillArc
|
static int |
AsyncBoth
AllowEvents modes
|
static int |
AsyncKeyboard
AllowEvents modes
|
static int |
AsyncPointer
AllowEvents modes
|
static int |
BadAccess
ERROR CODES
|
static int |
BadAlloc
ERROR CODES
|
static int |
BadAtom
ERROR CODES
|
static int |
BadColor
ERROR CODES
|
static int |
BadCursor
ERROR CODES
|
static int |
BadDrawable
ERROR CODES
|
static int |
BadFont
ERROR CODES
|
static int |
BadGC
ERROR CODES
|
static int |
BadIDChoice
ERROR CODES
|
static int |
BadImplementation
ERROR CODES
|
static int |
BadLength
ERROR CODES
|
static int |
BadMatch
ERROR CODES
|
static int |
BadName
ERROR CODES
|
static int |
BadPixmap
ERROR CODES
|
static int |
BadRequest
ERROR CODES
|
static int |
BadValue
ERROR CODES
|
static int |
BadWindow
ERROR CODES
|
static int |
Below |
static int |
BottomIf |
static int |
Button1
button names.
|
static int |
Button1Mask
button masks.
|
static int |
Button1MotionMask
Input Event Masks.
|
static int |
Button2
button names.
|
static int |
Button2Mask
button masks.
|
static int |
Button2MotionMask
Input Event Masks.
|
static int |
Button3
button names.
|
static int |
Button3Mask
button masks.
|
static int |
Button3MotionMask
Input Event Masks.
|
static int |
Button4
button names.
|
static int |
Button4Mask
button masks.
|
static int |
Button4MotionMask
Input Event Masks.
|
static int |
Button5
button names.
|
static int |
Button5Mask
button masks.
|
static int |
Button5MotionMask
Input Event Masks.
|
static int |
ButtonMotionMask
Input Event Masks.
|
static int |
ButtonPress
Event names.
|
static int |
ButtonPressMask
Input Event Masks.
|
static int |
ButtonRelease
Event names.
|
static int |
ButtonReleaseMask
Input Event Masks.
|
static int |
CapButt
capStyle
|
static int |
CapNotLast
capStyle
|
static int |
CapProjecting
capStyle
|
static int |
CapRound
capStyle
|
static int |
CirculateNotify
Event names.
|
static int |
CirculateRequest
Event names.
|
static int |
ClientMessage
Event names.
|
static int |
ClipByChildren
subwindow mode
|
static int |
ColormapChangeMask
Input Event Masks.
|
static int |
ColormapInstalled
Color Map notification
|
static int |
ColormapNotify
Event names.
|
static int |
ColormapUninstalled
Color Map notification
|
static int |
Complex
Polygon shapes
|
static int |
ConfigureNotify
Event names.
|
static int |
ConfigureRequest
Event names.
|
static int |
ControlMapIndex
modifier names.
|
static int |
ControlMask
Key masks.
|
static int |
Convex
Polygon shapes
|
static int |
CoordModeOrigin
CoordinateMode for drawing routines
|
static int |
CoordModePrevious
CoordinateMode for drawing routines
|
static int |
CopyFromParent
RESERVED RESOURCE AND CONSTANT DEFINITIONS
|
static int |
CreateNotify
Event names.
|
static int |
CurrentTime
RESERVED RESOURCE AND CONSTANT DEFINITIONS
|
static int |
CWBackingPixel
Window attributes for CreateWindow and ChangeWindowAttributes
|
static int |
CWBackingPlanes
Window attributes for CreateWindow and ChangeWindowAttributes
|
static int |
CWBackingStore
Window attributes for CreateWindow and ChangeWindowAttributes
|
static int |
CWBackPixel
Window attributes for CreateWindow and ChangeWindowAttributes
|
static int |
CWBackPixmap
Window attributes for CreateWindow and ChangeWindowAttributes
|
static int |
CWBitGravity
Window attributes for CreateWindow and ChangeWindowAttributes
|
static int |
CWBorderPixel
Window attributes for CreateWindow and ChangeWindowAttributes
|
static int |
CWBorderPixmap
Window attributes for CreateWindow and ChangeWindowAttributes
|
static int |
CWColormap
Window attributes for CreateWindow and ChangeWindowAttributes
|
static int |
CWCursor
Window attributes for CreateWindow and ChangeWindowAttributes
|
static int |
CWDontPropagate
Window attributes for CreateWindow and ChangeWindowAttributes
|
static int |
CWEventMask
Window attributes for CreateWindow and ChangeWindowAttributes
|
static int |
CWOverrideRedirect
Window attributes for CreateWindow and ChangeWindowAttributes
|
static int |
CWSaveUnder
Window attributes for CreateWindow and ChangeWindowAttributes
|
static int |
CWWinGravity
Window attributes for CreateWindow and ChangeWindowAttributes
|
static int |
DefaultBlanking
SCREEN SAVER STUFF
|
static int |
DefaultExposures
SCREEN SAVER STUFF
|
static int |
DestroyNotify
Event names.
|
static int |
DisableScreenInterval
SCREEN SAVER STUFF
|
static int |
DisableScreenSaver
SCREEN SAVER STUFF
|
static int |
DontAllowExposures
SCREEN SAVER STUFF
|
static int |
DontPreferBlanking
SCREEN SAVER STUFF
|
static int |
EnterNotify
Event names.
|
static int |
EnterWindowMask
Input Event Masks.
|
static int |
EvenOddRule
fillRule
|
static int |
Expose
Event names.
|
static int |
ExposureMask
Input Event Masks.
|
static int |
False
Boolean values
|
static int |
FillOpaqueStippled
fillStyle
|
static int |
FillSolid
fillStyle
|
static int |
FillStippled
fillStyle
|
static int |
FillTiled
fillStyle
|
static int |
FirstExtensionError
ERROR CODES
|
static int |
FocusChangeMask
Input Event Masks.
|
static int |
FocusIn
Event names.
|
static int |
FocusOut
Event names.
|
static int |
GCArcMode
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges
|
static int |
GCBackground
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges
|
static int |
GCCapStyle
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges
|
static int |
GCClipMask
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges
|
static int |
GCClipXOrigin
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges
|
static int |
GCClipYOrigin
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges
|
static int |
GCDashList
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges
|
static int |
GCDashOffset
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges
|
static int |
GCFillRule
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges
|
static int |
GCFillStyle
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges
|
static int |
GCFont
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges
|
static int |
GCForeground
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges
|
static int |
GCFunction
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges
|
static int |
GCGraphicsExposures
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges
|
static int |
GCJoinStyle
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges
|
static int |
GCLastBit
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges
|
static int |
GCLineStyle
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges
|
static int |
GCLineWidth
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges
|
static int |
GCPlaneMask
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges
|
static int |
GCStipple
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges
|
static int |
GCSubwindowMode
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges
|
static int |
GCTile
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges
|
static int |
GCTileStipXOrigin
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges
|
static int |
GCTileStipYOrigin
GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges
|
static int |
GenericEvent
Event names.
|
static int |
GrabFrozen
GrabPointer, GrabKeyboard reply status
|
static int |
GrabInvalidTime
GrabPointer, GrabKeyboard reply status
|
static int |
GrabModeAsync
GrabPointer, GrabButton, GrabKeyboard, GrabKey Modes
|
static int |
GrabModeSync
GrabPointer, GrabButton, GrabKeyboard, GrabKey Modes
|
static int |
GrabNotViewable
GrabPointer, GrabKeyboard reply status
|
static int |
GrabSuccess
GrabPointer, GrabKeyboard reply status
|
static int |
GraphicsExpose
Event names.
|
static int |
GravityNotify
Event names.
|
static int |
GXand
graphics functions, as in GC.alu
|
static int |
GXandInverted
graphics functions, as in GC.alu
|
static int |
GXandReverse
graphics functions, as in GC.alu
|
static int |
GXclear
graphics functions, as in GC.alu
|
static int |
GXcopy
graphics functions, as in GC.alu
|
static int |
GXcopyInverted
graphics functions, as in GC.alu
|
static int |
GXequiv
graphics functions, as in GC.alu
|
static int |
GXinvert
graphics functions, as in GC.alu
|
static int |
GXnand
graphics functions, as in GC.alu
|
static int |
GXnoop
graphics functions, as in GC.alu
|
static int |
GXnor
graphics functions, as in GC.alu
|
static int |
GXor
graphics functions, as in GC.alu
|
static int |
GXorInverted
graphics functions, as in GC.alu
|
static int |
GXorReverse
graphics functions, as in GC.alu
|
static int |
GXset
graphics functions, as in GC.alu
|
static int |
GXxor
graphics functions, as in GC.alu
|
static int |
IncludeInferiors
subwindow mode
|
static int |
InputFocus
RESERVED RESOURCE AND CONSTANT DEFINITIONS
|
static int |
InputOnly
|
static int |
InputOutput
|
static int |
JoinBevel
joinStyle
|
static int |
JoinMiter
joinStyle
|
static int |
JoinRound
joinStyle
|
static int |
KeymapNotify
Event names.
|
static int |
KeymapStateMask
Input Event Masks.
|
static int |
KeyPress
Event names.
|
static int |
KeyPressMask
Input Event Masks.
|
static int |
KeyRelease
Event names.
|
static int |
KeyReleaseMask
Input Event Masks.
|
static int |
LASTEvent
Event names.
|
static int |
LastExtensionError
ERROR CODES
|
static int |
LeaveNotify
Event names.
|
static int |
LeaveWindowMask
Input Event Masks.
|
static int |
LineDoubleDash
LineStyle
|
static int |
LineOnOffDash
LineStyle
|
static int |
LineSolid
LineStyle
|
static int |
LockMapIndex
modifier names.
|
static int |
LockMask
Key masks.
|
static int |
MapNotify
Event names.
|
static int |
MappingKeyboard |
static int |
MappingModifier |
static int |
MappingNotify
Event names.
|
static int |
MappingPointer |
static int |
MapRequest
Event names.
|
static int |
Mod1MapIndex
modifier names.
|
static int |
Mod1Mask
Key masks.
|
static int |
Mod2MapIndex
modifier names.
|
static int |
Mod2Mask
Key masks.
|
static int |
Mod3MapIndex
modifier names.
|
static int |
Mod3Mask
Key masks.
|
static int |
Mod4MapIndex
modifier names.
|
static int |
Mod4Mask
Key masks.
|
static int |
Mod5MapIndex
modifier names.
|
static int |
Mod5Mask
Key masks.
|
static int |
MotionNotify
Event names.
|
static int |
NoEventMask
Input Event Masks.
|
static int |
NoExpose
Event names.
|
static int |
Nonconvex
Polygon shapes
|
static int |
None
RESERVED RESOURCE AND CONSTANT DEFINITIONS
|
static int |
NoSymbol
RESERVED RESOURCE AND CONSTANT DEFINITIONS
|
static int |
NotifyAncestor
Notify detail
|
static int |
NotifyDetailNone
Notify detail
|
static int |
NotifyGrab
Notify modes
|
static int |
NotifyHint
Notify modes
|
static int |
NotifyInferior
Notify detail
|
static int |
NotifyNonlinear
Notify detail
|
static int |
NotifyNonlinearVirtual
Notify detail
|
static int |
NotifyNormal
Notify modes
|
static int |
NotifyPointer
Notify detail
|
static int |
NotifyPointerRoot
Notify detail
|
static int |
NotifyUngrab
Notify modes
|
static int |
NotifyVirtual
Notify detail
|
static int |
NotifyWhileGrabbed
Notify modes
|
static int |
Opposite |
static int |
OwnerGrabButtonMask
Input Event Masks.
|
static int |
ParentRelative
RESERVED RESOURCE AND CONSTANT DEFINITIONS
|
static int |
PlaceOnBottom
Circulation request
|
static int |
PlaceOnTop
Circulation request
|
static int |
PointerMotionHintMask
Input Event Masks.
|
static int |
PointerMotionMask
Input Event Masks.
|
static int |
PointerRoot
RESERVED RESOURCE AND CONSTANT DEFINITIONS
|
static int |
PointerWindow
RESERVED RESOURCE AND CONSTANT DEFINITIONS
|
static int |
PreferBlanking
SCREEN SAVER STUFF
|
static int |
PropertyChangeMask
Input Event Masks.
|
static int |
PropertyDelete
Property notification
|
static int |
PropertyNewValue
Property notification
|
static int |
PropertyNotify
Event names.
|
static int |
PropModeAppend
Property modes
|
static int |
PropModePrepend
Property modes
|
static int |
PropModeReplace
Property modes
|
static int |
ReparentNotify
Event names.
|
static int |
ReplayKeyboard
AllowEvents modes
|
static int |
ReplayPointer
AllowEvents modes
|
static int |
ResizeRedirectMask
Input Event Masks.
|
static int |
ResizeRequest
Event names.
|
static int |
RevertToNone
Used in XSetInputFocus(), XGetInputFocus().
|
static int |
RevertToParent
Used in XSetInputFocus(), XGetInputFocus().
|
static int |
RevertToPointerRoot
Used in XSetInputFocus(), XGetInputFocus().
|
static int |
ScreenSaverActive
SCREEN SAVER STUFF
|
static int |
ScreenSaverReset
SCREEN SAVER STUFF
|
static int |
SelectionClear
Event names.
|
static int |
SelectionNotify
Event names.
|
static int |
SelectionRequest
Event names.
|
static int |
ShiftMapIndex
modifier names.
|
static int |
ShiftMask
Key masks.
|
static int |
StructureNotifyMask
Input Event Masks.
|
static int |
SubstructureNotifyMask
Input Event Masks.
|
static int |
SubstructureRedirectMask
Input Event Masks.
|
static int |
Success
ERROR CODES
|
static int |
SyncBoth
AllowEvents modes
|
static int |
SyncKeyboard
AllowEvents modes
|
static int |
SyncPointer
AllowEvents modes
|
static int |
TopIf |
static int |
True
Boolean values
|
static int |
UnmapNotify
Event names.
|
static int |
Unsorted
SetClipRectangles ordering
|
static int |
VisibilityChangeMask
Input Event Masks.
|
static int |
VisibilityFullyObscured
Visibility notify
|
static int |
VisibilityNotify
Event names.
|
static int |
VisibilityPartiallyObscured
Visibility notify
|
static int |
VisibilityUnobscured
Visibility notify
|
static int |
WindingRule
fillRule
|
static int |
YSorted
SetClipRectangles ordering
|
static int |
YXBanded
SetClipRectangles ordering
|
static int |
YXSorted
SetClipRectangles ordering
|
| Modifier and Type | Method and Description |
|---|---|
static org.lwjgl.system.SharedLibrary |
getLibrary()
Returns the X11
SharedLibrary. |
static long |
nXCreateColormap(long display,
long w,
long visual,
int alloc)
Unsafe version of:
XCreateColormap(long, long, org.lwjgl.system.linux.Visual, int) |
static long |
nXCreateWindow(long display,
long parent,
int x,
int y,
int width,
int height,
int border_width,
int depth,
int windowClass,
long visual,
long valuemask,
long attributes)
|
static int |
nXFree(long data)
Unsafe version of:
XFree(java.nio.ByteBuffer) |
static long |
nXGetMotionEvents(long display,
long w,
long start,
long stop,
long nevents_return)
Unsafe version of:
XGetMotionEvents(long, long, long, long) |
static long |
nXOpenDisplay(long display_name)
Unsafe version of:
XOpenDisplay(java.nio.ByteBuffer) |
static int |
nXSendEvent(long display,
long w,
int propagate,
long event_mask,
long event_send)
Unsafe version of:
XSendEvent(long, long, boolean, long, org.lwjgl.system.linux.XEvent) |
static int |
nXTranslateCoordinates(long display,
long src_w,
long dest_w,
int src_x,
int src_y,
long dest_x_return,
long dest_y_return,
long child_return)
|
static void |
XCloseDisplay(long display)
Closes the connection to the X server for the display specified in the
Display structure and destroys all windows, resource IDs (Window, Font,
Pixmap, Colormap, Cursor, and GContext), or other resources that the client has created on this display, unless the close-down mode of the resource has
been changed (see XSetCloseDownMode()). |
static long |
XCreateColormap(long display,
long w,
Visual visual,
int alloc)
Creates a colormap of the specified visual type for the screen on which the specified window resides and returns the colormap ID associated with it.
|
static long |
XCreateWindow(long display,
long parent,
int x,
int y,
int width,
int height,
int border_width,
int depth,
int windowClass,
Visual visual,
long valuemask,
XSetWindowAttributes attributes)
Creates an unmapped subwindow for a specified parent window, returns the window ID of the created window, and causes the X server to generate a
CreateNotify event. |
static int |
XDefaultScreen(long display)
Returns a pointer to the default screen.
|
static int |
XDestroyWindow(long display,
long w)
Destroys the specified window as well as all of its subwindows and causes the X server to generate a
DestroyNotify event for each window. |
static long |
XDisplayMotionBufferSize(long display) |
static int |
XFree(java.nio.ByteBuffer data)
Free in-memory data that was created by an Xlib function.
|
static int |
XFree(org.lwjgl.PointerBuffer data)
Free in-memory data that was created by an Xlib function.
|
static int |
XFreeColormap(long display,
long colormap)
Deletes the association between the
colormap resource ID and the colormap and frees the colormap storage. |
static XTimeCoord.Buffer |
XGetMotionEvents(long display,
long w,
long start,
long stop)
The
XGetMotionEvents function returns all events in the motion history buffer that fall between the specified start and stop times, inclusive,
and that have coordinates that lie within the specified window (including its borders) at its present placement. |
static long |
XOpenDisplay(java.nio.ByteBuffer display_name)
Returns a Display structure that serves as the connection to the X server and that contains all the information about that X server.
|
static long |
XOpenDisplay(java.lang.CharSequence display_name)
Returns a Display structure that serves as the connection to the X server and that contains all the information about that X server.
|
static long |
XRootWindow(long display,
int screen_number)
Returns the root window of the specified screen.
|
static int |
XSendEvent(long display,
long w,
boolean propagate,
long event_mask,
XEvent event_send)
The
XSendEvent function identifies the destination window, determines which clients should receive the specified events, and ignores any active
grabs. |
static boolean |
XTranslateCoordinates(long display,
long src_w,
long dest_w,
int src_x,
int src_y,
int[] dest_x_return,
int[] dest_y_return,
org.lwjgl.CLongBuffer child_return)
|
static boolean |
XTranslateCoordinates(long display,
long src_w,
long dest_w,
int src_x,
int src_y,
java.nio.IntBuffer dest_x_return,
java.nio.IntBuffer dest_y_return,
org.lwjgl.CLongBuffer child_return)
Translates window coordinates.
|
public static final int True
public static final int False
public static final int None
public static final int ParentRelative
public static final int CopyFromParent
public static final int PointerWindow
public static final int InputFocus
public static final int PointerRoot
public static final int AnyPropertyType
public static final int AnyKey
public static final int AnyButton
public static final int AllTemporary
public static final int CurrentTime
public static final int NoSymbol
public static final int Success
public static final int BadRequest
public static final int BadValue
public static final int BadWindow
public static final int BadPixmap
public static final int BadAtom
public static final int BadCursor
public static final int BadFont
public static final int BadMatch
public static final int BadDrawable
public static final int BadAccess
public static final int BadAlloc
public static final int BadColor
public static final int BadGC
public static final int BadIDChoice
public static final int BadName
public static final int BadLength
public static final int BadImplementation
public static final int FirstExtensionError
public static final int LastExtensionError
public static final int CWBackPixmap
public static final int CWBackPixel
public static final int CWBorderPixmap
public static final int CWBorderPixel
public static final int CWBitGravity
public static final int CWWinGravity
public static final int CWBackingStore
public static final int CWBackingPlanes
public static final int CWBackingPixel
public static final int CWOverrideRedirect
public static final int CWSaveUnder
public static final int CWEventMask
public static final int CWDontPropagate
public static final int CWColormap
public static final int CWCursor
public static final int NoEventMask
public static final int KeyPressMask
public static final int KeyReleaseMask
public static final int ButtonPressMask
public static final int ButtonReleaseMask
public static final int EnterWindowMask
public static final int LeaveWindowMask
public static final int PointerMotionMask
public static final int PointerMotionHintMask
public static final int Button1MotionMask
public static final int Button2MotionMask
public static final int Button3MotionMask
public static final int Button4MotionMask
public static final int Button5MotionMask
public static final int ButtonMotionMask
public static final int KeymapStateMask
public static final int ExposureMask
public static final int VisibilityChangeMask
public static final int StructureNotifyMask
public static final int ResizeRedirectMask
public static final int SubstructureNotifyMask
public static final int SubstructureRedirectMask
public static final int FocusChangeMask
public static final int PropertyChangeMask
public static final int ColormapChangeMask
public static final int OwnerGrabButtonMask
public static final int KeyPress
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int KeyRelease
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int ButtonPress
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int ButtonRelease
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int MotionNotify
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int EnterNotify
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int LeaveNotify
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int FocusIn
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int FocusOut
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int KeymapNotify
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int Expose
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int GraphicsExpose
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int NoExpose
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int VisibilityNotify
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int CreateNotify
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int DestroyNotify
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int UnmapNotify
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int MapNotify
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int MapRequest
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int ReparentNotify
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int ConfigureNotify
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int ConfigureRequest
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int GravityNotify
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int ResizeRequest
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int CirculateNotify
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int CirculateRequest
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int PropertyNotify
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int SelectionClear
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int SelectionRequest
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int SelectionNotify
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int ColormapNotify
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int ClientMessage
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int MappingNotify
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int GenericEvent
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int LASTEvent
XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in
the protocol for errors and replies.public static final int ShiftMask
public static final int LockMask
public static final int ControlMask
public static final int Mod1Mask
public static final int Mod2Mask
public static final int Mod3Mask
public static final int Mod4Mask
public static final int Mod5Mask
public static final int ShiftMapIndex
public static final int LockMapIndex
public static final int ControlMapIndex
public static final int Mod1MapIndex
public static final int Mod2MapIndex
public static final int Mod3MapIndex
public static final int Mod4MapIndex
public static final int Mod5MapIndex
public static final int Button1Mask
public static final int Button2Mask
public static final int Button3Mask
public static final int Button4Mask
public static final int Button5Mask
public static final int AnyModifier
public static final int Button1
public static final int Button2
public static final int Button3
public static final int Button4
public static final int Button5
public static final int NotifyNormal
public static final int NotifyGrab
public static final int NotifyUngrab
public static final int NotifyWhileGrabbed
public static final int NotifyHint
public static final int NotifyAncestor
public static final int NotifyVirtual
public static final int NotifyInferior
public static final int NotifyNonlinear
public static final int NotifyNonlinearVirtual
public static final int NotifyPointer
public static final int NotifyPointerRoot
public static final int NotifyDetailNone
public static final int VisibilityUnobscured
public static final int VisibilityPartiallyObscured
public static final int VisibilityFullyObscured
public static final int PlaceOnTop
public static final int PlaceOnBottom
public static final int PropertyNewValue
public static final int PropertyDelete
public static final int ColormapUninstalled
public static final int ColormapInstalled
public static final int GrabModeSync
public static final int GrabModeAsync
public static final int GrabSuccess
public static final int AlreadyGrabbed
public static final int GrabInvalidTime
public static final int GrabNotViewable
public static final int GrabFrozen
public static final int AsyncPointer
public static final int SyncPointer
public static final int ReplayPointer
public static final int AsyncKeyboard
public static final int SyncKeyboard
public static final int ReplayKeyboard
public static final int AsyncBoth
public static final int SyncBoth
public static final int AllocNone
public static final int AllocAll
public static final int RevertToNone
public static final int RevertToPointerRoot
public static final int RevertToParent
public static final int InputOutput
XCreateWindow(long, long, int, int, int, int, int, int, int, org.lwjgl.system.linux.Visual, long, org.lwjgl.system.linux.XSetWindowAttributes).public static final int InputOnly
XCreateWindow(long, long, int, int, int, int, int, int, int, org.lwjgl.system.linux.Visual, long, org.lwjgl.system.linux.XSetWindowAttributes).public static final int DontPreferBlanking
public static final int PreferBlanking
public static final int DefaultBlanking
public static final int DisableScreenSaver
public static final int DisableScreenInterval
public static final int DontAllowExposures
public static final int AllowExposures
public static final int DefaultExposures
public static final int ScreenSaverReset
public static final int ScreenSaverActive
public static final int PropModeReplace
public static final int PropModePrepend
public static final int PropModeAppend
public static final int GXclear
public static final int GXand
public static final int GXandReverse
public static final int GXcopy
public static final int GXandInverted
public static final int GXnoop
public static final int GXxor
public static final int GXor
public static final int GXnor
public static final int GXequiv
public static final int GXinvert
public static final int GXorReverse
public static final int GXcopyInverted
public static final int GXorInverted
public static final int GXnand
public static final int GXset
public static final int LineSolid
public static final int LineOnOffDash
public static final int LineDoubleDash
public static final int CapNotLast
public static final int CapButt
public static final int CapRound
public static final int CapProjecting
public static final int JoinMiter
public static final int JoinRound
public static final int JoinBevel
public static final int FillSolid
public static final int FillTiled
public static final int FillStippled
public static final int FillOpaqueStippled
public static final int EvenOddRule
public static final int WindingRule
public static final int ClipByChildren
public static final int IncludeInferiors
public static final int Unsorted
public static final int YSorted
public static final int YXSorted
public static final int YXBanded
public static final int CoordModeOrigin
public static final int CoordModePrevious
public static final int Complex
public static final int Nonconvex
public static final int Convex
public static final int ArcChord
public static final int ArcPieSlice
public static final int GCFunction
public static final int GCPlaneMask
public static final int GCForeground
public static final int GCBackground
public static final int GCLineWidth
public static final int GCLineStyle
public static final int GCCapStyle
public static final int GCJoinStyle
public static final int GCFillStyle
public static final int GCFillRule
public static final int GCTile
public static final int GCStipple
public static final int GCTileStipXOrigin
public static final int GCTileStipYOrigin
public static final int GCFont
public static final int GCSubwindowMode
public static final int GCGraphicsExposures
public static final int GCClipXOrigin
public static final int GCClipYOrigin
public static final int GCClipMask
public static final int GCDashOffset
public static final int GCDashList
public static final int GCArcMode
public static final int GCLastBit
public static final int Above
public static final int Below
public static final int TopIf
public static final int BottomIf
public static final int Opposite
public static final int MappingModifier
public static final int MappingKeyboard
public static final int MappingPointer
public static org.lwjgl.system.SharedLibrary getLibrary()
SharedLibrary.public static long nXOpenDisplay(long display_name)
XOpenDisplay(java.nio.ByteBuffer)public static long XOpenDisplay(@Nullable
java.nio.ByteBuffer display_name)
XOpenDisplay
connects your application to the X server through TCP or DECnet communications protocols, or through some local inter-process communication protocol.
If the hostname is a host machine name and a single colon (:) separates the hostname and display number, XOpenDisplay connects using TCP streams.
If the hostname is not specified, Xlib uses whatever it believes is the fastest transport. If the hostname is a host machine name and a double colon
(::) separates the hostname and display number, XOpenDisplay connects using DECnet. A single X server can support any or all of these transport
mechanisms simultaneously. A particular Xlib implementation can support many more of these transport mechanisms.display_name - the hardware display name, which determines the display and communications domain to be used. On a POSIX-conformant system, if the
display_name is NULL, it defaults to the value of the DISPLAY environment variable.public static long XOpenDisplay(@Nullable
java.lang.CharSequence display_name)
XOpenDisplay
connects your application to the X server through TCP or DECnet communications protocols, or through some local inter-process communication protocol.
If the hostname is a host machine name and a single colon (:) separates the hostname and display number, XOpenDisplay connects using TCP streams.
If the hostname is not specified, Xlib uses whatever it believes is the fastest transport. If the hostname is a host machine name and a double colon
(::) separates the hostname and display number, XOpenDisplay connects using DECnet. A single X server can support any or all of these transport
mechanisms simultaneously. A particular Xlib implementation can support many more of these transport mechanisms.display_name - the hardware display name, which determines the display and communications domain to be used. On a POSIX-conformant system, if the
display_name is NULL, it defaults to the value of the DISPLAY environment variable.public static void XCloseDisplay(long display)
Display structure and destroys all windows, resource IDs (Window, Font,
Pixmap, Colormap, Cursor, and GContext), or other resources that the client has created on this display, unless the close-down mode of the resource has
been changed (see XSetCloseDownMode()). Therefore, these windows, resource IDs, and other resources should never be referenced again or an error will
be generated. Before exiting, you should call XCloseDisplay() explicitly so that any pending errors are reported as XCloseDisplay()
performs a final XSync() operation.display - the connection to the X serverpublic static int XDefaultScreen(long display)
display - the connection to the X serverpublic static long XRootWindow(long display,
int screen_number)
display - the connection to the X serverscreen_number - the appropriate screen number on the host serverpublic static long nXCreateColormap(long display,
long w,
long visual,
int alloc)
XCreateColormap(long, long, org.lwjgl.system.linux.Visual, int)public static long XCreateColormap(long display,
long w,
Visual visual,
int alloc)
display - the connection to the X serverw - the windowvisual - a visual type supported on the screen. If the visual type is not one supported by the screen, a BadMatch error results.alloc - the colormap entries to be allocated. You can pass AllocNone or AllocAll.public static int XFreeColormap(long display,
long colormap)
colormap resource ID and the colormap and frees the colormap storage. However, this function
has no effect on the default colormap for a screen. If the specified colormap is an installed map for a screen, it is uninstalled. If the
specified colormap is defined as the colormap for a window, XFreeColormap() changes the colormap associated with the window to
None and generates a ColormapNotify event. X does not define the colors displayed for a window with a colormap of None.display - the connection to the X servercolormap - the colormap to destroypublic static long nXCreateWindow(long display,
long parent,
int x,
int y,
int width,
int height,
int border_width,
int depth,
int windowClass,
long visual,
long valuemask,
long attributes)
public static long XCreateWindow(long display,
long parent,
int x,
int y,
int width,
int height,
int border_width,
int depth,
int windowClass,
Visual visual,
long valuemask,
XSetWindowAttributes attributes)
CreateNotify event. The created window is placed on top in the stacking order with respect to siblings.
The coordinate system has the X axis horizontal and the Y axis vertical with the origin [0, 0] at the upper-left corner. Coordinates are integral, in terms of pixels, and coincide with pixel centers. Each window and pixmap has its own coordinate system. For a window, the origin is inside the border at the inside, upper-left corner.
The x and y coordinates are the top-left outside corner of the window's borders and are relative to the inside of the parent window's borders.
The width and height are the created window's inside dimensions and do not include the created window's borders.
display - the connection to the X serverparent - the parent windowx - the window x-coordinatey - the window y-coordinatewidth - the window widthheight - the window heightborder_width - the border widthdepth - the window's depth. A depth of CopyFromParent means the depth is taken from the parent.windowClass - the created window's class. One of:InputOutput | InputOnly | CopyFromParent |
visual - the visual type. A visual of CopyFromParent means the visual type is taken from the parent.valuemask - which window attributes are defined in the attributes argument. This mask is the bitwise inclusive OR of the valid attribute mask bits. If
valuemask is zero, the attributes are ignored and are not referenced.attributes - the structure from which the values (as specified by the value mask) are to be takenpublic static int XDestroyWindow(long display,
long w)
DestroyNotify event for each window. The
window should never be referenced again. If the window specified by the w argument is mapped, it is unmapped automatically. The ordering of the
DestroyNotify events is such that for any given window being destroyed, DestroyNotify is generated on any inferiors of the window before
being generated on the window itself. The ordering among siblings and across subhierarchies is not otherwise constrained. If the window you specified is
a root window, no windows are destroyed. Destroying a mapped window will generate Expose events on other windows that were obscured by the
window being destroyed.display - the connection to the X serverw - the windowpublic static int nXFree(long data)
XFree(java.nio.ByteBuffer)public static int XFree(java.nio.ByteBuffer data)
data - the data that is to be freedpublic static int XFree(org.lwjgl.PointerBuffer data)
data - the data that is to be freedpublic static int nXSendEvent(long display,
long w,
int propagate,
long event_mask,
long event_send)
XSendEvent(long, long, boolean, long, org.lwjgl.system.linux.XEvent)public static int XSendEvent(long display,
long w,
boolean propagate,
long event_mask,
XEvent event_send)
XSendEvent function identifies the destination window, determines which clients should receive the specified events, and ignores any active
grabs. This function requires you to pass an event mask. This function uses the w argument to identify the destination window as follows:
w is PointerWindow, the destination window is the window that contains the pointer.w is InputFocus and if the focus window contains the pointer, the destination window is the window that contains the pointer;
otherwise, the destination window is the focus window.To determine which clients should receive the specified events, XSendEvent uses the propagate argument as follows:
event_mask is the empty set, the event is sent to the client that created the destination window. If that client no longer exists, no
event is sent.propagate is False, the event is sent to every client selecting on destination any of the event types in the event_mask
argument.propagate is True and no clients have selected on destination any of the event types in event-mask, the destination is replaced with
the closest ancestor of destination for which some client has selected a type in event-mask and for which no intervening window has that type in
its do-not-propagate-mask. If no such window exists or if the window is an ancestor of the focus window and InputFocus was originally specified as
the destination, the event is not sent to any clients. Otherwise, the event is reported to every client selecting on the final destination any of
the types specified in event_mask.The event in the XEvent structure must be one of the core events or one of the events defined by an extension (or a BadValue error results) so
that the X server can correctly byte-swap the contents as necessary. The contents of the event are otherwise unaltered and unchecked by the X server
except to force send_event to True in the forwarded event and to set the serial number in the event correctly; therefore these fields and the
display field are ignored by XSendEvent.
XSendEvent returns zero if the conversion to wire protocol format failed and returns nonzero otherwise. XSendEvent can generate
BadValue and BadWindow errors.
The server may retain the recent history of the pointer motion and do so to a finer granularity than is reported by MotionNotify events. The
XGetMotionEvents(long, long, long, long) function makes this history available.
display - the connection to the X serverw - specifies the window the event is to be sent topropagate - specifies a Boolean valueevent_mask - specifies the event maskevent_send - specifies the event that is to be sentpublic static long XDisplayMotionBufferSize(long display)
display - the connection to the X serverpublic static long nXGetMotionEvents(long display,
long w,
long start,
long stop,
long nevents_return)
XGetMotionEvents(long, long, long, long)@Nullable public static XTimeCoord.Buffer XGetMotionEvents(long display, long w, long start, long stop)
XGetMotionEvents function returns all events in the motion history buffer that fall between the specified start and stop times, inclusive,
and that have coordinates that lie within the specified window (including its borders) at its present placement.
If the server does not support motion history, if the start time is later than the stop time, or if the start time is in the future, no events are
returned; XGetMotionEvents returns NULL. If the stop time is in the future, it is equivalent to specifying CurrentTime.
XGetMotionEvents can generate a BadWindow error.
display - the connection to the X serverpublic static int nXTranslateCoordinates(long display,
long src_w,
long dest_w,
int src_x,
int src_y,
long dest_x_return,
long dest_y_return,
long child_return)
public static boolean XTranslateCoordinates(long display,
long src_w,
long dest_w,
int src_x,
int src_y,
java.nio.IntBuffer dest_x_return,
java.nio.IntBuffer dest_y_return,
org.lwjgl.CLongBuffer child_return)
If XTranslateCoordinates returns True, it takes the src_x and src_y coordinates relative to the source window's origin and
returns these coordinates to dest_x_return and dest_y_return relative to the destination window's origin. If
XTranslateCoordinates returns False, src_w and dest_w are on different screens, and dest_x_return and
dest_y_return are zero. If the coordinates are contained in a mapped child of dest_w, that child is returned to child_return.
Otherwise, child_return is set to None.
XTranslateCoordinates can generate a BadWindow error.
display - the connection to the X serversrc_w - specifies the source windowdest_w - specifies the destination windowsrc_x - specifies the x coordinate within the source windowsrc_y - specifies the x coordinate within the source windowdest_x_return - returns the x coordinate within the destination windowdest_y_return - returns the y coordinate within the destination windowchild_return - returns the child if the coordinates are contained in a mapped child of the destination windowpublic static boolean XTranslateCoordinates(long display,
long src_w,
long dest_w,
int src_x,
int src_y,
int[] dest_x_return,
int[] dest_y_return,
org.lwjgl.CLongBuffer child_return)
Copyright LWJGL. All Rights Reserved. License terms.