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

public Class JAWTX11DrawingSurfaceInfo

extends Struct<JAWTX11DrawingSurfaceInfo>
Class Inheritance
Annotations
@NativeType:struct JAWT_X11DrawingSurfaceInfo
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

X11-specific declarations for AWT native interface.

Layout


struct JAWT_X11DrawingSurfaceInfo {
    Drawable drawable;
    Display * display;
    VisualID visualID;
    Colormap colormapID;
    int depth;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
COLORMAPID

The struct member offsets.

public static final int
DEPTH

The struct member offsets.

public static final int
DISPLAY

The struct member offsets.

public static final int
DRAWABLE

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
VISUALID

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
JAWTX11DrawingSurfaceInfo(long address, ByteBuffer container)

public
JAWTX11DrawingSurfaceInfo(ByteBuffer container)

Creates a JAWTX11DrawingSurfaceInfo instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public long
colormapID()

the colormap

protected JAWTX11DrawingSurfaceInfo
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static JAWTX11DrawingSurfaceInfo
create(long address)

Returns a new JAWTX11DrawingSurfaceInfo instance for the specified memory address.

public static JAWTX11DrawingSurfaceInfo.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a JAWTX11DrawingSurfaceInfo.Buffer instance at the specified memory.

public static JAWTX11DrawingSurfaceInfo
createSafe(long address)

Like create, but returns null if address is NULL.

public static JAWTX11DrawingSurfaceInfo.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int
depth()

the depth

public long
display()

the connection to the X server

public long
drawable()

the drawable

public static long
ncolormapID(long struct)

Unsafe version of colormapID.

public static int
ndepth(long struct)

Unsafe version of depth.

public static long
ndisplay(long struct)

Unsafe version of display.

public static long
ndrawable(long struct)

Unsafe version of drawable.

public static long
nvisualID(long struct)

Unsafe version of visualID.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public long
visualID()

the VisualID

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

COLORMAPIDback to summary
public static final int COLORMAPID

The struct member offsets.

DEPTHback to summary
public static final int DEPTH

The struct member offsets.

DISPLAYback to summary
public static final int DISPLAY

The struct member offsets.

DRAWABLEback to summary
public static final int DRAWABLE

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

VISUALIDback to summary
public static final int VISUALID

The struct member offsets.

Constructor Detail

JAWTX11DrawingSurfaceInfoback to summary
protected JAWTX11DrawingSurfaceInfo(long address, ByteBuffer container)
JAWTX11DrawingSurfaceInfoback to summary
public JAWTX11DrawingSurfaceInfo(ByteBuffer container)

Creates a JAWTX11DrawingSurfaceInfo instance at the current position of the specified ByteBuffer 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 Detail

colormapIDback to summary
public long colormapID()

the colormap

Annotations
@NativeType:Colormap
createback to summary
protected JAWTX11DrawingSurfaceInfo create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static JAWTX11DrawingSurfaceInfo create(long address)

Returns a new JAWTX11DrawingSurfaceInfo instance for the specified memory address.

createback to summary
public static JAWTX11DrawingSurfaceInfo.Buffer create(long address, int capacity)

Create a JAWTX11DrawingSurfaceInfo.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static JAWTX11DrawingSurfaceInfo createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static JAWTX11DrawingSurfaceInfo.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
depthback to summary
public int depth()

the depth

displayback to summary
public long display()

the connection to the X server

Annotations
@NativeType:Display *
drawableback to summary
public long drawable()

the drawable

Annotations
@NativeType:Drawable
ncolormapIDback to summary
public static long ncolormapID(long struct)

Unsafe version of colormapID.

ndepthback to summary
public static int ndepth(long struct)

Unsafe version of depth.

ndisplayback to summary
public static long ndisplay(long struct)

Unsafe version of display.

ndrawableback to summary
public static long ndrawable(long struct)

Unsafe version of drawable.

nvisualIDback to summary
public static long nvisualID(long struct)

Unsafe version of visualID.

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
visualIDback to summary
public long visualID()

the VisualID

Annotations
@NativeType:VisualID
org.lwjgl.system.jawt back to summary

public Class JAWTX11DrawingSurfaceInfo.Buffer

extends StructBuffer<JAWTX11DrawingSurfaceInfo, JAWTX11DrawingSurfaceInfo.Buffer>
Class Inheritance

An array of JAWTX11DrawingSurfaceInfo structs.

Field Summary

Modifier and TypeField and Description
private static final JAWTX11DrawingSurfaceInfo

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new JAWTX11DrawingSurfaceInfo.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

the value of the JAWTX11DrawingSurfaceInfo#colormapID field.
colormapID
()

public int

Returns:

the value of the JAWTX11DrawingSurfaceInfo#depth field.
depth
()

public long

Returns:

the value of the JAWTX11DrawingSurfaceInfo#display field.
display
()

public long

Returns:

the value of the JAWTX11DrawingSurfaceInfo#drawable field.
drawable
()

protected JAWTX11DrawingSurfaceInfo
protected JAWTX11DrawingSurfaceInfo.Buffer
public long

Returns:

the value of the JAWTX11DrawingSurfaceInfo#visualID field.
visualID
()

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final JAWTX11DrawingSurfaceInfo ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new JAWTX11DrawingSurfaceInfo.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by JAWTX11DrawingSurfaceInfo#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

colormapIDback to summary
public long colormapID()
Returns:long

the value of the JAWTX11DrawingSurfaceInfo#colormapID field.

Annotations
@NativeType:Colormap
depthback to summary
public int depth()
Returns:int

the value of the JAWTX11DrawingSurfaceInfo#depth field.

displayback to summary
public long display()
Returns:long

the value of the JAWTX11DrawingSurfaceInfo#display field.

Annotations
@NativeType:Display *
drawableback to summary
public long drawable()
Returns:long

the value of the JAWTX11DrawingSurfaceInfo#drawable field.

Annotations
@NativeType:Drawable
getElementFactoryback to summary
protected JAWTX11DrawingSurfaceInfo getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
selfback to summary
protected JAWTX11DrawingSurfaceInfo.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
visualIDback to summary
public long visualID()
Returns:long

the value of the JAWTX11DrawingSurfaceInfo#visualID field.

Annotations
@NativeType:VisualID