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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe 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 aJAWTDrawingSurfaceinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic JAWTDrawingSurfacecreate(long address) Returns a newJAWTDrawingSurfaceinstance for the specified memory address.static JAWTDrawingSurface.Buffercreate(long address, int capacity) Create aJAWTDrawingSurface.Bufferinstance at the specified memory.static @Nullable JAWTDrawingSurfacecreateSafe(long address) static @Nullable JAWTDrawingSurface.BuffercreateSafe(long address, int capacity) longenv()longlonglongLock()static longnenv(long struct) Unsafe version ofenv().static longnFreeDrawingSurfaceInfo(long struct) Unsafe version ofFreeDrawingSurfaceInfo().static longnGetDrawingSurfaceInfo(long struct) Unsafe version ofGetDrawingSurfaceInfo().static longnLock(long struct) Unsafe version ofLock().static longntarget(long struct) Unsafe version oftarget().static longnUnlock(long struct) Unsafe version ofUnlock().intsizeof()Returnssizeof(struct).longtarget()longUnlock()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 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<JAWTDrawingSurface>
-
env
public long env()- Returns:
- the value of the
envfield.
-
target
public long target()- Returns:
- the value of the
targetfield.
-
Lock
public long Lock()- Returns:
- the value of the
Lockfield.
-
GetDrawingSurfaceInfo
public long GetDrawingSurfaceInfo()- Returns:
- the value of the
GetDrawingSurfaceInfofield.
-
FreeDrawingSurfaceInfo
public long FreeDrawingSurfaceInfo()- Returns:
- the value of the
FreeDrawingSurfaceInfofield.
-
Unlock
public long Unlock()- Returns:
- the value of the
Unlockfield.
-
create
Returns a newJAWTDrawingSurfaceinstance for the specified memory address. -
createSafe
-
create
Create aJAWTDrawingSurface.Bufferinstance 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().
-