Package org.lwjgl.system.jawt
Class JAWTX11DrawingSurfaceInfo
- All Implemented Interfaces:
Pointer
X11-specific declarations for AWT native interface.
Layout
struct JAWT_X11DrawingSurfaceInfo {
Drawable drawable()
;
Display * display()
;
VisualID visualID()
;
Colormap colormapID()
;
int depth()
;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionJAWTX11DrawingSurfaceInfo
(ByteBuffer container) Creates aJAWTX11DrawingSurfaceInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionlong
the colormapstatic JAWTX11DrawingSurfaceInfo
create
(long address) Returns a newJAWTX11DrawingSurfaceInfo
instance for the specified memory address.create
(long address, int capacity) Create aJAWTX11DrawingSurfaceInfo.Buffer
instance at the specified memory.static JAWTX11DrawingSurfaceInfo
createSafe
(long address) createSafe
(long address, int capacity) int
depth()
the depthlong
display()
the connection to the X serverlong
drawable()
the drawablestatic long
ncolormapID
(long struct) Unsafe version ofcolormapID()
.static int
ndepth
(long struct) Unsafe version ofdepth()
.static long
ndisplay
(long struct) Unsafe version ofdisplay()
.static long
ndrawable
(long struct) Unsafe version ofdrawable()
.static long
nvisualID
(long struct) Unsafe version ofvisualID()
.int
sizeof()
Returnssizeof(struct)
.long
visualID()
the VisualIDMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
DRAWABLE
public static final int DRAWABLEThe struct member offsets. -
DISPLAY
public static final int DISPLAYThe struct member offsets. -
VISUALID
public static final int VISUALIDThe struct member offsets. -
COLORMAPID
public static final int COLORMAPIDThe struct member offsets. -
DEPTH
public static final int DEPTHThe struct member offsets.
-
-
Constructor Details
-
JAWTX11DrawingSurfaceInfo
Creates aJAWTX11DrawingSurfaceInfo
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<JAWTX11DrawingSurfaceInfo>
-
drawable
public long drawable()the drawable -
display
public long display()the connection to the X server -
visualID
public long visualID()the VisualID -
colormapID
public long colormapID()the colormap -
depth
public int depth()the depth -
create
Returns a newJAWTX11DrawingSurfaceInfo
instance for the specified memory address. -
createSafe
-
create
Create aJAWTX11DrawingSurfaceInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
ndrawable
public static long ndrawable(long struct) Unsafe version ofdrawable()
. -
ndisplay
public static long ndisplay(long struct) Unsafe version ofdisplay()
. -
nvisualID
public static long nvisualID(long struct) Unsafe version ofvisualID()
. -
ncolormapID
public static long ncolormapID(long struct) Unsafe version ofcolormapID()
. -
ndepth
public static int ndepth(long struct) Unsafe version ofdepth()
.
-