Class JAWT

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class JAWT extends Struct<JAWT> implements NativeResource
Structure for containing native AWT functions.

Layout


 struct JAWT {
     jint version();
     void * GetDrawingSurface;
     void * FreeDrawingSurface;
     void * Lock;
     void * Unlock;
     void * GetComponent;
     void * CreateEmbeddedFrame;
     void * SetBounds;
     void * SynthesizeWindowActivation;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • VERSION

      public static final int VERSION
      The struct member offsets.
    • GETDRAWINGSURFACE

      public static final int GETDRAWINGSURFACE
      The struct member offsets.
    • FREEDRAWINGSURFACE

      public static final int FREEDRAWINGSURFACE
      The struct member offsets.
    • LOCK

      public static final int LOCK
      The struct member offsets.
    • UNLOCK

      public static final int UNLOCK
      The struct member offsets.
    • GETCOMPONENT

      public static final int GETCOMPONENT
      The struct member offsets.
    • CREATEEMBEDDEDFRAME

      public static final int CREATEEMBEDDEDFRAME
      The struct member offsets.
    • SETBOUNDS

      public static final int SETBOUNDS
      The struct member offsets.
    • SYNTHESIZEWINDOWACTIVATION

      public static final int SYNTHESIZEWINDOWACTIVATION
      The struct member offsets.
  • Constructor Details

    • JAWT

      public JAWT(ByteBuffer container)
      Creates a JAWT instance at the current position of the specified ByteBuffer 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
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<JAWT>
    • version

      public int version()
      Version of this structure. This must always be set before calling JAWT_GetAWT()
    • GetDrawingSurface

      public long GetDrawingSurface()
      Returns:
      the value of the GetDrawingSurface field.
    • FreeDrawingSurface

      public long FreeDrawingSurface()
      Returns:
      the value of the FreeDrawingSurface field.
    • Lock

      public long Lock()
      Returns:
      the value of the Lock field.
    • Unlock

      public long Unlock()
      Returns:
      the value of the Unlock field.
    • GetComponent

      public long GetComponent()
      Returns:
      the value of the GetComponent field.
    • CreateEmbeddedFrame

      public long CreateEmbeddedFrame()
      Returns:
      the value of the CreateEmbeddedFrame field.
    • SetBounds

      public long SetBounds()
      Returns:
      the value of the SetBounds field.
    • SynthesizeWindowActivation

      public long SynthesizeWindowActivation()
      Returns:
      the value of the SynthesizeWindowActivation field.
    • version

      public JAWT version(int value)
      Sets the specified value to the version() field.
    • 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 new JAWT instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static JAWT calloc()
      Returns a new JAWT instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static JAWT create()
      Returns a new JAWT instance allocated with BufferUtils.
    • create

      public static JAWT create(long address)
      Returns a new JAWT instance for the specified memory address.
    • createSafe

      @Nullable public static JAWT createSafe(long address)
      Like create, but returns null if address is NULL.
    • mallocStack

      @Deprecated public static JAWT mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static JAWT callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static JAWT mallocStack(MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static JAWT callocStack(MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • malloc

      public static JAWT malloc(MemoryStack stack)
      Returns a new JAWT instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static JAWT calloc(MemoryStack stack)
      Returns a new JAWT instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • nversion

      public static int nversion(long struct)
      Unsafe version of version().
    • nGetDrawingSurface

      public static long nGetDrawingSurface(long struct)
      Unsafe version of GetDrawingSurface().
    • nFreeDrawingSurface

      public static long nFreeDrawingSurface(long struct)
      Unsafe version of FreeDrawingSurface().
    • nLock

      public static long nLock(long struct)
      Unsafe version of Lock().
    • nUnlock

      public static long nUnlock(long struct)
      Unsafe version of Unlock().
    • nGetComponent

      public static long nGetComponent(long struct)
      Unsafe version of GetComponent().
    • nCreateEmbeddedFrame

      public static long nCreateEmbeddedFrame(long struct)
      Unsafe version of CreateEmbeddedFrame().
    • nSetBounds

      public static long nSetBounds(long struct)
      Unsafe version of SetBounds().
    • nSynthesizeWindowActivation

      public static long nSynthesizeWindowActivation(long struct)
      Unsafe version of SynthesizeWindowActivation().
    • nversion

      public static void nversion(long struct, int value)
      Unsafe version of version.