Package org.lwjgl.openvr
Class NotificationBitmap.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NotificationBitmap,NotificationBitmap.Buffer>
-
- org.lwjgl.openvr.NotificationBitmap.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<NotificationBitmap>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- NotificationBitmap
public static class NotificationBitmap.Buffer extends org.lwjgl.system.StructBuffer<NotificationBitmap,NotificationBitmap.Buffer> implements org.lwjgl.system.NativeResource
An array ofNotificationBitmapstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intm_nBytesPerPixel()NotificationBitmap.Bufferm_nBytesPerPixel(int value)Sets the specified value to them_nBytesPerPixelfield.intm_nHeight()NotificationBitmap.Bufferm_nHeight(int value)Sets the specified value to them_nHeightfield.intm_nWidth()NotificationBitmap.Bufferm_nWidth(int value)Sets the specified value to them_nWidthfield.java.nio.ByteBufferm_pImageData(int capacity)NotificationBitmap.Bufferm_pImageData(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto them_pImageDatafield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNotificationBitmap.Bufferinstance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided byNotificationBitmap.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
m_pImageData
public java.nio.ByteBuffer m_pImageData(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
ByteBufferview of the data pointed to by them_pImageDatafield.
-
m_nWidth
public int m_nWidth()
- Returns:
- the value of the
m_nWidthfield.
-
m_nHeight
public int m_nHeight()
- Returns:
- the value of the
m_nHeightfield.
-
m_nBytesPerPixel
public int m_nBytesPerPixel()
- Returns:
- the value of the
m_nBytesPerPixelfield.
-
m_pImageData
public NotificationBitmap.Buffer m_pImageData(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto them_pImageDatafield.
-
m_nWidth
public NotificationBitmap.Buffer m_nWidth(int value)
Sets the specified value to them_nWidthfield.
-
m_nHeight
public NotificationBitmap.Buffer m_nHeight(int value)
Sets the specified value to them_nHeightfield.
-
m_nBytesPerPixel
public NotificationBitmap.Buffer m_nBytesPerPixel(int value)
Sets the specified value to them_nBytesPerPixelfield.
-
-