public class JAWTDrawingSurface
extends org.lwjgl.system.Struct
All operations on a JAWT_DrawingSurface MUST be performed from the same thread as the call to GetDrawingSurface.
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.
struct JAWT_DrawingSurface {
JNIEnv * env;
jobject target;
void * Lock;
void * GetDrawingSurfaceInfo;
void * FreeDrawingSurfaceInfo;
void * Unlock;
}| Modifier and Type | Class and Description |
|---|---|
static class |
JAWTDrawingSurface.Buffer
An array of
JAWTDrawingSurface structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ENV
The struct member offsets.
|
static int |
FREEDRAWINGSURFACEINFO
The struct member offsets.
|
static int |
GETDRAWINGSURFACEINFO
The struct member offsets.
|
static int |
LOCK
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TARGET
The struct member offsets.
|
static int |
UNLOCK
The struct member offsets.
|
| Constructor and Description |
|---|
JAWTDrawingSurface(java.nio.ByteBuffer container)
Creates a
JAWTDrawingSurface instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static JAWTDrawingSurface |
create(long address)
Returns a new
JAWTDrawingSurface instance for the specified memory address. |
static JAWTDrawingSurface.Buffer |
create(long address,
int capacity)
Create a
JAWTDrawingSurface.Buffer instance at the specified memory. |
static JAWTDrawingSurface |
createSafe(long address)
|
static JAWTDrawingSurface.Buffer |
createSafe(long address,
int capacity)
|
long |
env()
Returns the value of the
env field. |
long |
FreeDrawingSurfaceInfo()
Returns the value of the
FreeDrawingSurfaceInfo field. |
long |
GetDrawingSurfaceInfo()
Returns the value of the
GetDrawingSurfaceInfo field. |
long |
Lock()
Returns the value of the
Lock field. |
static long |
nenv(long struct)
Unsafe version of
env(). |
static long |
nFreeDrawingSurfaceInfo(long struct)
Unsafe version of
FreeDrawingSurfaceInfo(). |
static long |
nGetDrawingSurfaceInfo(long struct)
Unsafe version of
GetDrawingSurfaceInfo(). |
static long |
nLock(long struct)
Unsafe version of
Lock(). |
static long |
ntarget(long struct)
Unsafe version of
target(). |
static long |
nUnlock(long struct)
Unsafe version of
Unlock(). |
int |
sizeof() |
long |
target()
Returns the value of the
target field. |
long |
Unlock()
Returns the value of the
Unlock field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int ENV
public static final int TARGET
public static final int LOCK
public static final int GETDRAWINGSURFACEINFO
public static final int FREEDRAWINGSURFACEINFO
public static final int UNLOCK
public JAWTDrawingSurface(java.nio.ByteBuffer container)
JAWTDrawingSurface 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic long env()
env field.public long target()
target field.public long Lock()
Lock field.public long GetDrawingSurfaceInfo()
GetDrawingSurfaceInfo field.public long FreeDrawingSurfaceInfo()
FreeDrawingSurfaceInfo field.public long Unlock()
Unlock field.public static JAWTDrawingSurface create(long address)
JAWTDrawingSurface instance for the specified memory address.@Nullable public static JAWTDrawingSurface createSafe(long address)
public static JAWTDrawingSurface.Buffer create(long address, int capacity)
JAWTDrawingSurface.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static JAWTDrawingSurface.Buffer createSafe(long address, int capacity)
public static long nenv(long struct)
env().public static long ntarget(long struct)
target().public static long nLock(long struct)
Lock().public static long nGetDrawingSurfaceInfo(long struct)
GetDrawingSurfaceInfo().public static long nFreeDrawingSurfaceInfo(long struct)
FreeDrawingSurfaceInfo().public static long nUnlock(long struct)
Unlock().Copyright LWJGL. All Rights Reserved. License terms.