Class JAWTDrawingSurfaceInfo

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • PLATFORMINFO, DS, BOUNDS, CLIPSIZE, CLIP

        The struct member offsets.
    • Constructor Detail

      • JAWTDrawingSurfaceInfo

        public JAWTDrawingSurfaceInfo​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • 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.
      • bounds

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

        public int clipSize()
        Number of rectangles in the clip.
      • 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.
      • nplatformInfo

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

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