Class JAWTX11DrawingSurfaceInfo

All Implemented Interfaces:
Pointer

public class JAWTX11DrawingSurfaceInfo extends Struct<JAWTX11DrawingSurfaceInfo>

 struct JAWT_X11DrawingSurfaceInfo {
     Drawable drawable;
     Display * display;
     VisualID visualID;
     Colormap colormapID;
     int depth;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int DRAWABLE
      The struct member offsets.
    • DISPLAY

      public static final int DISPLAY
      The struct member offsets.
    • VISUALID

      public static final int VISUALID
      The struct member offsets.
    • COLORMAPID

      public static final int COLORMAPID
      The struct member offsets.
    • DEPTH

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

    • JAWTX11DrawingSurfaceInfo

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

      public long drawable()
      Returns:
      the value of the drawable field.
    • display

      public long display()
      Returns:
      the value of the display field.
    • visualID

      public long visualID()
      Returns:
      the value of the visualID field.
    • colormapID

      public long colormapID()
      Returns:
      the value of the colormapID field.
    • depth

      public int depth()
      Returns:
      the value of the depth field.
    • create

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

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

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

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

      public static long ndrawable(long struct)
      Unsafe version of drawable().
    • ndisplay

      public static long ndisplay(long struct)
      Unsafe version of display().
    • nvisualID

      public static long nvisualID(long struct)
      Unsafe version of visualID().
    • ncolormapID

      public static long ncolormapID(long struct)
      Unsafe version of colormapID().
    • ndepth

      public static int ndepth(long struct)
      Unsafe version of depth().