public class CXPlatformAvailability
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
Platform –
a string that describes the platform for which this structure provides availability information.
Possible values are "ios" or "macos".
Introduced – the version number in which this entity was introducedDeprecated – the version number in which this entity was deprecated (but is still available)Obsoleted – the version number in which this entity was obsoleted, and therefore is no longer availableUnavailable – whether the entity is unconditionally unavailable on this platformMessage – an optional message to provide to a user of this API, e.g., to suggest replacement APIs
struct CXPlatformAvailability {
CXString Platform;
CXVersion Introduced;
CXVersion Deprecated;
CXVersion Obsoleted;
int Unavailable;
CXString Message;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CXPlatformAvailability.Buffer
An array of
CXPlatformAvailability structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DEPRECATED
The struct member offsets.
|
static int |
INTRODUCED
The struct member offsets.
|
static int |
MESSAGE
The struct member offsets.
|
static int |
OBSOLETED
The struct member offsets.
|
static int |
PLATFORM
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
UNAVAILABLE
The struct member offsets.
|
| Constructor and Description |
|---|
CXPlatformAvailability(java.nio.ByteBuffer container)
Creates a
CXPlatformAvailability instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static CXPlatformAvailability |
calloc()
Returns a new
CXPlatformAvailability instance allocated with memCalloc. |
static CXPlatformAvailability.Buffer |
calloc(int capacity)
Returns a new
CXPlatformAvailability.Buffer instance allocated with memCalloc. |
static CXPlatformAvailability |
callocStack()
Returns a new
CXPlatformAvailability instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CXPlatformAvailability.Buffer |
callocStack(int capacity)
Returns a new
CXPlatformAvailability.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CXPlatformAvailability.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CXPlatformAvailability.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CXPlatformAvailability |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CXPlatformAvailability instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CXPlatformAvailability |
create()
Returns a new
CXPlatformAvailability instance allocated with BufferUtils. |
static CXPlatformAvailability.Buffer |
create(int capacity)
Returns a new
CXPlatformAvailability.Buffer instance allocated with BufferUtils. |
static CXPlatformAvailability |
create(long address)
Returns a new
CXPlatformAvailability instance for the specified memory address. |
static CXPlatformAvailability.Buffer |
create(long address,
int capacity)
Create a
CXPlatformAvailability.Buffer instance at the specified memory. |
static CXPlatformAvailability |
createSafe(long address)
|
static CXPlatformAvailability.Buffer |
createSafe(long address,
int capacity)
|
CXVersion |
Deprecated()
Returns a
CXVersion view of the Deprecated field. |
CXVersion |
Introduced()
Returns a
CXVersion view of the Introduced field. |
static CXPlatformAvailability |
malloc()
Returns a new
CXPlatformAvailability instance allocated with memAlloc. |
static CXPlatformAvailability.Buffer |
malloc(int capacity)
Returns a new
CXPlatformAvailability.Buffer instance allocated with memAlloc. |
static CXPlatformAvailability |
mallocStack()
Returns a new
CXPlatformAvailability instance allocated on the thread-local MemoryStack. |
static CXPlatformAvailability.Buffer |
mallocStack(int capacity)
Returns a new
CXPlatformAvailability.Buffer instance allocated on the thread-local MemoryStack. |
static CXPlatformAvailability.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CXPlatformAvailability.Buffer instance allocated on the specified MemoryStack. |
static CXPlatformAvailability |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CXPlatformAvailability instance allocated on the specified MemoryStack. |
CXString |
Message()
Returns a
CXString view of the Message field. |
static CXVersion |
nDeprecated(long struct)
Unsafe version of
Deprecated(). |
static CXVersion |
nIntroduced(long struct)
Unsafe version of
Introduced(). |
static CXString |
nMessage(long struct)
Unsafe version of
Message(). |
static CXVersion |
nObsoleted(long struct)
Unsafe version of
Obsoleted(). |
static CXString |
nPlatform(long struct)
Unsafe version of
Platform(). |
static int |
nUnavailable(long struct)
Unsafe version of
Unavailable(). |
CXVersion |
Obsoleted()
Returns a
CXVersion view of the Obsoleted field. |
CXString |
Platform()
Returns a
CXString view of the Platform field. |
int |
sizeof() |
int |
Unavailable()
Returns the value of the
Unavailable field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int PLATFORM
public static final int INTRODUCED
public static final int DEPRECATED
public static final int OBSOLETED
public static final int UNAVAILABLE
public static final int MESSAGE
public CXPlatformAvailability(java.nio.ByteBuffer container)
CXPlatformAvailability instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int Unavailable()
Unavailable field.public static CXPlatformAvailability malloc()
CXPlatformAvailability instance allocated with memAlloc. The instance must be explicitly freed.public static CXPlatformAvailability calloc()
CXPlatformAvailability instance allocated with memCalloc. The instance must be explicitly freed.public static CXPlatformAvailability create()
CXPlatformAvailability instance allocated with BufferUtils.public static CXPlatformAvailability create(long address)
CXPlatformAvailability instance for the specified memory address.@Nullable public static CXPlatformAvailability createSafe(long address)
public static CXPlatformAvailability.Buffer malloc(int capacity)
CXPlatformAvailability.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CXPlatformAvailability.Buffer calloc(int capacity)
CXPlatformAvailability.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CXPlatformAvailability.Buffer create(int capacity)
CXPlatformAvailability.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CXPlatformAvailability.Buffer create(long address, int capacity)
CXPlatformAvailability.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CXPlatformAvailability.Buffer createSafe(long address, int capacity)
public static CXPlatformAvailability mallocStack()
CXPlatformAvailability instance allocated on the thread-local MemoryStack.public static CXPlatformAvailability callocStack()
CXPlatformAvailability instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CXPlatformAvailability mallocStack(org.lwjgl.system.MemoryStack stack)
CXPlatformAvailability instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CXPlatformAvailability callocStack(org.lwjgl.system.MemoryStack stack)
CXPlatformAvailability instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CXPlatformAvailability.Buffer mallocStack(int capacity)
CXPlatformAvailability.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CXPlatformAvailability.Buffer callocStack(int capacity)
CXPlatformAvailability.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CXPlatformAvailability.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CXPlatformAvailability.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CXPlatformAvailability.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CXPlatformAvailability.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CXString nPlatform(long struct)
Platform().public static CXVersion nIntroduced(long struct)
Introduced().public static CXVersion nDeprecated(long struct)
Deprecated().public static CXVersion nObsoleted(long struct)
Obsoleted().public static int nUnavailable(long struct)
Unavailable().Copyright LWJGL. All Rights Reserved. License terms.