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:
org.lwjgl.system.Pointer
public class JAWTDrawingSurface extends org.lwjgl.system.StructStructure 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 Description static classJAWTDrawingSurface.BufferAn array ofJAWTDrawingSurfacestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intENV
FREEDRAWINGSURFACEINFO
GETDRAWINGSURFACEINFO
LOCKThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTARGET
UNLOCKThe struct member offsets.
-
Constructor Summary
Constructors Constructor 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 Description static 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 JAWTDrawingSurfacecreateSafe(long address)static JAWTDrawingSurface.BuffercreateSafe(long address, int capacity)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 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()longtarget()Returns the value of thetargetfield.longUnlock()Returns the value of theUnlockfield.
-
-
-
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()
- Specified by:
sizeofin classorg.lwjgl.system.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.
-
create
public static JAWTDrawingSurface create(long address)
Returns a newJAWTDrawingSurfaceinstance for the specified memory address.
-
createSafe
@Nullable public static JAWTDrawingSurface createSafe(long address)
-
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
-
createSafe
@Nullable public static JAWTDrawingSurface.Buffer createSafe(long address, int capacity)
-
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().
-
-