Package org.lwjgl.system.jawt
Class JAWT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.jawt.JAWT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class JAWT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure for containing native AWT functions.Member documentation
version– Version of this structure. This must always be set before calling JAWT_GetAWT()
Layout
struct JAWT { jint version; void * GetDrawingSurface; void * FreeDrawingSurface; void * Lock; void * Unlock; void * GetComponent; void * CreateEmbeddedFrame; void * SetBounds; void * SynthesizeWindowActivation; }
-
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCREATEEMBEDDEDFRAME
FREEDRAWINGSURFACE
GETCOMPONENT
GETDRAWINGSURFACE
LOCK
SETBOUNDSThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSYNTHESIZEWINDOWACTIVATION
UNLOCK
VERSIONThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description JAWT(java.nio.ByteBuffer container)Creates aJAWTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JAWTcalloc()Returns a newJAWTinstance allocated withmemCalloc.static JAWTcallocStack()Returns a newJAWTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static JAWTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newJAWTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static JAWTcreate()Returns a newJAWTinstance allocated withBufferUtils.static JAWTcreate(long address)Returns a newJAWTinstance for the specified memory address.longCreateEmbeddedFrame()Returns the value of theCreateEmbeddedFramefield.static JAWTcreateSafe(long address)longFreeDrawingSurface()Returns the value of theFreeDrawingSurfacefield.longGetComponent()Returns the value of theGetComponentfield.longGetDrawingSurface()Returns the value of theGetDrawingSurfacefield.longLock()Returns the value of theLockfield.static JAWTmalloc()Returns a newJAWTinstance allocated withmemAlloc.static JAWTmallocStack()Returns a newJAWTinstance allocated on the thread-localMemoryStack.static JAWTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newJAWTinstance allocated on the specifiedMemoryStack.static longnCreateEmbeddedFrame(long struct)Unsafe version ofCreateEmbeddedFrame().static longnFreeDrawingSurface(long struct)Unsafe version ofFreeDrawingSurface().static longnGetComponent(long struct)Unsafe version ofGetComponent().static longnGetDrawingSurface(long struct)Unsafe version ofGetDrawingSurface().static longnLock(long struct)Unsafe version ofLock().static longnSetBounds(long struct)Unsafe version ofSetBounds().static longnSynthesizeWindowActivation(long struct)Unsafe version ofSynthesizeWindowActivation().static longnUnlock(long struct)Unsafe version ofUnlock().static intnversion(long struct)Unsafe version ofversion().static voidnversion(long struct, int value)Unsafe version ofversion.JAWTset(JAWT src)Copies the specified struct data to this struct.longSetBounds()Returns the value of theSetBoundsfield.intsizeof()longSynthesizeWindowActivation()Returns the value of theSynthesizeWindowActivationfield.longUnlock()Returns the value of theUnlockfield.intversion()Returns the value of theversionfield.JAWTversion(int value)Sets the specified value to theversionfield.
-
-
-
Constructor Detail
-
JAWT
public JAWT(java.nio.ByteBuffer container)
Creates aJAWTinstance 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
-
version
public int version()
Returns the value of theversionfield.
-
GetDrawingSurface
public long GetDrawingSurface()
Returns the value of theGetDrawingSurfacefield.
-
FreeDrawingSurface
public long FreeDrawingSurface()
Returns the value of theFreeDrawingSurfacefield.
-
Lock
public long Lock()
Returns the value of theLockfield.
-
Unlock
public long Unlock()
Returns the value of theUnlockfield.
-
GetComponent
public long GetComponent()
Returns the value of theGetComponentfield.
-
CreateEmbeddedFrame
public long CreateEmbeddedFrame()
Returns the value of theCreateEmbeddedFramefield.
-
SetBounds
public long SetBounds()
Returns the value of theSetBoundsfield.
-
SynthesizeWindowActivation
public long SynthesizeWindowActivation()
Returns the value of theSynthesizeWindowActivationfield.
-
version
public JAWT version(int value)
Sets the specified value to theversionfield.
-
set
public JAWT set(JAWT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static JAWT malloc()
Returns a newJAWTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static JAWT calloc()
Returns a newJAWTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static JAWT create()
Returns a newJAWTinstance allocated withBufferUtils.
-
create
public static JAWT create(long address)
Returns a newJAWTinstance for the specified memory address.
-
createSafe
@Nullable public static JAWT createSafe(long address)
-
mallocStack
public static JAWT mallocStack()
Returns a newJAWTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static JAWT callocStack()
Returns a newJAWTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static JAWT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newJAWTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static JAWT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newJAWTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
nversion
public static int nversion(long struct)
Unsafe version ofversion().
-
nGetDrawingSurface
public static long nGetDrawingSurface(long struct)
Unsafe version ofGetDrawingSurface().
-
nFreeDrawingSurface
public static long nFreeDrawingSurface(long struct)
Unsafe version ofFreeDrawingSurface().
-
nLock
public static long nLock(long struct)
Unsafe version ofLock().
-
nUnlock
public static long nUnlock(long struct)
Unsafe version ofUnlock().
-
nGetComponent
public static long nGetComponent(long struct)
Unsafe version ofGetComponent().
-
nCreateEmbeddedFrame
public static long nCreateEmbeddedFrame(long struct)
Unsafe version ofCreateEmbeddedFrame().
-
nSetBounds
public static long nSetBounds(long struct)
Unsafe version ofSetBounds().
-
nSynthesizeWindowActivation
public static long nSynthesizeWindowActivation(long struct)
Unsafe version ofSynthesizeWindowActivation().
-
nversion
public static void nversion(long struct, int value)Unsafe version ofversion.
-
-