Top Description Inners Fields Constructors Methods
com.sun.glass.ui.monocle

pack-priv Class X

extends Object
Class Inheritance
Imports
com.sun.glass.utils.NativeLibLoader, java.nio.ByteBuffer

X provides access to Xlib function calls. Except where noted, each method in the X class corresponds to exactly one Xlib call taking parameters in the same order and returning the same result as the corresponding C function.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
X.XButtonEvent

XButtonEvent wraps the C structure of the same name, defined in Xlib.h

pack-priv static class
X.XClientMessageEvent

XClientMessageEvent wraps the C structure of the same name, defined in Xlib.h

pack-priv static class
X.XColor

XColor wraps the C structure XColor.

pack-priv static class
X.XDisplay

XDisplay wraps the C structure Display.

pack-priv static class
X.XEvent

XEvent wraps the C structure of the same name, defined in Xlib.h

pack-priv static class
X.XMotionEvent

XMotionEvent wraps the C structure of the same name, defined in Xlib.h

pack-priv static class
X.XSetWindowAttributes

XSetWindowAttributes wraps the C structure of the same name, defined in Xlib.h

Field Summary

Modifier and TypeField and Description
pack-priv static final long
pack-priv static final long
pack-priv static final long
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final long
pack-priv static final int
pack-priv static final long
pack-priv static final int
pack-priv static final long
pack-priv static final long
pack-priv static final long
pack-priv static final long
pack-priv static final long
pack-priv static final long
pack-priv static final int
private static X
pack-priv static final int
pack-priv static final long
pack-priv static final long
pack-priv static final long
pack-priv static final long

Constructor Summary

AccessConstructor and Description
private
X()

Method Summary

Modifier and TypeMethod and Description
pack-priv native long
DefaultScreenOfDisplay(long display)

pack-priv static X
getX()

Obtains the single instance of X.

pack-priv native int
HeightOfScreen(long screen)

pack-priv native long
RootWindowOfScreen(long screen)

pack-priv native int
WidthOfScreen(long screen)

pack-priv native long
XCreateBitmapFromData(long display, long drawable, ByteBuffer data, int width, int height)

pack-priv native long
XCreatePixmapCursor(long display, long source, long mask, long fg, long bg, int x, int y)

pack-priv native long
XCreateWindow(long display, long parent, int x, int y, int width, int height, int borderWidth, int depth, int windowClass, long visual, long valueMask, long attributes)

pack-priv native void
XDefineCursor(long display, long window, long cursor)

pack-priv native void
XFlush(long display)

pack-priv native void
XFreePixmap(long display, long pixmap)

pack-priv native void
XGetGeometry(long display, long window, long[] root, int[] x, int[] y, int[] width, int[] height, int[] borderWidth, int[] depth)

pack-priv native void
XGrabKeyboard(long display, long window, boolean ownerEvents, long pointerMode, long keyboardMode, long time)

pack-priv native void
pack-priv native long
XInternAtom(long display, String atomName, boolean onlyIfExists)

pack-priv native void
XLockDisplay(long display)

pack-priv native void
XMapWindow(long display, long window)

pack-priv native void
XNextEvent(long display, long xevent)

pack-priv native long
XOpenDisplay(String displayName)

pack-priv native void
XQueryPointer(long display, long window, int[] position)

pack-priv native void
XSendEvent(long display, long window, boolean propagate, long mask, long event)

pack-priv native void
XStoreName(long display, long window, String name)

pack-priv native void
XSync(long display, boolean flush)

pack-priv native void
XUndefineCursor(long display, long window)

pack-priv native void
XUnlockDisplay(long display)

pack-priv native void
XWarpPointer(long display, long src_window, long dst_window, int src_x, int src_y, int src_width, int src_height, int dest_x, int dest_y)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_NET_WM_STATE_ADDback to summary
pack-priv static final long _NET_WM_STATE_ADD
_NET_WM_STATE_REMOVEback to summary
pack-priv static final long _NET_WM_STATE_REMOVE
_NET_WM_STATE_TOGGLEback to summary
pack-priv static final long _NET_WM_STATE_TOGGLE
Button1back to summary
pack-priv static final int Button1
Button2back to summary
pack-priv static final int Button2
Button3back to summary
pack-priv static final int Button3
Button4back to summary
pack-priv static final int Button4
Button5back to summary
pack-priv static final int Button5
Button8back to summary
pack-priv static final int Button8
Button9back to summary
pack-priv static final int Button9
ButtonPressback to summary
pack-priv static final int ButtonPress
ButtonPressMaskback to summary
pack-priv static final long ButtonPressMask
ButtonReleaseback to summary
pack-priv static final int ButtonRelease
ButtonReleaseMaskback to summary
pack-priv static final long ButtonReleaseMask
CopyFromParentback to summary
pack-priv static final int CopyFromParent
CurrentTimeback to summary
pack-priv static final long CurrentTime
CWCursorMaskback to summary
pack-priv static final long CWCursorMask
CWEventMaskback to summary
pack-priv static final long CWEventMask
CWOverrideRedirectback to summary
pack-priv static final long CWOverrideRedirect
GrabModeAsyncback to summary
pack-priv static final long GrabModeAsync
GrabModeSyncback to summary
pack-priv static final long GrabModeSync
InputOutputback to summary
pack-priv static final int InputOutput
instanceback to summary
private static X instance
MotionNotifyback to summary
pack-priv static final int MotionNotify
Noneback to summary
pack-priv static final long None
PointerMotionMaskback to summary
pack-priv static final long PointerMotionMask
SubstructureNotifyMaskback to summary
pack-priv static final long SubstructureNotifyMask
SubstructureRedirectMaskback to summary
pack-priv static final long SubstructureRedirectMask

Constructor Detail

Xback to summary
private X()

Method Detail

DefaultScreenOfDisplayback to summary
pack-priv native long DefaultScreenOfDisplay(long display)
getXback to summary
pack-priv static X getX()

Obtains the single instance of X.

HeightOfScreenback to summary
pack-priv native int HeightOfScreen(long screen)
RootWindowOfScreenback to summary
pack-priv native long RootWindowOfScreen(long screen)
WidthOfScreenback to summary
pack-priv native int WidthOfScreen(long screen)
XCreateBitmapFromDataback to summary
pack-priv native long XCreateBitmapFromData(long display, long drawable, ByteBuffer data, int width, int height)
XCreatePixmapCursorback to summary
pack-priv native long XCreatePixmapCursor(long display, long source, long mask, long fg, long bg, int x, int y)
XCreateWindowback to summary
pack-priv native long XCreateWindow(long display, long parent, int x, int y, int width, int height, int borderWidth, int depth, int windowClass, long visual, long valueMask, long attributes)
XDefineCursorback to summary
pack-priv native void XDefineCursor(long display, long window, long cursor)
XFlushback to summary
pack-priv native void XFlush(long display)
XFreePixmapback to summary
pack-priv native void XFreePixmap(long display, long pixmap)
XGetGeometryback to summary
pack-priv native void XGetGeometry(long display, long window, long[] root, int[] x, int[] y, int[] width, int[] height, int[] borderWidth, int[] depth)
XGrabKeyboardback to summary
pack-priv native void XGrabKeyboard(long display, long window, boolean ownerEvents, long pointerMode, long keyboardMode, long time)
XInitThreadsback to summary
pack-priv native void XInitThreads()
XInternAtomback to summary
pack-priv native long XInternAtom(long display, String atomName, boolean onlyIfExists)
XLockDisplayback to summary
pack-priv native void XLockDisplay(long display)
XMapWindowback to summary
pack-priv native void XMapWindow(long display, long window)
XNextEventback to summary
pack-priv native void XNextEvent(long display, long xevent)
XOpenDisplayback to summary
pack-priv native long XOpenDisplay(String displayName)
XQueryPointerback to summary
pack-priv native void XQueryPointer(long display, long window, int[] position)
XSendEventback to summary
pack-priv native void XSendEvent(long display, long window, boolean propagate, long mask, long event)
XStoreNameback to summary
pack-priv native void XStoreName(long display, long window, String name)
XSyncback to summary
pack-priv native void XSync(long display, boolean flush)
XUndefineCursorback to summary
pack-priv native void XUndefineCursor(long display, long window)
XUnlockDisplayback to summary
pack-priv native void XUnlockDisplay(long display)
XWarpPointerback to summary
pack-priv native void XWarpPointer(long display, long src_window, long dst_window, int src_x, int src_y, int src_width, int src_height, int dest_x, int dest_y)
com.sun.glass.ui.monocle back to summary

pack-priv Class X.XButtonEvent

extends XEvent
Class Inheritance

XButtonEvent wraps the C structure of the same name, defined in Xlib.h

Constructor Summary

AccessConstructor and Description
pack-priv
XButtonEvent(X.XEvent event)

Creates an XButtonEvent from an existing XEvent

Method Summary

Modifier and TypeMethod and Description
pack-priv static native int
getButton(long p)

Inherited from com.sun.glass.ui.monocle.X.XEvent:
getTypegetWindowsetWindowsizeof

Constructor Detail

XButtonEventback to summary
pack-priv XButtonEvent(X.XEvent event)

Creates an XButtonEvent from an existing XEvent

Method Detail

getButtonback to summary
pack-priv static native int getButton(long p)
com.sun.glass.ui.monocle back to summary

pack-priv Class X.XClientMessageEvent

extends XEvent
Class Inheritance

XClientMessageEvent wraps the C structure of the same name, defined in Xlib.h

Constructor Summary

AccessConstructor and Description
pack-priv
XClientMessageEvent(X.XEvent event)

Creates an XClientMessageEvent from an existing XEvent

Method Summary

Modifier and TypeMethod and Description
pack-priv static native void
setDataLong(long p, int index, long element)

pack-priv static native void
setFormat(long p, long format)

pack-priv static native void
setMessageType(long p, long atom)

Inherited from com.sun.glass.ui.monocle.X.XEvent:
getTypegetWindowsetWindowsizeof

Constructor Detail

XClientMessageEventback to summary
pack-priv XClientMessageEvent(X.XEvent event)

Creates an XClientMessageEvent from an existing XEvent

Method Detail

setDataLongback to summary
pack-priv static native void setDataLong(long p, int index, long element)
setFormatback to summary
pack-priv static native void setFormat(long p, long format)
setMessageTypeback to summary
pack-priv static native void setMessageType(long p, long atom)
com.sun.glass.ui.monocle back to summary

pack-priv Class X.XColor

extends Structure
Class Inheritance

XColor wraps the C structure XColor.

Field Summary

Inherited from com.sun.glass.ui.monocle.C.Structure:
bp

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv native void
setBlue(long p, int blue)

pack-priv native void
setGreen(long p, int green)

pack-priv native void
setRed(long p, int red)

pack-priv native int
sizeof()

Implements abstract com.sun.glass.ui.monocle.C.Structure.sizeof.

The size of the C struct in bytes.

Constructor Detail

XColorback to summary
pack-priv XColor()

Method Detail

setBlueback to summary
pack-priv native void setBlue(long p, int blue)
setGreenback to summary
pack-priv native void setGreen(long p, int green)
setRedback to summary
pack-priv native void setRed(long p, int red)
sizeofback to summary
pack-priv native int sizeof()

Implements abstract com.sun.glass.ui.monocle.C.Structure.sizeof.

Doc from com.sun.glass.ui.monocle.C.Structure.sizeof.

The size of the C struct in bytes. Must be overridden by subclasses.

Annotations
@Override
com.sun.glass.ui.monocle back to summary

pack-priv Class X.XDisplay

extends Structure
Class Inheritance

XDisplay wraps the C structure Display.

Field Summary

Inherited from com.sun.glass.ui.monocle.C.Structure:
bp

Constructor Summary

AccessConstructor and Description
pack-priv
XDisplay(long p)

Method Summary

Modifier and TypeMethod and Description
pack-priv native int
sizeof()

Implements abstract com.sun.glass.ui.monocle.C.Structure.sizeof.

The size of the C struct in bytes.

Constructor Detail

XDisplayback to summary
pack-priv XDisplay(long p)

Method Detail

sizeofback to summary
pack-priv native int sizeof()

Implements abstract com.sun.glass.ui.monocle.C.Structure.sizeof.

Doc from com.sun.glass.ui.monocle.C.Structure.sizeof.

The size of the C struct in bytes. Must be overridden by subclasses.

Annotations
@Override
com.sun.glass.ui.monocle back to summary

pack-priv Class X.XEvent

extends Structure
Class Inheritance
Known Direct Subclasses
com.sun.glass.ui.monocle.X.XButtonEvent, com.sun.glass.ui.monocle.X.XMotionEvent, com.sun.glass.ui.monocle.X.XClientMessageEvent

XEvent wraps the C structure of the same name, defined in Xlib.h

Field Summary

Inherited from com.sun.glass.ui.monocle.C.Structure:
bp

Constructor Summary

AccessConstructor and Description
pack-priv
XEvent(long p)

pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static native int
getType(long p)

pack-priv static native long
getWindow(long p)

pack-priv static native void
setWindow(long p, long window)

pack-priv native int
sizeof()

Implements abstract com.sun.glass.ui.monocle.C.Structure.sizeof.

The size of the C struct in bytes.

Constructor Detail

XEventback to summary
pack-priv XEvent(long p)
XEventback to summary
pack-priv XEvent()

Method Detail

getTypeback to summary
pack-priv static native int getType(long p)
getWindowback to summary
pack-priv static native long getWindow(long p)
setWindowback to summary
pack-priv static native void setWindow(long p, long window)
sizeofback to summary
pack-priv native int sizeof()

Implements abstract com.sun.glass.ui.monocle.C.Structure.sizeof.

Doc from com.sun.glass.ui.monocle.C.Structure.sizeof.

The size of the C struct in bytes. Must be overridden by subclasses.

Annotations
@Override
com.sun.glass.ui.monocle back to summary

pack-priv Class X.XMotionEvent

extends XEvent
Class Inheritance

XMotionEvent wraps the C structure of the same name, defined in Xlib.h

Constructor Summary

AccessConstructor and Description
pack-priv
XMotionEvent(X.XEvent event)

Creates an XMotionEvent from an existing XEvent

Method Summary

Modifier and TypeMethod and Description
pack-priv static native int
getX(long p)

pack-priv static native int
getY(long p)

Inherited from com.sun.glass.ui.monocle.X.XEvent:
getTypegetWindowsetWindowsizeof

Constructor Detail

XMotionEventback to summary
pack-priv XMotionEvent(X.XEvent event)

Creates an XMotionEvent from an existing XEvent

Method Detail

getXback to summary
pack-priv static native int getX(long p)
getYback to summary
pack-priv static native int getY(long p)
com.sun.glass.ui.monocle back to summary

pack-priv Class X.XSetWindowAttributes

extends Structure
Class Inheritance

XSetWindowAttributes wraps the C structure of the same name, defined in Xlib.h

Field Summary

Inherited from com.sun.glass.ui.monocle.C.Structure:
bp

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static native void
setCursor(long p, long cursor)

pack-priv static native void
setEventMask(long p, long mask)

pack-priv static native void
setOverrideRedirect(long p, boolean override)

pack-priv native int
sizeof()

Implements abstract com.sun.glass.ui.monocle.C.Structure.sizeof.

The size of the C struct in bytes.

Constructor Detail

XSetWindowAttributesback to summary
pack-priv XSetWindowAttributes()

Method Detail

setCursorback to summary
pack-priv static native void setCursor(long p, long cursor)
setEventMaskback to summary
pack-priv static native void setEventMask(long p, long mask)
setOverrideRedirectback to summary
pack-priv static native void setOverrideRedirect(long p, boolean override)
sizeofback to summary
pack-priv native int sizeof()

Implements abstract com.sun.glass.ui.monocle.C.Structure.sizeof.

Doc from com.sun.glass.ui.monocle.C.Structure.sizeof.

The size of the C struct in bytes. Must be overridden by subclasses.

Annotations
@Override