Top Description Inners Fields Constructors Methods
org.lwjgl.system.linux

public Class X11

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Native bindings to libX11.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
X11.Functions

Contains the function pointers loaded from the X11 SharedLibrary.

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final int
AllowExposures

SCREEN SAVER STUFF

public static final int
AllTemporary

RESERVED RESOURCE AND CONSTANT DEFINITIONS

public static final int
AlreadyGrabbed

GrabPointer, GrabKeyboard reply status

public static final int
AnyButton

RESERVED RESOURCE AND CONSTANT DEFINITIONS

public static final int
AnyKey

RESERVED RESOURCE AND CONSTANT DEFINITIONS

public static final int
AnyModifier

button masks.

public static final int
AnyPropertyType

RESERVED RESOURCE AND CONSTANT DEFINITIONS

public static final int
ArcChord

Arc modes for PolyFillArc

public static final int
ArcPieSlice

Arc modes for PolyFillArc

public static final int
AsyncBoth

AllowEvents modes

public static final int
AsyncKeyboard

AllowEvents modes

public static final int
AsyncPointer

AllowEvents modes

public static final int
BadAccess

ERROR CODES

public static final int
BadAlloc

ERROR CODES

public static final int
BadAtom

ERROR CODES

public static final int
BadColor

ERROR CODES

public static final int
BadCursor

ERROR CODES

public static final int
BadDrawable

ERROR CODES

public static final int
BadFont

ERROR CODES

public static final int
BadGC

ERROR CODES

public static final int
BadIDChoice

ERROR CODES

public static final int
BadImplementation

ERROR CODES

public static final int
BadLength

ERROR CODES

public static final int
BadMatch

ERROR CODES

public static final int
BadName

ERROR CODES

public static final int
BadPixmap

ERROR CODES

public static final int
BadRequest

ERROR CODES

public static final int
BadValue

ERROR CODES

public static final int
BadWindow

ERROR CODES

public static final int
public static final int
public static final int
Button1

button names.

public static final int
Button1Mask

button masks.

public static final int
Button1MotionMask

Input Event Masks.

public static final int
Button2

button names.

public static final int
Button2Mask

button masks.

public static final int
Button2MotionMask

Input Event Masks.

public static final int
Button3

button names.

public static final int
Button3Mask

button masks.

public static final int
Button3MotionMask

Input Event Masks.

public static final int
Button4

button names.

public static final int
Button4Mask

button masks.

public static final int
Button4MotionMask

Input Event Masks.

public static final int
Button5

button names.

public static final int
Button5Mask

button masks.

public static final int
Button5MotionMask

Input Event Masks.

public static final int
ButtonMotionMask

Input Event Masks.

public static final int
ButtonPress

Event names.

public static final int
ButtonPressMask

Input Event Masks.

public static final int
ButtonRelease

Event names.

public static final int
ButtonReleaseMask

Input Event Masks.

public static final int
CapButt

capStyle

public static final int
CapNotLast

capStyle

public static final int
CapProjecting

capStyle

public static final int
CapRound

capStyle

public static final int
CirculateNotify

Event names.

public static final int
CirculateRequest

Event names.

public static final int
ClientMessage

Event names.

public static final int
ClipByChildren

subwindow mode

public static final int
ColormapChangeMask

Input Event Masks.

public static final int
ColormapInstalled

Color Map notification

public static final int
ColormapNotify

Event names.

public static final int
ColormapUninstalled

Color Map notification

public static final int
Complex

Polygon shapes

public static final int
ConfigureNotify

Event names.

public static final int
ConfigureRequest

Event names.

public static final int
ControlMapIndex

modifier names.

public static final int
ControlMask

Key masks.

public static final int
Convex

Polygon shapes

public static final int
CoordModeOrigin

CoordinateMode for drawing routines

public static final int
CoordModePrevious

CoordinateMode for drawing routines

public static final int
CopyFromParent

RESERVED RESOURCE AND CONSTANT DEFINITIONS

public static final int
CreateNotify

Event names.

public static final int
CurrentTime

RESERVED RESOURCE AND CONSTANT DEFINITIONS

public static final int
CWBackingPixel

Window attributes for CreateWindow and ChangeWindowAttributes

public static final int
CWBackingPlanes

Window attributes for CreateWindow and ChangeWindowAttributes

public static final int
CWBackingStore

Window attributes for CreateWindow and ChangeWindowAttributes

public static final int
CWBackPixel

Window attributes for CreateWindow and ChangeWindowAttributes

public static final int
CWBackPixmap

Window attributes for CreateWindow and ChangeWindowAttributes

public static final int
CWBitGravity

Window attributes for CreateWindow and ChangeWindowAttributes

public static final int
CWBorderPixel

Window attributes for CreateWindow and ChangeWindowAttributes

public static final int
CWBorderPixmap

Window attributes for CreateWindow and ChangeWindowAttributes

public static final int
CWColormap

Window attributes for CreateWindow and ChangeWindowAttributes

public static final int
CWCursor

Window attributes for CreateWindow and ChangeWindowAttributes

public static final int
CWDontPropagate

Window attributes for CreateWindow and ChangeWindowAttributes

public static final int
CWEventMask

Window attributes for CreateWindow and ChangeWindowAttributes

public static final int
CWOverrideRedirect

Window attributes for CreateWindow and ChangeWindowAttributes

public static final int
CWSaveUnder

Window attributes for CreateWindow and ChangeWindowAttributes

public static final int
CWWinGravity

Window attributes for CreateWindow and ChangeWindowAttributes

public static final int
DefaultBlanking

SCREEN SAVER STUFF

public static final int
DefaultExposures

SCREEN SAVER STUFF

public static final int
DestroyNotify

Event names.

public static final int
DisableScreenInterval

SCREEN SAVER STUFF

public static final int
DisableScreenSaver

SCREEN SAVER STUFF

public static final int
DontAllowExposures

SCREEN SAVER STUFF

public static final int
DontPreferBlanking

SCREEN SAVER STUFF

public static final int
EnterNotify

Event names.

public static final int
EnterWindowMask

Input Event Masks.

public static final int
EvenOddRule

fillRule

public static final int
Expose

Event names.

public static final int
ExposureMask

Input Event Masks.

public static final int
False

Boolean values

public static final int
public static final int
FillSolid

fillStyle

public static final int
FillStippled

fillStyle

public static final int
FillTiled

fillStyle

public static final int
public static final int
FocusChangeMask

Input Event Masks.

public static final int
FocusIn

Event names.

public static final int
FocusOut

Event names.

public static final int
GCArcMode

GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges

public static final int
GCBackground

GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges

public static final int
GCCapStyle

GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges

public static final int
GCClipMask

GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges

public static final int
GCClipXOrigin

GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges

public static final int
GCClipYOrigin

GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges

public static final int
GCDashList

GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges

public static final int
GCDashOffset

GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges

public static final int
GCFillRule

GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges

public static final int
GCFillStyle

GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges

public static final int
GCFont

GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges

public static final int
GCForeground

GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges

public static final int
GCFunction

GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges

public static final int
GCGraphicsExposures

GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges

public static final int
GCJoinStyle

GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges

public static final int
GCLastBit

GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges

public static final int
GCLineStyle

GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges

public static final int
GCLineWidth

GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges

public static final int
GCPlaneMask

GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges

public static final int
GCStipple

GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges

public static final int
GCSubwindowMode

GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges

public static final int
GCTile

GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges

public static final int
GCTileStipXOrigin

GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges

public static final int
GCTileStipYOrigin

GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges

public static final int
GenericEvent

Event names.

public static final int
GrabFrozen

GrabPointer, GrabKeyboard reply status

public static final int
GrabInvalidTime

GrabPointer, GrabKeyboard reply status

public static final int
GrabModeAsync

GrabPointer, GrabButton, GrabKeyboard, GrabKey Modes

public static final int
GrabModeSync

GrabPointer, GrabButton, GrabKeyboard, GrabKey Modes

public static final int
GrabNotViewable

GrabPointer, GrabKeyboard reply status

public static final int
GrabSuccess

GrabPointer, GrabKeyboard reply status

public static final int
GraphicsExpose

Event names.

public static final int
GravityNotify

Event names.

public static final int
GXand

graphics functions, as in GC.alu

public static final int
GXandInverted

graphics functions, as in GC.alu

public static final int
GXandReverse

graphics functions, as in GC.alu

public static final int
GXclear

graphics functions, as in GC.alu

public static final int
GXcopy

graphics functions, as in GC.alu

public static final int
GXcopyInverted

graphics functions, as in GC.alu

public static final int
GXequiv

graphics functions, as in GC.alu

public static final int
GXinvert

graphics functions, as in GC.alu

public static final int
GXnand

graphics functions, as in GC.alu

public static final int
GXnoop

graphics functions, as in GC.alu

public static final int
GXnor

graphics functions, as in GC.alu

public static final int
GXor

graphics functions, as in GC.alu

public static final int
GXorInverted

graphics functions, as in GC.alu

public static final int
GXorReverse

graphics functions, as in GC.alu

public static final int
GXset

graphics functions, as in GC.alu

public static final int
GXxor

graphics functions, as in GC.alu

public static final int
IncludeInferiors

subwindow mode

public static final int
InputFocus

RESERVED RESOURCE AND CONSTANT DEFINITIONS

public static final int
InputOnly

Window classes used by XCreateWindow.

public static final int
InputOutput

Window classes used by XCreateWindow.

public static final int
JoinBevel

joinStyle

public static final int
JoinMiter

joinStyle

public static final int
JoinRound

joinStyle

public static final int
KeymapNotify

Event names.

public static final int
KeymapStateMask

Input Event Masks.

public static final int
KeyPress

Event names.

public static final int
KeyPressMask

Input Event Masks.

public static final int
KeyRelease

Event names.

public static final int
KeyReleaseMask

Input Event Masks.

public static final int
LASTEvent

Event names.

public static final int
LastExtensionError

ERROR CODES

public static final int
LeaveNotify

Event names.

public static final int
LeaveWindowMask

Input Event Masks.

public static final int
LineDoubleDash

LineStyle

public static final int
LineOnOffDash

LineStyle

public static final int
LineSolid

LineStyle

public static final int
LockMapIndex

modifier names.

public static final int
LockMask

Key masks.

public static final int
MapNotify

Event names.

public static final int
public static final int
public static final int
MappingNotify

Event names.

public static final int
public static final int
MapRequest

Event names.

public static final int
Mod1MapIndex

modifier names.

public static final int
Mod1Mask

Key masks.

public static final int
Mod2MapIndex

modifier names.

public static final int
Mod2Mask

Key masks.

public static final int
Mod3MapIndex

modifier names.

public static final int
Mod3Mask

Key masks.

public static final int
Mod4MapIndex

modifier names.

public static final int
Mod4Mask

Key masks.

public static final int
Mod5MapIndex

modifier names.

public static final int
Mod5Mask

Key masks.

public static final int
MotionNotify

Event names.

public static final int
NoEventMask

Input Event Masks.

public static final int
NoExpose

Event names.

public static final int
Nonconvex

Polygon shapes

public static final int
None

RESERVED RESOURCE AND CONSTANT DEFINITIONS

public static final int
NoSymbol

RESERVED RESOURCE AND CONSTANT DEFINITIONS

public static final int
NotifyAncestor

Notify detail

public static final int
NotifyDetailNone

Notify detail

public static final int
NotifyGrab

Notify modes

public static final int
NotifyHint

Notify modes

public static final int
NotifyInferior

Notify detail

public static final int
NotifyNonlinear

Notify detail

public static final int
public static final int
NotifyNormal

Notify modes

public static final int
NotifyPointer

Notify detail

public static final int
NotifyPointerRoot

Notify detail

public static final int
NotifyUngrab

Notify modes

public static final int
NotifyVirtual

Notify detail

public static final int
NotifyWhileGrabbed

Notify modes

public static final int
public static final int
OwnerGrabButtonMask

Input Event Masks.

public static final int
ParentRelative

RESERVED RESOURCE AND CONSTANT DEFINITIONS

public static final int
PlaceOnBottom

Circulation request

public static final int
PlaceOnTop

Circulation request

public static final int
PointerMotionHintMask

Input Event Masks.

public static final int
PointerMotionMask

Input Event Masks.

public static final int
PointerRoot

RESERVED RESOURCE AND CONSTANT DEFINITIONS

public static final int
PointerWindow

RESERVED RESOURCE AND CONSTANT DEFINITIONS

public static final int
PreferBlanking

SCREEN SAVER STUFF

public static final int
PropertyChangeMask

Input Event Masks.

public static final int
PropertyDelete

Property notification

public static final int
PropertyNewValue

Property notification

public static final int
PropertyNotify

Event names.

public static final int
PropModeAppend

Property modes

public static final int
PropModePrepend

Property modes

public static final int
PropModeReplace

Property modes

public static final int
ReparentNotify

Event names.

public static final int
ReplayKeyboard

AllowEvents modes

public static final int
ReplayPointer

AllowEvents modes

public static final int
ResizeRedirectMask

Input Event Masks.

public static final int
ResizeRequest

Event names.

public static final int
RevertToNone

Used in XSetInputFocus(), XGetInputFocus().

public static final int
RevertToParent

Used in XSetInputFocus(), XGetInputFocus().

public static final int
RevertToPointerRoot

Used in XSetInputFocus(), XGetInputFocus().

public static final int
ScreenSaverActive

SCREEN SAVER STUFF

public static final int
ScreenSaverReset

SCREEN SAVER STUFF

public static final int
SelectionClear

Event names.

public static final int
SelectionNotify

Event names.

public static final int
SelectionRequest

Event names.

public static final int
ShiftMapIndex

modifier names.

public static final int
ShiftMask

Key masks.

public static final int
StructureNotifyMask

Input Event Masks.

public static final int
SubstructureNotifyMask

Input Event Masks.

public static final int
SubstructureRedirectMask

Input Event Masks.

public static final int
Success

ERROR CODES

public static final int
SyncBoth

AllowEvents modes

public static final int
SyncKeyboard

AllowEvents modes

public static final int
SyncPointer

AllowEvents modes

public static final int
public static final int
True

Boolean values

public static final int
UnmapNotify

Event names.

public static final int
Unsorted

SetClipRectangles ordering

public static final int
VisibilityChangeMask

Input Event Masks.

public static final int
VisibilityFullyObscured

Visibility notify

public static final int
VisibilityNotify

Event names.

public static final int
VisibilityPartiallyObscured

Visibility notify

public static final int
VisibilityUnobscured

Visibility notify

public static final int
WindingRule

fillRule

private static final SharedLibrary
public static final int
YSorted

SetClipRectangles ordering

public static final int
YXBanded

SetClipRectangles ordering

public static final int
YXSorted

SetClipRectangles ordering

Constructor Summary

AccessConstructor and Description
protected
X11()

Method Summary

Modifier and TypeMethod and Description
public static SharedLibrary
getLibrary()

Returns the X11 SharedLibrary.

public static long
nXCreateColormap(long display, long w, long visual, int alloc)

Unsafe version of: XCreateColormap

public 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)

Unsafe version of: XCreateWindow

public static int
nXFree(long data)

Unsafe version of: XFree

public static long
nXGetMotionEvents(long display, long w, long start, long stop, long nevents_return)

Unsafe version of: XGetMotionEvents

public static long
nXOpenDisplay(long display_name)

Unsafe version of: XOpenDisplay

public static int
nXSendEvent(long display, long w, int propagate, long event_mask, long event_send)

Unsafe version of: XSendEvent

public 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)

Unsafe version of: XTranslateCoordinates

public static void
XCloseDisplay(long
the connection to the X server
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()).

public static long
XCreateColormap(long
the connection to the X server
display
,
long
the window
w
,
Visual
a visual type supported on the screen. If the visual type is not one supported by the screen, a BadMatch error results.
visual
,
int
the colormap entries to be allocated. You can pass AllocNone or AllocAll.
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.

public static long
XCreateWindow(long
the connection to the X server
display
,
long
the parent window
parent
,
int
the window x-coordinate
x
,
int
the window y-coordinate
y
,
int
the window width
width
,
int
the window height
height
,
int
the border width
border_width
,
int
the window's depth. A depth of CopyFromParent means the depth is taken from the parent.
depth
,
int
the created window's class. One of:
InputOutputInputOnlyCopyFromParent
windowClass
,
Visual
the visual type. A visual of CopyFromParent means the visual type is taken from the parent.
visual
,
long
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.
valuemask
,
XSetWindowAttributes
the structure from which the values (as specified by the value mask) are to be taken
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.

public static int
XDefaultScreen(long
the connection to the X server
display
)

Returns a pointer to the default screen.

public static int
XDestroyWindow(long
the connection to the X server
display
,
long
the window
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.

public static long
XDisplayMotionBufferSize(long
the connection to the X server
display
)

public static int
XFree(ByteBuffer
the data that is to be freed
data
)

Free in-memory data that was created by an Xlib function.

public static int
XFree(PointerBuffer
the data that is to be freed
data
)

Free in-memory data that was created by an Xlib function.

public static int
XFreeColormap(long
the connection to the X server
display
,
long
the colormap to destroy
colormap
)

Deletes the association between the colormap resource ID and the colormap and frees the colormap storage.

public static XTimeCoord.Buffer
XGetMotionEvents(long
the connection to the X server
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.

public static long
XOpenDisplay(ByteBuffer
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.
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.

public static long
XOpenDisplay(CharSequence
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.
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.

public static long
XRootWindow(long
the connection to the X server
display
,
int
the appropriate screen number on the host server
screen_number
)

Returns the root window of the specified screen.

public static int
XSendEvent(long
the connection to the X server
display
,
long
specifies the window the event is to be sent to
w
,
boolean
specifies a Boolean value
propagate
,
long
specifies the event mask
event_mask
,
XEvent
specifies the event that is to be sent
event_send
)

The XSendEvent function identifies the destination window, determines which clients should receive the specified events, and ignores any active grabs.

public static boolean
XTranslateCoordinates(long
the connection to the X server
display
,
long
specifies the source window
src_w
,
long
specifies the destination window
dest_w
,
int
specifies the x coordinate within the source window
src_x
,
int
specifies the x coordinate within the source window
src_y
,
IntBuffer
returns the x coordinate within the destination window
dest_x_return
,
IntBuffer
returns the y coordinate within the destination window
dest_y_return
,
CLongBuffer
returns the child if the coordinates are contained in a mapped child of the destination window
child_return
)

Translates window coordinates.

public 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, CLongBuffer child_return)

Array version of: XTranslateCoordinates

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait