Class JAWTDrawingSurfaceInfo

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<JAWTDrawingSurfaceInfo>
org.lwjgl.system.jawt.JAWTDrawingSurfaceInfo
All Implemented Interfaces:
org.lwjgl.system.Pointer

public class JAWTDrawingSurfaceInfo extends org.lwjgl.system.Struct<JAWTDrawingSurfaceInfo>

Layout


 struct JAWT_DrawingSurfaceInfo {
     void * platformInfo();
     JAWT_DrawingSurface * ds();
     JAWT_Rectangle bounds();
     jint clipSize();
     JAWT_Rectangle * clip();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int PLATFORMINFO
      The struct member offsets.
    • DS

      public static final int DS
      The struct member offsets.
    • BOUNDS

      public static final int BOUNDS
      The struct member offsets.
    • CLIPSIZE

      public static final int CLIPSIZE
      The struct member offsets.
    • CLIP

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

    • JAWTDrawingSurfaceInfo

      public JAWTDrawingSurfaceInfo(ByteBuffer container)
      Creates a JAWTDrawingSurfaceInfo 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()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<JAWTDrawingSurfaceInfo>
    • platformInfo

      public long platformInfo()
      Pointer to the platform-specific information. This can be safely cast to a JAWT_Win32DrawingSurfaceInfo on Windows or a JAWT_X11DrawingSurfaceInfo on Solaris. On Mac OS X this is a pointer to a NSObject that conforms to the JAWT_SurfaceLayers protocol.
    • ds

      public JAWTDrawingSurface ds()
      Cached pointer to the underlying drawing surface.
    • bounds

      public JAWTRectangle bounds()
      Bounding rectangle of the drawing surface.
    • clipSize

      public int clipSize()
      Number of rectangles in the clip.
    • clip

      public JAWTRectangle.Buffer clip()
      Clip rectangle array.
    • create

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

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

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

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

      public static long nplatformInfo(long struct)
      Unsafe version of platformInfo().
    • nds

      public static JAWTDrawingSurface nds(long struct)
      Unsafe version of ds().
    • nbounds

      public static JAWTRectangle nbounds(long struct)
      Unsafe version of bounds().
    • nclipSize

      public static int nclipSize(long struct)
      Unsafe version of clipSize().
    • nclip

      public static JAWTRectangle.Buffer nclip(long struct)
      Unsafe version of clip().