Package org.lwjgl.system.jawt
Class JAWT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.jawt.JAWT
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class JAWT extends Struct
Structure for containing native AWT functions.Member documentation
version
– Version of this structure. This must always be set before calling JAWT_GetAWT()
Layout
struct JAWT { jint version; void * GetDrawingSurface; void * FreeDrawingSurface; void * Lock; void * Unlock; void * GetComponent; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
JAWT.Buffer
An array ofJAWT
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static JAWT
calloc()
static JAWT.Buffer
calloc(int capacity)
Returns a newJAWT.Buffer
instance allocated withmemCalloc
.static JAWT
callocStack()
Returns a newJAWT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static JAWT.Buffer
callocStack(int capacity)
Returns a newJAWT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static JAWT.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newJAWT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static JAWT
callocStack(MemoryStack stack)
Returns a newJAWT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static JAWT
create()
Returns a newJAWT
instance allocated withBufferUtils
.static JAWT.Buffer
create(int capacity)
Returns a newJAWT.Buffer
instance allocated withBufferUtils
.static JAWT
create(long address)
static JAWT.Buffer
create(long address, int capacity)
Create aJAWT.Buffer
instance at the specified memory.long
FreeDrawingSurface()
Returns the value of theFreeDrawingSurface
field.JAWT
FreeDrawingSurface(long value)
Sets the specified value to theFreeDrawingSurface
field.long
GetComponent()
Returns the value of theGetComponent
field.JAWT
GetComponent(long value)
Sets the specified value to theGetComponent
field.long
GetDrawingSurface()
Returns the value of theGetDrawingSurface
field.JAWT
GetDrawingSurface(long value)
Sets the specified value to theGetDrawingSurface
field.long
Lock()
Returns the value of theLock
field.JAWT
Lock(long value)
Sets the specified value to theLock
field.static JAWT
malloc()
static JAWT.Buffer
malloc(int capacity)
Returns a newJAWT.Buffer
instance allocated withmemAlloc
.static JAWT
mallocStack()
Returns a newJAWT
instance allocated on the thread-localMemoryStack
.static JAWT.Buffer
mallocStack(int capacity)
Returns a newJAWT.Buffer
instance allocated on the thread-localMemoryStack
.static JAWT.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newJAWT.Buffer
instance allocated on the specifiedMemoryStack
.static JAWT
mallocStack(MemoryStack stack)
Returns a newJAWT
instance allocated on the specifiedMemoryStack
.JAWT
nset(long struct)
Unsafe version ofset
.JAWT
set(int version, long GetDrawingSurface, long FreeDrawingSurface, long Lock, long Unlock, long GetComponent)
Initializes this struct with the specified values.JAWT
set(JAWT src)
Copies the specified struct data to this struct.int
sizeof()
Returns thesizeof(struct)
.long
Unlock()
Returns the value of theUnlock
field.JAWT
Unlock(long value)
Sets the specified value to theUnlock
field.int
version()
Returns the value of theversion
field.JAWT
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
-
-
-
-
Constructor Detail
-
JAWT
public JAWT(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
Description copied from class:Struct
Returns thesizeof(struct)
.
-
version
public int version()
Returns the value of theversion
field.
-
GetDrawingSurface
public long GetDrawingSurface()
Returns the value of theGetDrawingSurface
field.
-
FreeDrawingSurface
public long FreeDrawingSurface()
Returns the value of theFreeDrawingSurface
field.
-
Lock
public long Lock()
Returns the value of theLock
field.
-
Unlock
public long Unlock()
Returns the value of theUnlock
field.
-
GetComponent
public long GetComponent()
Returns the value of theGetComponent
field.
-
version
public JAWT version(int value)
Sets the specified value to theversion
field.
-
GetDrawingSurface
public JAWT GetDrawingSurface(long value)
Sets the specified value to theGetDrawingSurface
field.
-
FreeDrawingSurface
public JAWT FreeDrawingSurface(long value)
Sets the specified value to theFreeDrawingSurface
field.
-
Lock
public JAWT Lock(long value)
Sets the specified value to theLock
field.
-
Unlock
public JAWT Unlock(long value)
Sets the specified value to theUnlock
field.
-
GetComponent
public JAWT GetComponent(long value)
Sets the specified value to theGetComponent
field.
-
set
public JAWT set(int version, long GetDrawingSurface, long FreeDrawingSurface, long Lock, long Unlock, long GetComponent)
Initializes this struct with the specified values.
-
set
public JAWT set(JAWT src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static JAWT malloc()
-
calloc
public static JAWT calloc()
-
create
public static JAWT create()
Returns a newJAWT
instance allocated withBufferUtils
.
-
create
public static JAWT create(long address)
-
malloc
public static JAWT.Buffer malloc(int capacity)
Returns a newJAWT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static JAWT.Buffer calloc(int capacity)
Returns a newJAWT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static JAWT.Buffer create(int capacity)
Returns a newJAWT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static JAWT.Buffer create(long address, int capacity)
Create aJAWT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
mallocStack
public static JAWT mallocStack()
Returns a newJAWT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static JAWT callocStack()
Returns a newJAWT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static JAWT mallocStack(MemoryStack stack)
Returns a newJAWT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static JAWT callocStack(MemoryStack stack)
Returns a newJAWT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static JAWT.Buffer mallocStack(int capacity)
Returns a newJAWT.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static JAWT.Buffer callocStack(int capacity)
Returns a newJAWT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static JAWT.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newJAWT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static JAWT.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newJAWT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-