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 classJAWT.BufferAn array ofJAWTstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe 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 JAWTcalloc()static JAWT.Buffercalloc(int capacity)Returns a newJAWT.Bufferinstance allocated withmemCalloc.static JAWTcallocStack()Returns a newJAWTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static JAWT.BuffercallocStack(int capacity)Returns a newJAWT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static JAWT.BuffercallocStack(int capacity, MemoryStack stack)Returns a newJAWT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static JAWTcallocStack(MemoryStack stack)Returns a newJAWTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static JAWTcreate()Returns a newJAWTinstance allocated withBufferUtils.static JAWT.Buffercreate(int capacity)Returns a newJAWT.Bufferinstance allocated withBufferUtils.static JAWTcreate(long address)static JAWT.Buffercreate(long address, int capacity)Create aJAWT.Bufferinstance at the specified memory.longFreeDrawingSurface()Returns the value of theFreeDrawingSurfacefield.JAWTFreeDrawingSurface(long value)Sets the specified value to theFreeDrawingSurfacefield.longGetComponent()Returns the value of theGetComponentfield.JAWTGetComponent(long value)Sets the specified value to theGetComponentfield.longGetDrawingSurface()Returns the value of theGetDrawingSurfacefield.JAWTGetDrawingSurface(long value)Sets the specified value to theGetDrawingSurfacefield.longLock()Returns the value of theLockfield.JAWTLock(long value)Sets the specified value to theLockfield.static JAWTmalloc()static JAWT.Buffermalloc(int capacity)Returns a newJAWT.Bufferinstance allocated withmemAlloc.static JAWTmallocStack()Returns a newJAWTinstance allocated on the thread-localMemoryStack.static JAWT.BuffermallocStack(int capacity)Returns a newJAWT.Bufferinstance allocated on the thread-localMemoryStack.static JAWT.BuffermallocStack(int capacity, MemoryStack stack)Returns a newJAWT.Bufferinstance allocated on the specifiedMemoryStack.static JAWTmallocStack(MemoryStack stack)Returns a newJAWTinstance allocated on the specifiedMemoryStack.JAWTnset(long struct)Unsafe version ofset.JAWTset(int version, long GetDrawingSurface, long FreeDrawingSurface, long Lock, long Unlock, long GetComponent)Initializes this struct with the specified values.JAWTset(JAWT src)Copies the specified struct data to this struct.intsizeof()Returns thesizeof(struct).longUnlock()Returns the value of theUnlockfield.JAWTUnlock(long value)Sets the specified value to theUnlockfield.intversion()Returns the value of theversionfield.JAWTversion(int value)Sets the specified value to theversionfield.-
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 aJAWTinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturns thesizeof(struct).
-
version
public int version()
Returns the value of theversionfield.
-
GetDrawingSurface
public long GetDrawingSurface()
Returns the value of theGetDrawingSurfacefield.
-
FreeDrawingSurface
public long FreeDrawingSurface()
Returns the value of theFreeDrawingSurfacefield.
-
Lock
public long Lock()
Returns the value of theLockfield.
-
Unlock
public long Unlock()
Returns the value of theUnlockfield.
-
GetComponent
public long GetComponent()
Returns the value of theGetComponentfield.
-
version
public JAWT version(int value)
Sets the specified value to theversionfield.
-
GetDrawingSurface
public JAWT GetDrawingSurface(long value)
Sets the specified value to theGetDrawingSurfacefield.
-
FreeDrawingSurface
public JAWT FreeDrawingSurface(long value)
Sets the specified value to theFreeDrawingSurfacefield.
-
Lock
public JAWT Lock(long value)
Sets the specified value to theLockfield.
-
Unlock
public JAWT Unlock(long value)
Sets the specified value to theUnlockfield.
-
GetComponent
public JAWT GetComponent(long value)
Sets the specified value to theGetComponentfield.
-
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 newJAWTinstance allocated withBufferUtils.
-
create
public static JAWT create(long address)
-
malloc
public static JAWT.Buffer malloc(int capacity)
Returns a newJAWT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static JAWT.Buffer calloc(int capacity)
Returns a newJAWT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static JAWT.Buffer create(int capacity)
Returns a newJAWT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static JAWT.Buffer create(long address, int capacity)
Create aJAWT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static JAWT mallocStack()
Returns a newJAWTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static JAWT callocStack()
Returns a newJAWTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static JAWT mallocStack(MemoryStack stack)
Returns a newJAWTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static JAWT callocStack(MemoryStack stack)
Returns a newJAWTinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static JAWT.Buffer callocStack(int capacity)
Returns a newJAWT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static JAWT.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newJAWT.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-