Class JAWTDrawingSurface

All Implemented Interfaces:
Pointer

public class JAWTDrawingSurface extends Struct<JAWTDrawingSurface>
Structure 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.

Layout


 struct JAWT_DrawingSurface {
     JNIEnv * env();
     jobject target();
     void * Lock;
     void * GetDrawingSurfaceInfo;
     void * FreeDrawingSurfaceInfo;
     void * Unlock;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int ENV
      The struct member offsets.
    • TARGET

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

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

      public static final int GETDRAWINGSURFACEINFO
      The struct member offsets.
    • FREEDRAWINGSURFACEINFO

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

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

    • JAWTDrawingSurface

      public JAWTDrawingSurface(ByteBuffer container)
      Creates a JAWTDrawingSurface 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<JAWTDrawingSurface>
    • env

      public long 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

      public long target()
      Cached reference to the target object.
    • Lock

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

      public long GetDrawingSurfaceInfo()
      Returns:
      the value of the GetDrawingSurfaceInfo field.
    • FreeDrawingSurfaceInfo

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

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

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

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

      public static JAWTDrawingSurface.Buffer create(long address, int capacity)
      Create a JAWTDrawingSurface.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      @Nullable public static JAWTDrawingSurface.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • nenv

      public static long nenv(long struct)
      Unsafe version of env().
    • ntarget

      public static long ntarget(long struct)
      Unsafe version of target().
    • nLock

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

      public static long nGetDrawingSurfaceInfo(long struct)
      Unsafe version of GetDrawingSurfaceInfo().
    • nFreeDrawingSurfaceInfo

      public static long nFreeDrawingSurfaceInfo(long struct)
      Unsafe version of FreeDrawingSurfaceInfo().
    • nUnlock

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