Package org.lwjgl.system.jawt
Class JAWTDrawingSurface
- All Implemented Interfaces:
Pointer
struct JAWT_DrawingSurface {
JNIEnv * env;
jobject target;
void * Lock;
void * GetDrawingSurfaceInfo;
void * FreeDrawingSurfaceInfo;
void * Unlock;
}
-
Nested Class Summary
Nested ClassesNested 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
FieldsModifier 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 size in bytes.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
ConstructorsConstructorDescriptionJAWTDrawingSurface
(ByteBuffer container) Creates aJAWTDrawingSurface
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic JAWTDrawingSurface
create
(long address) Returns a newJAWTDrawingSurface
instance for the specified memory address.static JAWTDrawingSurface.Buffer
create
(long address, int capacity) Create aJAWTDrawingSurface.Buffer
instance at the specified memory.static @Nullable JAWTDrawingSurface
createSafe
(long address) static @Nullable JAWTDrawingSurface.Buffer
createSafe
(long address, int capacity) long
env()
long
long
long
Lock()
static long
nenv
(long struct) Unsafe version ofenv()
.static long
nFreeDrawingSurfaceInfo
(long struct) Unsafe version ofFreeDrawingSurfaceInfo()
.static long
nGetDrawingSurfaceInfo
(long struct) Unsafe version ofGetDrawingSurfaceInfo()
.static long
nLock
(long struct) Unsafe version ofLock()
.static long
ntarget
(long struct) Unsafe version oftarget()
.static long
nUnlock
(long struct) Unsafe version ofUnlock()
.int
sizeof()
Returnssizeof(struct)
.long
target()
long
Unlock()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
ENV
public static final int ENVThe struct member offsets. -
TARGET
public static final int TARGETThe struct member offsets. -
LOCK
public static final int LOCKThe struct member offsets. -
GETDRAWINGSURFACEINFO
public static final int GETDRAWINGSURFACEINFOThe struct member offsets. -
FREEDRAWINGSURFACEINFO
public static final int FREEDRAWINGSURFACEINFOThe struct member offsets. -
UNLOCK
public static final int UNLOCKThe struct member offsets.
-
-
Constructor Details
-
JAWTDrawingSurface
Creates aJAWTDrawingSurface
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)
.- Specified by:
sizeof
in classStruct<JAWTDrawingSurface>
-
env
public long env()- Returns:
- the value of the
env
field.
-
target
public long target()- Returns:
- the value of the
target
field.
-
Lock
public long Lock()- Returns:
- the value of the
Lock
field.
-
GetDrawingSurfaceInfo
public long GetDrawingSurfaceInfo()- Returns:
- the value of the
GetDrawingSurfaceInfo
field.
-
FreeDrawingSurfaceInfo
public long FreeDrawingSurfaceInfo()- Returns:
- the value of the
FreeDrawingSurfaceInfo
field.
-
Unlock
public long Unlock()- Returns:
- the value of the
Unlock
field.
-
create
Returns a newJAWTDrawingSurface
instance for the specified memory address. -
createSafe
-
create
Create aJAWTDrawingSurface.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nenv
public static long nenv(long struct) Unsafe version ofenv()
. -
ntarget
public static long ntarget(long struct) Unsafe version oftarget()
. -
nLock
public static long nLock(long struct) Unsafe version ofLock()
. -
nGetDrawingSurfaceInfo
public static long nGetDrawingSurfaceInfo(long struct) Unsafe version ofGetDrawingSurfaceInfo()
. -
nFreeDrawingSurfaceInfo
public static long nFreeDrawingSurfaceInfo(long struct) Unsafe version ofFreeDrawingSurfaceInfo()
. -
nUnlock
public static long nUnlock(long struct) Unsafe version ofUnlock()
.
-