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 ofNotificationBitmap
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
m_nBytesPerPixel()
Returns the value of them_nBytesPerPixel
field.NotificationBitmap.Buffer
m_nBytesPerPixel(int value)
Sets the specified value to them_nBytesPerPixel
field.int
m_nHeight()
Returns the value of them_nHeight
field.NotificationBitmap.Buffer
m_nHeight(int value)
Sets the specified value to them_nHeight
field.int
m_nWidth()
Returns the value of them_nWidth
field.NotificationBitmap.Buffer
m_nWidth(int value)
Sets the specified value to them_nWidth
field.java.nio.ByteBuffer
m_pImageData(int capacity)
Returns aByteBuffer
view of the data pointed to by them_pImageData
field.NotificationBitmap.Buffer
m_pImageData(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to them_pImageData
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNotificationBitmap.Buffer
instance 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)
Returns aByteBuffer
view of the data pointed to by them_pImageData
field.- Parameters:
capacity
- the number of elements in the returned buffer
-
m_nWidth
public int m_nWidth()
Returns the value of them_nWidth
field.
-
m_nHeight
public int m_nHeight()
Returns the value of them_nHeight
field.
-
m_nBytesPerPixel
public int m_nBytesPerPixel()
Returns the value of them_nBytesPerPixel
field.
-
m_pImageData
public NotificationBitmap.Buffer m_pImageData(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to them_pImageData
field.
-
m_nWidth
public NotificationBitmap.Buffer m_nWidth(int value)
Sets the specified value to them_nWidth
field.
-
m_nHeight
public NotificationBitmap.Buffer m_nHeight(int value)
Sets the specified value to them_nHeight
field.
-
m_nBytesPerPixel
public NotificationBitmap.Buffer m_nBytesPerPixel(int value)
Sets the specified value to them_nBytesPerPixel
field.
-
-