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

public Class JAWT

extends Struct<JAWT>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure for containing native AWT functions.

Layout


struct JAWT {
    jint version;
    void * GetDrawingSurface;
    void * FreeDrawingSurface;
    void * Lock;
    void * Unlock;
    void * GetComponent;
    void * CreateEmbeddedFrame;
    void * SetBounds;
    void * SynthesizeWindowActivation;
}

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
CREATEEMBEDDEDFRAME

The struct member offsets.

public static final int
FREEDRAWINGSURFACE

The struct member offsets.

public static final int
GETCOMPONENT

The struct member offsets.

public static final int
GETDRAWINGSURFACE

The struct member offsets.

public static final int
LOCK

The struct member offsets.

public static final int
SETBOUNDS

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SYNTHESIZEWINDOWACTIVATION

The struct member offsets.

public static final int
UNLOCK

The struct member offsets.

public static final int
VERSION

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
JAWT(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public static JAWT
calloc()

Returns a new JAWT instance allocated with memCalloc.

public static JAWT
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new JAWT instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static JAWT
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static JAWT
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected JAWT
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 JAWT
create()

Returns a new JAWT instance allocated with BufferUtils.

public static JAWT
create(long address)

Returns a new JAWT instance for the specified memory address.

public long

Returns:

the value of the CreateEmbeddedFrame field.
CreateEmbeddedFrame
()

public static JAWT
createSafe(long address)

Like create, but returns null if address is NULL.

public long

Returns:

the value of the FreeDrawingSurface field.
FreeDrawingSurface
()

public long

Returns:

the value of the GetComponent field.
GetComponent
()

public long

Returns:

the value of the GetDrawingSurface field.
GetDrawingSurface
()

public long

Returns:

the value of the Lock field.
Lock
()

public static JAWT
malloc()

Returns a new JAWT instance allocated with memAlloc.

public static JAWT
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new JAWT instance allocated on the specified MemoryStack.

public static JAWT
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static JAWT
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static long
nCreateEmbeddedFrame(long struct)

Unsafe version of CreateEmbeddedFrame.

public static long
nFreeDrawingSurface(long struct)

Unsafe version of FreeDrawingSurface.

public static long
nGetComponent(long struct)

Unsafe version of GetComponent.

public static long
nGetDrawingSurface(long struct)

Unsafe version of GetDrawingSurface.

public static long
nLock(long struct)

Unsafe version of Lock.

public static long
nSetBounds(long struct)

Unsafe version of SetBounds.

public static long
public static long
nUnlock(long struct)

Unsafe version of Unlock.

public static int
nversion(long struct)

Unsafe version of version.

public static void
nversion(long struct, int value)

Unsafe version of version.

public JAWT

Returns:

this struct
set
(JAWT
the source struct
src
)

Copies the specified struct data to this struct.

public long

Returns:

the value of the SetBounds field.
SetBounds
()

public int
sizeof()

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

Returns sizeof(struct).
public long

Returns:

the value of the SynthesizeWindowActivation field.
SynthesizeWindowActivation
()

public long

Returns:

the value of the Unlock field.
Unlock
()

public int
version()

Version of this structure.

public JAWT
version(int value)

Sets the specified value to the version field.

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.

CREATEEMBEDDEDFRAMEback to summary
public static final int CREATEEMBEDDEDFRAME

The struct member offsets.

FREEDRAWINGSURFACEback to summary
public static final int FREEDRAWINGSURFACE

The struct member offsets.

GETCOMPONENTback to summary
public static final int GETCOMPONENT

The struct member offsets.

GETDRAWINGSURFACEback to summary
public static final int GETDRAWINGSURFACE

The struct member offsets.

LOCKback to summary
public static final int LOCK

The struct member offsets.

SETBOUNDSback to summary
public static final int SETBOUNDS

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

SYNTHESIZEWINDOWACTIVATIONback to summary
public static final int SYNTHESIZEWINDOWACTIVATION

The struct member offsets.

UNLOCKback to summary
public static final int UNLOCK

The struct member offsets.

VERSIONback to summary
public static final int VERSION

The struct member offsets.

Constructor Detail

JAWTback to summary
protected JAWT(long address, ByteBuffer container)
JAWTback to summary
public JAWT(ByteBuffer container)

Creates a JAWT 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

callocback to summary
public static JAWT calloc()

Returns a new JAWT instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static JAWT calloc(MemoryStack stack)

Returns a new JAWT instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocStackback to summary
public static JAWT callocStack()

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static JAWT callocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
createback to summary
protected JAWT 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 JAWT create()

Returns a new JAWT instance allocated with BufferUtils.

createback to summary
public static JAWT create(long address)

Returns a new JAWT instance for the specified memory address.

CreateEmbeddedFrameback to summary
public long CreateEmbeddedFrame()
Returns:long

the value of the CreateEmbeddedFrame field.

Annotations
@NativeType:void *
createSafeback to summary
public static JAWT createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
FreeDrawingSurfaceback to summary
public long FreeDrawingSurface()
Returns:long

the value of the FreeDrawingSurface field.

Annotations
@NativeType:void *
GetComponentback to summary
public long GetComponent()
Returns:long

the value of the GetComponent field.

Annotations
@NativeType:void *
GetDrawingSurfaceback to summary
public long GetDrawingSurface()
Returns:long

the value of the GetDrawingSurface field.

Annotations
@NativeType:void *
Lockback to summary
public long Lock()
Returns:long

the value of the Lock field.

Annotations
@NativeType:void *
mallocback to summary
public static JAWT malloc()

Returns a new JAWT instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static JAWT malloc(MemoryStack stack)

Returns a new JAWT instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocStackback to summary
public static JAWT mallocStack()

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static JAWT mallocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
nCreateEmbeddedFrameback to summary
public static long nCreateEmbeddedFrame(long struct)

Unsafe version of CreateEmbeddedFrame.

nFreeDrawingSurfaceback to summary
public static long nFreeDrawingSurface(long struct)

Unsafe version of FreeDrawingSurface.

nGetComponentback to summary
public static long nGetComponent(long struct)

Unsafe version of GetComponent.

nGetDrawingSurfaceback to summary
public static long nGetDrawingSurface(long struct)

Unsafe version of GetDrawingSurface.

nLockback to summary
public static long nLock(long struct)

Unsafe version of Lock.

nSetBoundsback to summary
public static long nSetBounds(long struct)

Unsafe version of SetBounds.

nSynthesizeWindowActivationback to summary
public static long nSynthesizeWindowActivation(long struct)

Unsafe version of SynthesizeWindowActivation.

nUnlockback to summary
public static long nUnlock(long struct)

Unsafe version of Unlock.

nversionback to summary
public static int nversion(long struct)

Unsafe version of version.

nversionback to summary
public static void nversion(long struct, int value)

Unsafe version of version.

setback to summary
public JAWT set(JAWT src)

Copies the specified struct data to this struct.

Parameters
src:JAWT

the source struct

Returns:JAWT

this struct

SetBoundsback to summary
public long SetBounds()
Returns:long

the value of the SetBounds field.

Annotations
@NativeType:void *
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
SynthesizeWindowActivationback to summary
public long SynthesizeWindowActivation()
Returns:long

the value of the SynthesizeWindowActivation field.

Annotations
@NativeType:void *
Unlockback to summary
public long Unlock()
Returns:long

the value of the Unlock field.

Annotations
@NativeType:void *
versionback to summary
public int version()

Version of this structure. This must always be set before calling JAWT_GetAWT()

Annotations
@NativeType:jint
versionback to summary
public JAWT version(int value)

Sets the specified value to the version field.