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.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; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NotificationBitmap.Buffer
An array ofNotificationBitmap
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
M_NBYTESPERPIXEL
M_NHEIGHT
M_NWIDTH
M_PIMAGEDATAThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description NotificationBitmap(java.nio.ByteBuffer container)
Creates aNotificationBitmap
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NotificationBitmap
calloc()
Returns a newNotificationBitmap
instance allocated withmemCalloc
.static NotificationBitmap.Buffer
calloc(int capacity)
Returns a newNotificationBitmap.Buffer
instance allocated withmemCalloc
.static NotificationBitmap
callocStack()
Returns a newNotificationBitmap
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static NotificationBitmap.Buffer
callocStack(int capacity)
Returns a newNotificationBitmap.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static NotificationBitmap.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNotificationBitmap.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NotificationBitmap
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNotificationBitmap
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NotificationBitmap
create()
Returns a newNotificationBitmap
instance allocated withBufferUtils
.static NotificationBitmap.Buffer
create(int capacity)
Returns a newNotificationBitmap.Buffer
instance allocated withBufferUtils
.static NotificationBitmap
create(long address)
Returns a newNotificationBitmap
instance for the specified memory address.static NotificationBitmap.Buffer
create(long address, int capacity)
Create aNotificationBitmap.Buffer
instance at the specified memory.static NotificationBitmap
createSafe(long address)
static NotificationBitmap.Buffer
createSafe(long address, int capacity)
int
m_nBytesPerPixel()
Returns the value of them_nBytesPerPixel
field.NotificationBitmap
m_nBytesPerPixel(int value)
Sets the specified value to them_nBytesPerPixel
field.int
m_nHeight()
Returns the value of them_nHeight
field.NotificationBitmap
m_nHeight(int value)
Sets the specified value to them_nHeight
field.int
m_nWidth()
Returns the value of them_nWidth
field.NotificationBitmap
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
m_pImageData(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to them_pImageData
field.static NotificationBitmap
malloc()
Returns a newNotificationBitmap
instance allocated withmemAlloc
.static NotificationBitmap.Buffer
malloc(int capacity)
Returns a newNotificationBitmap.Buffer
instance allocated withmemAlloc
.static NotificationBitmap
mallocStack()
Returns a newNotificationBitmap
instance allocated on the thread-localMemoryStack
.static NotificationBitmap.Buffer
mallocStack(int capacity)
Returns a newNotificationBitmap.Buffer
instance allocated on the thread-localMemoryStack
.static NotificationBitmap.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNotificationBitmap.Buffer
instance allocated on the specifiedMemoryStack
.static NotificationBitmap
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNotificationBitmap
instance allocated on the specifiedMemoryStack
.static int
nm_nBytesPerPixel(long struct)
Unsafe version ofm_nBytesPerPixel()
.static void
nm_nBytesPerPixel(long struct, int value)
Unsafe version ofm_nBytesPerPixel
.static int
nm_nHeight(long struct)
Unsafe version ofm_nHeight()
.static void
nm_nHeight(long struct, int value)
Unsafe version ofm_nHeight
.static int
nm_nWidth(long struct)
Unsafe version ofm_nWidth()
.static void
nm_nWidth(long struct, int value)
Unsafe version ofm_nWidth
.static java.nio.ByteBuffer
nm_pImageData(long struct, int capacity)
Unsafe version ofm_pImageData
.static void
nm_pImageData(long struct, java.nio.ByteBuffer value)
Unsafe version ofm_pImageData
.NotificationBitmap
set(java.nio.ByteBuffer m_pImageData, int m_nWidth, int m_nHeight, int m_nBytesPerPixel)
Initializes this struct with the specified values.NotificationBitmap
set(NotificationBitmap src)
Copies the specified struct data to this struct.int
sizeof()
static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(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 aNotificationBitmap
instance at the current position of the specifiedByteBuffer
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
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 m_pImageData(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to them_pImageData
field.
-
m_nWidth
public NotificationBitmap m_nWidth(int value)
Sets the specified value to them_nWidth
field.
-
m_nHeight
public NotificationBitmap m_nHeight(int value)
Sets the specified value to them_nHeight
field.
-
m_nBytesPerPixel
public NotificationBitmap m_nBytesPerPixel(int value)
Sets the specified value to them_nBytesPerPixel
field.
-
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 newNotificationBitmap
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static NotificationBitmap calloc()
Returns a newNotificationBitmap
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static NotificationBitmap create()
Returns a newNotificationBitmap
instance allocated withBufferUtils
.
-
create
public static NotificationBitmap create(long address)
Returns a newNotificationBitmap
instance for the specified memory address.
-
createSafe
@Nullable public static NotificationBitmap createSafe(long address)
-
malloc
public static NotificationBitmap.Buffer malloc(int capacity)
Returns a newNotificationBitmap.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static NotificationBitmap.Buffer calloc(int capacity)
Returns a newNotificationBitmap.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static NotificationBitmap.Buffer create(int capacity)
Returns a newNotificationBitmap.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static NotificationBitmap.Buffer create(long address, int capacity)
Create aNotificationBitmap.Buffer
instance 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 newNotificationBitmap
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static NotificationBitmap callocStack()
Returns a newNotificationBitmap
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static NotificationBitmap mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNotificationBitmap
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static NotificationBitmap callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNotificationBitmap
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static NotificationBitmap.Buffer callocStack(int capacity)
Returns a newNotificationBitmap.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
-
-