Package org.lwjgl.system.jawt
Class JAWT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct JAWT {
jint version;
void * GetDrawingSurface;
void * FreeDrawingSurface;
void * Lock;
void * Unlock;
void * GetComponent;
void * CreateEmbeddedFrame;
void * SetBounds;
void * SynthesizeWindowActivation;
}-
Nested Class Summary
Nested 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 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.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
ConstructorsConstructorDescriptionJAWT(ByteBuffer container) Creates aJAWTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic JAWTcalloc()Returns a newJAWTinstance allocated withmemCalloc.static JAWTcalloc(MemoryStack stack) Returns a newJAWTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static JAWTDeprecated.static JAWTcallocStack(MemoryStack stack) Deprecated.static JAWTcreate()Returns a newJAWTinstance allocated withBufferUtils.static JAWTcreate(long address) Returns a newJAWTinstance for the specified memory address.longstatic @Nullable JAWTcreateSafe(long address) longlonglonglongLock()static JAWTmalloc()Returns a newJAWTinstance allocated withmemAlloc.static JAWTmalloc(MemoryStack stack) Returns a newJAWTinstance allocated on the specifiedMemoryStack.static JAWTDeprecated.static JAWTmallocStack(MemoryStack stack) Deprecated.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.Copies the specified struct data to this struct.longintsizeof()Returnssizeof(struct).longlongUnlock()intversion()version(int value) Sets the specified value to theversionfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
VERSION
public static final int VERSIONThe struct member offsets. -
GETDRAWINGSURFACE
public static final int GETDRAWINGSURFACEThe struct member offsets. -
FREEDRAWINGSURFACE
public static final int FREEDRAWINGSURFACEThe struct member offsets. -
LOCK
public static final int LOCKThe struct member offsets. -
UNLOCK
public static final int UNLOCKThe struct member offsets. -
GETCOMPONENT
public static final int GETCOMPONENTThe struct member offsets. -
CREATEEMBEDDEDFRAME
public static final int CREATEEMBEDDEDFRAMEThe struct member offsets. -
SETBOUNDS
public static final int SETBOUNDSThe struct member offsets. -
SYNTHESIZEWINDOWACTIVATION
public static final int SYNTHESIZEWINDOWACTIVATIONThe struct member offsets.
-
-
Constructor Details
-
JAWT
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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct). -
version
public int version()- Returns:
- the value of the
versionfield.
-
GetDrawingSurface
public long GetDrawingSurface()- Returns:
- the value of the
GetDrawingSurfacefield.
-
FreeDrawingSurface
public long FreeDrawingSurface()- Returns:
- the value of the
FreeDrawingSurfacefield.
-
Lock
public long Lock()- Returns:
- the value of the
Lockfield.
-
Unlock
public long Unlock()- Returns:
- the value of the
Unlockfield.
-
GetComponent
public long GetComponent()- Returns:
- the value of the
GetComponentfield.
-
CreateEmbeddedFrame
public long CreateEmbeddedFrame()- Returns:
- the value of the
CreateEmbeddedFramefield.
-
SetBounds
public long SetBounds()- Returns:
- the value of the
SetBoundsfield.
-
SynthesizeWindowActivation
public long SynthesizeWindowActivation()- Returns:
- the value of the
SynthesizeWindowActivationfield.
-
version
Sets the specified value to theversionfield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newJAWTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newJAWTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newJAWTinstance allocated withBufferUtils. -
create
Returns a newJAWTinstance for the specified memory address. -
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
malloc
Returns a newJAWTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
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.
-