Package org.lwjgl.system.jawt
Class JAWTDrawingSurface
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.jawt.JAWTDrawingSurface
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class JAWTDrawingSurface extends Struct
Structure for containing the underlying drawing information of a component.All operations on a JAWT_DrawingSurface MUST be performed from the same thread as the call to
GetDrawingSurface.Member documentation
env– Cached reference to the Java environment of the calling thread.If Lock(), Unlock(), GetDrawingSurfaceInfo() or FreeDrawingSurfaceInfo() are called from a different thread, this data member should be set before calling those functions.
target– Cached reference to the target object.
Layout
struct JAWT_DrawingSurface { JNIEnv * env; jobject target; void * Lock; void * GetDrawingSurfaceInfo; void * FreeDrawingSurfaceInfo; void * Unlock; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classJAWTDrawingSurface.BufferAn array ofJAWTDrawingSurfacestructs.-
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
-
-
Constructor Summary
Constructors Constructor and Description JAWTDrawingSurface(java.nio.ByteBuffer container)Creates aJAWTDrawingSurfaceinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static JAWTDrawingSurfacecalloc()Returns a newJAWTDrawingSurfaceinstance allocated withmemCalloc.static JAWTDrawingSurface.Buffercalloc(int capacity)Returns a newJAWTDrawingSurface.Bufferinstance allocated withmemCalloc.static JAWTDrawingSurfacecallocStack()Returns a newJAWTDrawingSurfaceinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static JAWTDrawingSurface.BuffercallocStack(int capacity)Returns a newJAWTDrawingSurface.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static JAWTDrawingSurface.BuffercallocStack(int capacity, MemoryStack stack)Returns a newJAWTDrawingSurface.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static JAWTDrawingSurfacecallocStack(MemoryStack stack)Returns a newJAWTDrawingSurfaceinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static JAWTDrawingSurfacecreate()Returns a newJAWTDrawingSurfaceinstance allocated withBufferUtils.static JAWTDrawingSurface.Buffercreate(int capacity)Returns a newJAWTDrawingSurface.Bufferinstance allocated withBufferUtils.static JAWTDrawingSurfacecreate(long address)Returns a newJAWTDrawingSurfaceinstance for the specified memory address ornullif the address isNULL.static JAWTDrawingSurface.Buffercreate(long address, int capacity)Create aJAWTDrawingSurface.Bufferinstance at the specified memory.longenv()Returns the value of theenvfield.longFreeDrawingSurfaceInfo()Returns the value of theFreeDrawingSurfaceInfofield.longGetDrawingSurfaceInfo()Returns the value of theGetDrawingSurfaceInfofield.longLock()Returns the value of theLockfield.static JAWTDrawingSurfacemalloc()Returns a newJAWTDrawingSurfaceinstance allocated withmemAlloc.static JAWTDrawingSurface.Buffermalloc(int capacity)Returns a newJAWTDrawingSurface.Bufferinstance allocated withmemAlloc.static JAWTDrawingSurfacemallocStack()Returns a newJAWTDrawingSurfaceinstance allocated on the thread-localMemoryStack.static JAWTDrawingSurface.BuffermallocStack(int capacity)Returns a newJAWTDrawingSurface.Bufferinstance allocated on the thread-localMemoryStack.static JAWTDrawingSurface.BuffermallocStack(int capacity, MemoryStack stack)Returns a newJAWTDrawingSurface.Bufferinstance allocated on the specifiedMemoryStack.static JAWTDrawingSurfacemallocStack(MemoryStack stack)Returns a newJAWTDrawingSurfaceinstance allocated on the specifiedMemoryStack.intsizeof()Returns thesizeof(struct).longtarget()Returns the value of thetargetfield.longUnlock()Returns the value of theUnlockfield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
JAWTDrawingSurface
public JAWTDrawingSurface(java.nio.ByteBuffer container)
Creates aJAWTDrawingSurfaceinstance 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).
-
env
public long env()
Returns the value of theenvfield.
-
target
public long target()
Returns the value of thetargetfield.
-
Lock
public long Lock()
Returns the value of theLockfield.
-
GetDrawingSurfaceInfo
public long GetDrawingSurfaceInfo()
Returns the value of theGetDrawingSurfaceInfofield.
-
FreeDrawingSurfaceInfo
public long FreeDrawingSurfaceInfo()
Returns the value of theFreeDrawingSurfaceInfofield.
-
Unlock
public long Unlock()
Returns the value of theUnlockfield.
-
malloc
public static JAWTDrawingSurface malloc()
Returns a newJAWTDrawingSurfaceinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static JAWTDrawingSurface calloc()
Returns a newJAWTDrawingSurfaceinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static JAWTDrawingSurface create()
Returns a newJAWTDrawingSurfaceinstance allocated withBufferUtils.
-
create
public static JAWTDrawingSurface create(long address)
Returns a newJAWTDrawingSurfaceinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static JAWTDrawingSurface.Buffer malloc(int capacity)
Returns a newJAWTDrawingSurface.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static JAWTDrawingSurface.Buffer calloc(int capacity)
Returns a newJAWTDrawingSurface.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static JAWTDrawingSurface.Buffer create(int capacity)
Returns a newJAWTDrawingSurface.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static JAWTDrawingSurface.Buffer create(long address, int capacity)
Create aJAWTDrawingSurface.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static JAWTDrawingSurface mallocStack()
Returns a newJAWTDrawingSurfaceinstance allocated on the thread-localMemoryStack.
-
callocStack
public static JAWTDrawingSurface callocStack()
Returns a newJAWTDrawingSurfaceinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static JAWTDrawingSurface mallocStack(MemoryStack stack)
Returns a newJAWTDrawingSurfaceinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static JAWTDrawingSurface callocStack(MemoryStack stack)
Returns a newJAWTDrawingSurfaceinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static JAWTDrawingSurface.Buffer mallocStack(int capacity)
Returns a newJAWTDrawingSurface.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static JAWTDrawingSurface.Buffer callocStack(int capacity)
Returns a newJAWTDrawingSurface.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static JAWTDrawingSurface.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newJAWTDrawingSurface.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static JAWTDrawingSurface.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newJAWTDrawingSurface.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-