Package org.lwjgl.openxr
Class XrEventDataDisplayRefreshRateChangedFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrEventDataDisplayRefreshRateChangedFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrEventDataDisplayRefreshRateChangedFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceEvent representing display refresh rate change.Valid Usage (Implicit)
- The
XR_FB_display_refresh_rateextension must be enabled prior to usingXrEventDataDisplayRefreshRateChangedFB typemust beTYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FBnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
Layout
struct XrEventDataDisplayRefreshRateChangedFB { XrStructureTypetype(); void const *next(); floatfromDisplayRefreshRate(); floattoDisplayRefreshRate(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrEventDataDisplayRefreshRateChangedFB.BufferAn array ofXrEventDataDisplayRefreshRateChangedFBstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFROMDISPLAYREFRESHRATE
NEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTODISPLAYREFRESHRATE
TYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrEventDataDisplayRefreshRateChangedFB(java.nio.ByteBuffer container)Creates aXrEventDataDisplayRefreshRateChangedFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrEventDataDisplayRefreshRateChangedFBcalloc()Returns a newXrEventDataDisplayRefreshRateChangedFBinstance allocated withmemCalloc.static XrEventDataDisplayRefreshRateChangedFB.Buffercalloc(int capacity)Returns a newXrEventDataDisplayRefreshRateChangedFB.Bufferinstance allocated withmemCalloc.static XrEventDataDisplayRefreshRateChangedFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataDisplayRefreshRateChangedFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEventDataDisplayRefreshRateChangedFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataDisplayRefreshRateChangedFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEventDataDisplayRefreshRateChangedFBcreate()Returns a newXrEventDataDisplayRefreshRateChangedFBinstance allocated withBufferUtils.static XrEventDataDisplayRefreshRateChangedFB.Buffercreate(int capacity)Returns a newXrEventDataDisplayRefreshRateChangedFB.Bufferinstance allocated withBufferUtils.static XrEventDataDisplayRefreshRateChangedFBcreate(long address)Returns a newXrEventDataDisplayRefreshRateChangedFBinstance for the specified memory address.static XrEventDataDisplayRefreshRateChangedFB.Buffercreate(long address, int capacity)Create aXrEventDataDisplayRefreshRateChangedFB.Bufferinstance at the specified memory.static XrEventDataDisplayRefreshRateChangedFBcreate(XrEventDataBaseHeader value)Downcasts the specifiedXrEventDataBaseHeaderinstance toXrEventDataDisplayRefreshRateChangedFB.static XrEventDataDisplayRefreshRateChangedFB.Buffercreate(XrEventDataBaseHeader.Buffer value)Downcasts the specifiedXrEventDataBaseHeader.Bufferinstance toXrEventDataDisplayRefreshRateChangedFB.Buffer.static XrEventDataDisplayRefreshRateChangedFBcreateSafe(long address)static XrEventDataDisplayRefreshRateChangedFB.BuffercreateSafe(long address, int capacity)floatfromDisplayRefreshRate()the previous display refresh rate.XrEventDataDisplayRefreshRateChangedFBfromDisplayRefreshRate(float value)Sets the specified value to thefromDisplayRefreshRate()field.static XrEventDataDisplayRefreshRateChangedFBmalloc()Returns a newXrEventDataDisplayRefreshRateChangedFBinstance allocated withmemAlloc.static XrEventDataDisplayRefreshRateChangedFB.Buffermalloc(int capacity)Returns a newXrEventDataDisplayRefreshRateChangedFB.Bufferinstance allocated withmemAlloc.static XrEventDataDisplayRefreshRateChangedFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataDisplayRefreshRateChangedFB.Bufferinstance allocated on the specifiedMemoryStack.static XrEventDataDisplayRefreshRateChangedFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataDisplayRefreshRateChangedFBinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrEventDataDisplayRefreshRateChangedFBnext(long value)Sets the specified value to thenext()field.static floatnfromDisplayRefreshRate(long struct)Unsafe version offromDisplayRefreshRate().static voidnfromDisplayRefreshRate(long struct, float value)Unsafe version offromDisplayRefreshRate.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static floatntoDisplayRefreshRate(long struct)Unsafe version oftoDisplayRefreshRate().static voidntoDisplayRefreshRate(long struct, float value)Unsafe version oftoDisplayRefreshRate.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrEventDataDisplayRefreshRateChangedFBset(int type, long next, float fromDisplayRefreshRate, float toDisplayRefreshRate)Initializes this struct with the specified values.XrEventDataDisplayRefreshRateChangedFBset(XrEventDataDisplayRefreshRateChangedFB src)Copies the specified struct data to this struct.intsizeof()floattoDisplayRefreshRate()the new display refresh rate.XrEventDataDisplayRefreshRateChangedFBtoDisplayRefreshRate(float value)Sets the specified value to thetoDisplayRefreshRate()field.inttype()theXrStructureTypeof this structure.XrEventDataDisplayRefreshRateChangedFBtype(int value)Sets the specified value to thetype()field.XrEventDataDisplayRefreshRateChangedFBtype$Default()Sets theTYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FBvalue to thetype()field.
-
-
-
Constructor Detail
-
XrEventDataDisplayRefreshRateChangedFB
public XrEventDataDisplayRefreshRateChangedFB(java.nio.ByteBuffer container)
Creates aXrEventDataDisplayRefreshRateChangedFBinstance 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
-
type
public int type()
theXrStructureTypeof this structure.
-
next
public long next()
NULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.
-
fromDisplayRefreshRate
public float fromDisplayRefreshRate()
the previous display refresh rate.
-
toDisplayRefreshRate
public float toDisplayRefreshRate()
the new display refresh rate.
-
type
public XrEventDataDisplayRefreshRateChangedFB type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrEventDataDisplayRefreshRateChangedFB type$Default()
Sets theTYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FBvalue to thetype()field.
-
next
public XrEventDataDisplayRefreshRateChangedFB next(long value)
Sets the specified value to thenext()field.
-
fromDisplayRefreshRate
public XrEventDataDisplayRefreshRateChangedFB fromDisplayRefreshRate(float value)
Sets the specified value to thefromDisplayRefreshRate()field.
-
toDisplayRefreshRate
public XrEventDataDisplayRefreshRateChangedFB toDisplayRefreshRate(float value)
Sets the specified value to thetoDisplayRefreshRate()field.
-
set
public XrEventDataDisplayRefreshRateChangedFB set(int type, long next, float fromDisplayRefreshRate, float toDisplayRefreshRate)
Initializes this struct with the specified values.
-
set
public XrEventDataDisplayRefreshRateChangedFB set(XrEventDataDisplayRefreshRateChangedFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrEventDataDisplayRefreshRateChangedFB malloc()
Returns a newXrEventDataDisplayRefreshRateChangedFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrEventDataDisplayRefreshRateChangedFB calloc()
Returns a newXrEventDataDisplayRefreshRateChangedFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrEventDataDisplayRefreshRateChangedFB create()
Returns a newXrEventDataDisplayRefreshRateChangedFBinstance allocated withBufferUtils.
-
create
public static XrEventDataDisplayRefreshRateChangedFB create(long address)
Returns a newXrEventDataDisplayRefreshRateChangedFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrEventDataDisplayRefreshRateChangedFB createSafe(long address)
-
create
public static XrEventDataDisplayRefreshRateChangedFB create(XrEventDataBaseHeader value)
Downcasts the specifiedXrEventDataBaseHeaderinstance toXrEventDataDisplayRefreshRateChangedFB.
-
malloc
public static XrEventDataDisplayRefreshRateChangedFB.Buffer malloc(int capacity)
Returns a newXrEventDataDisplayRefreshRateChangedFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrEventDataDisplayRefreshRateChangedFB.Buffer calloc(int capacity)
Returns a newXrEventDataDisplayRefreshRateChangedFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrEventDataDisplayRefreshRateChangedFB.Buffer create(int capacity)
Returns a newXrEventDataDisplayRefreshRateChangedFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrEventDataDisplayRefreshRateChangedFB.Buffer create(long address, int capacity)
Create aXrEventDataDisplayRefreshRateChangedFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrEventDataDisplayRefreshRateChangedFB.Buffer createSafe(long address, int capacity)
-
create
public static XrEventDataDisplayRefreshRateChangedFB.Buffer create(XrEventDataBaseHeader.Buffer value)
Downcasts the specifiedXrEventDataBaseHeader.Bufferinstance toXrEventDataDisplayRefreshRateChangedFB.Buffer.
-
malloc
public static XrEventDataDisplayRefreshRateChangedFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataDisplayRefreshRateChangedFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrEventDataDisplayRefreshRateChangedFB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataDisplayRefreshRateChangedFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrEventDataDisplayRefreshRateChangedFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataDisplayRefreshRateChangedFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrEventDataDisplayRefreshRateChangedFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataDisplayRefreshRateChangedFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nnext
public static long nnext(long struct)
Unsafe version ofnext().
-
nfromDisplayRefreshRate
public static float nfromDisplayRefreshRate(long struct)
Unsafe version offromDisplayRefreshRate().
-
ntoDisplayRefreshRate
public static float ntoDisplayRefreshRate(long struct)
Unsafe version oftoDisplayRefreshRate().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nfromDisplayRefreshRate
public static void nfromDisplayRefreshRate(long struct, float value)Unsafe version offromDisplayRefreshRate.
-
ntoDisplayRefreshRate
public static void ntoDisplayRefreshRate(long struct, float value)Unsafe version oftoDisplayRefreshRate.
-
-