Class NotificationBitmap

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<NotificationBitmap>
org.lwjgl.openvr.NotificationBitmap
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class NotificationBitmap extends org.lwjgl.system.Struct<NotificationBitmap> implements org.lwjgl.system.NativeResource
Used for passing graphic data.

Layout


 struct NotificationBitmap_t {
     void * m_pImageData;
     int32_t m_nWidth;
     int32_t m_nHeight;
     int32_t m_nBytesPerPixel;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int M_PIMAGEDATA
      The struct member offsets.
    • M_NWIDTH

      public static final int M_NWIDTH
      The struct member offsets.
    • M_NHEIGHT

      public static final int M_NHEIGHT
      The struct member offsets.
    • M_NBYTESPERPIXEL

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

    • NotificationBitmap

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

      public ByteBuffer m_pImageData(int capacity)
      Parameters:
      capacity - the number of elements in the returned buffer
      Returns:
      a ByteBuffer view of the data pointed to by the m_pImageData field.
    • m_nWidth

      public int m_nWidth()
      Returns:
      the value of the m_nWidth field.
    • m_nHeight

      public int m_nHeight()
      Returns:
      the value of the m_nHeight field.
    • m_nBytesPerPixel

      public int m_nBytesPerPixel()
      Returns:
      the value of the m_nBytesPerPixel field.
    • m_pImageData

      public NotificationBitmap m_pImageData(ByteBuffer value)
      Sets the address of the specified ByteBuffer to the m_pImageData field.
    • m_nWidth

      public NotificationBitmap m_nWidth(int value)
      Sets the specified value to the m_nWidth field.
    • m_nHeight

      public NotificationBitmap m_nHeight(int value)
      Sets the specified value to the m_nHeight field.
    • m_nBytesPerPixel

      public NotificationBitmap m_nBytesPerPixel(int value)
      Sets the specified value to the m_nBytesPerPixel field.
    • set

      public NotificationBitmap set(ByteBuffer m_pImageData, int m_nWidth, int m_nHeight, int m_nBytesPerPixel)
      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 NotificationBitmap malloc()
      Returns a new NotificationBitmap instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

      @Deprecated public static NotificationBitmap mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static NotificationBitmap callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static NotificationBitmap mallocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static NotificationBitmap callocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static NotificationBitmap.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static NotificationBitmap.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • mallocStack

      @Deprecated public static NotificationBitmap.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static NotificationBitmap.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • malloc

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

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

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

      public static NotificationBitmap.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new NotificationBitmap.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
    • nm_pImageData

      public static ByteBuffer nm_pImageData(long struct, int capacity)
      Unsafe version of m_pImageData.
    • nm_nWidth

      public static int nm_nWidth(long struct)
      Unsafe version of m_nWidth().
    • nm_nHeight

      public static int nm_nHeight(long struct)
      Unsafe version of m_nHeight().
    • nm_nBytesPerPixel

      public static int nm_nBytesPerPixel(long struct)
      Unsafe version of m_nBytesPerPixel().
    • nm_pImageData

      public static void nm_pImageData(long struct, ByteBuffer value)
      Unsafe version of m_pImageData.
    • nm_nWidth

      public static void nm_nWidth(long struct, int value)
      Unsafe version of m_nWidth.
    • nm_nHeight

      public static void nm_nHeight(long struct, int value)
      Unsafe version of m_nHeight.
    • nm_nBytesPerPixel

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

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