Package org.lwjgl.system.jawt
Class JAWT
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
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;
}
-
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 member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.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
ConstructorDescriptionJAWT
(ByteBuffer container) Creates aJAWT
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic JAWT
calloc()
Returns a newJAWT
instance allocated withmemCalloc
.static JAWT
calloc
(MemoryStack stack) Returns a newJAWT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static JAWT
Deprecated.static JAWT
callocStack
(MemoryStack stack) Deprecated.static JAWT
create()
Returns a newJAWT
instance allocated withBufferUtils
.static JAWT
create
(long address) Returns a newJAWT
instance for the specified memory address.long
static JAWT
createSafe
(long address) long
long
long
long
Lock()
static JAWT
malloc()
Returns a newJAWT
instance allocated withmemAlloc
.static JAWT
malloc
(MemoryStack stack) Returns a newJAWT
instance allocated on the specifiedMemoryStack
.static JAWT
Deprecated.static JAWT
mallocStack
(MemoryStack stack) Deprecated.static long
nCreateEmbeddedFrame
(long struct) Unsafe version ofCreateEmbeddedFrame()
.static long
nFreeDrawingSurface
(long struct) Unsafe version ofFreeDrawingSurface()
.static long
nGetComponent
(long struct) Unsafe version ofGetComponent()
.static long
nGetDrawingSurface
(long struct) Unsafe version ofGetDrawingSurface()
.static long
nLock
(long struct) Unsafe version ofLock()
.static long
nSetBounds
(long struct) Unsafe version ofSetBounds()
.static long
nSynthesizeWindowActivation
(long struct) Unsafe version ofSynthesizeWindowActivation()
.static long
nUnlock
(long struct) Unsafe version ofUnlock()
.static int
nversion
(long struct) Unsafe version ofversion()
.static void
nversion
(long struct, int value) Unsafe version ofversion
.Copies the specified struct data to this struct.long
int
sizeof()
Returnssizeof(struct)
.long
long
Unlock()
int
version()
Version of this structure.version
(int value) Sets the specified value to theversion()
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
VERSION
public static final int VERSIONThe struct member offsets. -
GETDRAWINGSURFACE
public static final int GETDRAWINGSURFACEThe struct member offsets. -
FREEDRAWINGSURFACE
public static final int FREEDRAWINGSURFACEThe struct member offsets. -
LOCK
public static final int LOCKThe struct member offsets. -
UNLOCK
public static final int UNLOCKThe struct member offsets. -
GETCOMPONENT
public static final int GETCOMPONENTThe struct member offsets. -
CREATEEMBEDDEDFRAME
public static final int CREATEEMBEDDEDFRAMEThe struct member offsets. -
SETBOUNDS
public static final int SETBOUNDSThe struct member offsets. -
SYNTHESIZEWINDOWACTIVATION
public static final int SYNTHESIZEWINDOWACTIVATIONThe struct member offsets.
-
-
Constructor Details
-
JAWT
Creates aJAWT
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)
. -
version
public int version()Version of this structure. This must always be set before calling JAWT_GetAWT() -
GetDrawingSurface
public long GetDrawingSurface()- Returns:
- the value of the
GetDrawingSurface
field.
-
FreeDrawingSurface
public long FreeDrawingSurface()- Returns:
- the value of the
FreeDrawingSurface
field.
-
Lock
public long Lock()- Returns:
- the value of the
Lock
field.
-
Unlock
public long Unlock()- Returns:
- the value of the
Unlock
field.
-
GetComponent
public long GetComponent()- Returns:
- the value of the
GetComponent
field.
-
CreateEmbeddedFrame
public long CreateEmbeddedFrame()- Returns:
- the value of the
CreateEmbeddedFrame
field.
-
SetBounds
public long SetBounds()- Returns:
- the value of the
SetBounds
field.
-
SynthesizeWindowActivation
public long SynthesizeWindowActivation()- Returns:
- the value of the
SynthesizeWindowActivation
field.
-
version
Sets the specified value to theversion()
field. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newJAWT
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newJAWT
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newJAWT
instance allocated withBufferUtils
. -
create
Returns a newJAWT
instance for the specified memory address. -
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
malloc
Returns a newJAWT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newJAWT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
nversion
public static int nversion(long struct) Unsafe version ofversion()
. -
nGetDrawingSurface
public static long nGetDrawingSurface(long struct) Unsafe version ofGetDrawingSurface()
. -
nFreeDrawingSurface
public static long nFreeDrawingSurface(long struct) Unsafe version ofFreeDrawingSurface()
. -
nLock
public static long nLock(long struct) Unsafe version ofLock()
. -
nUnlock
public static long nUnlock(long struct) Unsafe version ofUnlock()
. -
nGetComponent
public static long nGetComponent(long struct) Unsafe version ofGetComponent()
. -
nCreateEmbeddedFrame
public static long nCreateEmbeddedFrame(long struct) Unsafe version ofCreateEmbeddedFrame()
. -
nSetBounds
public static long nSetBounds(long struct) Unsafe version ofSetBounds()
. -
nSynthesizeWindowActivation
public static long nSynthesizeWindowActivation(long struct) Unsafe version ofSynthesizeWindowActivation()
. -
nversion
public static void nversion(long struct, int value) Unsafe version ofversion
.
-