Package org.lwjgl.openvr
Class NotificationBitmap
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.NotificationBitmap
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class NotificationBitmap extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceUsed for passing graphic data.Layout
struct NotificationBitmap_t { void * m_pImageData; int32_t m_nWidth; int32_t m_nHeight; int32_t m_nBytesPerPixel; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNotificationBitmap.BufferAn array ofNotificationBitmapstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intM_NBYTESPERPIXEL
M_NHEIGHT
M_NWIDTH
M_PIMAGEDATAThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description NotificationBitmap(java.nio.ByteBuffer container)Creates aNotificationBitmapinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NotificationBitmapcalloc()Returns a newNotificationBitmapinstance allocated withmemCalloc.static NotificationBitmap.Buffercalloc(int capacity)Returns a newNotificationBitmap.Bufferinstance allocated withmemCalloc.static NotificationBitmapcallocStack()Returns a newNotificationBitmapinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NotificationBitmap.BuffercallocStack(int capacity)Returns a newNotificationBitmap.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NotificationBitmap.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNotificationBitmap.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NotificationBitmapcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNotificationBitmapinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NotificationBitmapcreate()Returns a newNotificationBitmapinstance allocated withBufferUtils.static NotificationBitmap.Buffercreate(int capacity)Returns a newNotificationBitmap.Bufferinstance allocated withBufferUtils.static NotificationBitmapcreate(long address)Returns a newNotificationBitmapinstance for the specified memory address.static NotificationBitmap.Buffercreate(long address, int capacity)Create aNotificationBitmap.Bufferinstance at the specified memory.static NotificationBitmapcreateSafe(long address)static NotificationBitmap.BuffercreateSafe(long address, int capacity)intm_nBytesPerPixel()Returns the value of them_nBytesPerPixelfield.NotificationBitmapm_nBytesPerPixel(int value)Sets the specified value to them_nBytesPerPixelfield.intm_nHeight()Returns the value of them_nHeightfield.NotificationBitmapm_nHeight(int value)Sets the specified value to them_nHeightfield.intm_nWidth()Returns the value of them_nWidthfield.NotificationBitmapm_nWidth(int value)Sets the specified value to them_nWidthfield.java.nio.ByteBufferm_pImageData(int capacity)Returns aByteBufferview of the data pointed to by them_pImageDatafield.NotificationBitmapm_pImageData(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto them_pImageDatafield.static NotificationBitmapmalloc()Returns a newNotificationBitmapinstance allocated withmemAlloc.static NotificationBitmap.Buffermalloc(int capacity)Returns a newNotificationBitmap.Bufferinstance allocated withmemAlloc.static NotificationBitmapmallocStack()Returns a newNotificationBitmapinstance allocated on the thread-localMemoryStack.static NotificationBitmap.BuffermallocStack(int capacity)Returns a newNotificationBitmap.Bufferinstance allocated on the thread-localMemoryStack.static NotificationBitmap.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNotificationBitmap.Bufferinstance allocated on the specifiedMemoryStack.static NotificationBitmapmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNotificationBitmapinstance allocated on the specifiedMemoryStack.static intnm_nBytesPerPixel(long struct)Unsafe version ofm_nBytesPerPixel().static voidnm_nBytesPerPixel(long struct, int value)Unsafe version ofm_nBytesPerPixel.static intnm_nHeight(long struct)Unsafe version ofm_nHeight().static voidnm_nHeight(long struct, int value)Unsafe version ofm_nHeight.static intnm_nWidth(long struct)Unsafe version ofm_nWidth().static voidnm_nWidth(long struct, int value)Unsafe version ofm_nWidth.static java.nio.ByteBuffernm_pImageData(long struct, int capacity)Unsafe version ofm_pImageData.static voidnm_pImageData(long struct, java.nio.ByteBuffer value)Unsafe version ofm_pImageData.NotificationBitmapset(java.nio.ByteBuffer m_pImageData, int m_nWidth, int m_nHeight, int m_nBytesPerPixel)Initializes this struct with the specified values.NotificationBitmapset(NotificationBitmap src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.
-
-
-
Constructor Detail
-
NotificationBitmap
public NotificationBitmap(java.nio.ByteBuffer container)
Creates aNotificationBitmapinstance at the current position of the specifiedByteBuffercontainer. 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
m_pImageData
public java.nio.ByteBuffer m_pImageData(int capacity)
Returns aByteBufferview of the data pointed to by them_pImageDatafield.- Parameters:
capacity- the number of elements in the returned buffer
-
m_nWidth
public int m_nWidth()
Returns the value of them_nWidthfield.
-
m_nHeight
public int m_nHeight()
Returns the value of them_nHeightfield.
-
m_nBytesPerPixel
public int m_nBytesPerPixel()
Returns the value of them_nBytesPerPixelfield.
-
m_pImageData
public NotificationBitmap m_pImageData(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto them_pImageDatafield.
-
m_nWidth
public NotificationBitmap m_nWidth(int value)
Sets the specified value to them_nWidthfield.
-
m_nHeight
public NotificationBitmap m_nHeight(int value)
Sets the specified value to them_nHeightfield.
-
m_nBytesPerPixel
public NotificationBitmap m_nBytesPerPixel(int value)
Sets the specified value to them_nBytesPerPixelfield.
-
set
public NotificationBitmap set(java.nio.ByteBuffer m_pImageData, int m_nWidth, int m_nHeight, int m_nBytesPerPixel)
Initializes this struct with the specified values.
-
set
public NotificationBitmap set(NotificationBitmap src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static NotificationBitmap malloc()
Returns a newNotificationBitmapinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static NotificationBitmap calloc()
Returns a newNotificationBitmapinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static NotificationBitmap create()
Returns a newNotificationBitmapinstance allocated withBufferUtils.
-
create
public static NotificationBitmap create(long address)
Returns a newNotificationBitmapinstance for the specified memory address.
-
createSafe
@Nullable public static NotificationBitmap createSafe(long address)
-
malloc
public static NotificationBitmap.Buffer malloc(int capacity)
Returns a newNotificationBitmap.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static NotificationBitmap.Buffer calloc(int capacity)
Returns a newNotificationBitmap.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static NotificationBitmap.Buffer create(int capacity)
Returns a newNotificationBitmap.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static NotificationBitmap.Buffer create(long address, int capacity)
Create aNotificationBitmap.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static NotificationBitmap.Buffer createSafe(long address, int capacity)
-
mallocStack
public static NotificationBitmap mallocStack()
Returns a newNotificationBitmapinstance allocated on the thread-localMemoryStack.
-
callocStack
public static NotificationBitmap callocStack()
Returns a newNotificationBitmapinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static NotificationBitmap mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNotificationBitmapinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static NotificationBitmap callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNotificationBitmapinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static NotificationBitmap.Buffer mallocStack(int capacity)
Returns a newNotificationBitmap.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static NotificationBitmap.Buffer callocStack(int capacity)
Returns a newNotificationBitmap.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static NotificationBitmap.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNotificationBitmap.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static NotificationBitmap.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNotificationBitmap.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nm_pImageData
public static java.nio.ByteBuffer nm_pImageData(long struct, int capacity)Unsafe version ofm_pImageData.
-
nm_nWidth
public static int nm_nWidth(long struct)
Unsafe version ofm_nWidth().
-
nm_nHeight
public static int nm_nHeight(long struct)
Unsafe version ofm_nHeight().
-
nm_nBytesPerPixel
public static int nm_nBytesPerPixel(long struct)
Unsafe version ofm_nBytesPerPixel().
-
nm_pImageData
public static void nm_pImageData(long struct, java.nio.ByteBuffer value)Unsafe version ofm_pImageData.
-
nm_nWidth
public static void nm_nWidth(long struct, int value)Unsafe version ofm_nWidth.
-
nm_nHeight
public static void nm_nHeight(long struct, int value)Unsafe version ofm_nHeight.
-
nm_nBytesPerPixel
public static void nm_nBytesPerPixel(long struct, int value)Unsafe version ofm_nBytesPerPixel.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
validate
public static void validate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-