Package org.lwjgl.openvr
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;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionNotificationBitmap(ByteBuffer container) Creates aNotificationBitmapinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic NotificationBitmapcalloc()Returns a newNotificationBitmapinstance allocated withmemCalloc.static NotificationBitmap.Buffercalloc(int capacity) Returns a newNotificationBitmap.Bufferinstance allocated withmemCalloc.static NotificationBitmap.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newNotificationBitmap.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NotificationBitmapcalloc(org.lwjgl.system.MemoryStack stack) Returns a newNotificationBitmapinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NotificationBitmapDeprecated.static NotificationBitmap.BuffercallocStack(int capacity) Deprecated.static NotificationBitmap.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static NotificationBitmapcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.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 @Nullable NotificationBitmapcreateSafe(long address) static @Nullable NotificationBitmap.BuffercreateSafe(long address, int capacity) intm_nBytesPerPixel(int value) Sets the specified value to them_nBytesPerPixelfield.intm_nHeight(int value) Sets the specified value to them_nHeightfield.intm_nWidth()m_nWidth(int value) Sets the specified value to them_nWidthfield.m_pImageData(int capacity) m_pImageData(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 NotificationBitmap.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newNotificationBitmap.Bufferinstance allocated on the specifiedMemoryStack.static NotificationBitmapmalloc(org.lwjgl.system.MemoryStack stack) Returns a newNotificationBitmapinstance allocated on the specifiedMemoryStack.static NotificationBitmapDeprecated.static NotificationBitmap.BuffermallocStack(int capacity) Deprecated.static NotificationBitmap.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static NotificationBitmapmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.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 ByteBuffernm_pImageData(long struct, int capacity) Unsafe version ofm_pImageData.static voidnm_pImageData(long struct, ByteBuffer value) Unsafe version ofm_pImageData.set(ByteBuffer m_pImageData, int m_nWidth, int m_nHeight, int m_nBytesPerPixel) Initializes this struct with the specified values.set(NotificationBitmap src) Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
M_PIMAGEDATA
public static final int M_PIMAGEDATAThe struct member offsets. -
M_NWIDTH
public static final int M_NWIDTHThe struct member offsets. -
M_NHEIGHT
public static final int M_NHEIGHTThe struct member offsets. -
M_NBYTESPERPIXEL
public static final int M_NBYTESPERPIXELThe struct member offsets.
-
-
Constructor Details
-
NotificationBitmap
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<NotificationBitmap>
-
m_pImageData
- 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
Sets the address of the specifiedByteBufferto them_pImageDatafield. -
m_nWidth
Sets the specified value to them_nWidthfield. -
m_nHeight
Sets the specified value to them_nHeightfield. -
m_nBytesPerPixel
Sets the specified value to them_nBytesPerPixelfield. -
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
Returns a newNotificationBitmapinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newNotificationBitmapinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newNotificationBitmapinstance allocated withBufferUtils. -
create
Returns a newNotificationBitmapinstance for the specified memory address. -
createSafe
-
malloc
Returns a newNotificationBitmap.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newNotificationBitmap.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newNotificationBitmap.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aNotificationBitmap.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(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. Usemalloc(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. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newNotificationBitmapinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newNotificationBitmapinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newNotificationBitmap.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newNotificationBitmap.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nm_pImageData
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
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
-