Package org.lwjgl.egl

Class EGLClientPixmapHI

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class EGLClientPixmapHI extends Struct<EGLClientPixmapHI> implements NativeResource

 struct EGLClientPixmapHI {
     void * pData;
     EGLint iWidth;
     EGLint iHeight;
     EGLint iStride;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int PDATA
      The struct member offsets.
    • IWIDTH

      public static final int IWIDTH
      The struct member offsets.
    • IHEIGHT

      public static final int IHEIGHT
      The struct member offsets.
    • ISTRIDE

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

    • EGLClientPixmapHI

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

      public ByteBuffer pData(int capacity)
      Returns:
      a ByteBuffer view of the data pointed to by the pData field.
    • iWidth

      public int iWidth()
      Returns:
      the value of the iWidth field.
    • iHeight

      public int iHeight()
      Returns:
      the value of the iHeight field.
    • iStride

      public int iStride()
      Returns:
      the value of the iStride field.
    • pData

      public EGLClientPixmapHI pData(ByteBuffer value)
      Sets the address of the specified ByteBuffer to the pData field.
    • iWidth

      public EGLClientPixmapHI iWidth(int value)
      Sets the specified value to the iWidth field.
    • iHeight

      public EGLClientPixmapHI iHeight(int value)
      Sets the specified value to the iHeight field.
    • iStride

      public EGLClientPixmapHI iStride(int value)
      Sets the specified value to the iStride field.
    • set

      public EGLClientPixmapHI set(ByteBuffer pData, int iWidth, int iHeight, int iStride)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static EGLClientPixmapHI malloc()
      Returns a new EGLClientPixmapHI instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

      public static EGLClientPixmapHI.Buffer malloc(int capacity)
      Returns a new EGLClientPixmapHI.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static EGLClientPixmapHI.Buffer calloc(int capacity)
      Returns a new EGLClientPixmapHI.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static EGLClientPixmapHI.Buffer create(int capacity)
      Returns a new EGLClientPixmapHI.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

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

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

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

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

      public static EGLClientPixmapHI.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new EGLClientPixmapHI.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static EGLClientPixmapHI.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new EGLClientPixmapHI.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • npData

      public static ByteBuffer npData(long struct, int capacity)
      Unsafe version of pData.
    • niWidth

      public static int niWidth(long struct)
      Unsafe version of iWidth().
    • niHeight

      public static int niHeight(long struct)
      Unsafe version of iHeight().
    • niStride

      public static int niStride(long struct)
      Unsafe version of iStride().
    • npData

      public static void npData(long struct, ByteBuffer value)
      Unsafe version of pData.
    • niWidth

      public static void niWidth(long struct, int value)
      Unsafe version of iWidth.
    • niHeight

      public static void niHeight(long struct, int value)
      Unsafe version of iHeight.
    • niStride

      public static void niStride(long struct, int value)
      Unsafe version of iStride.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate