Package org.lwjgl.openvr
Class RenderModelControllerModeState
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.RenderModelControllerModeState
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class RenderModelControllerModeState extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Member documentation
bScrollWheelVisible
– is this controller currently set to be in a scroll wheel mode
Layout
struct RenderModel_ControllerMode_State_t { bool bScrollWheelVisible; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RenderModelControllerModeState.Buffer
An array ofRenderModelControllerModeState
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
BSCROLLWHEELVISIBLE
The struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description RenderModelControllerModeState(java.nio.ByteBuffer container)
Creates aRenderModelControllerModeState
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
bScrollWheelVisible()
Returns the value of thebScrollWheelVisible
field.RenderModelControllerModeState
bScrollWheelVisible(boolean value)
Sets the specified value to thebScrollWheelVisible
field.static RenderModelControllerModeState
calloc()
Returns a newRenderModelControllerModeState
instance allocated withmemCalloc
.static RenderModelControllerModeState.Buffer
calloc(int capacity)
Returns a newRenderModelControllerModeState.Buffer
instance allocated withmemCalloc
.static RenderModelControllerModeState
callocStack()
Returns a newRenderModelControllerModeState
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static RenderModelControllerModeState.Buffer
callocStack(int capacity)
Returns a newRenderModelControllerModeState.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static RenderModelControllerModeState.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelControllerModeState.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static RenderModelControllerModeState
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelControllerModeState
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static RenderModelControllerModeState
create()
Returns a newRenderModelControllerModeState
instance allocated withBufferUtils
.static RenderModelControllerModeState.Buffer
create(int capacity)
Returns a newRenderModelControllerModeState.Buffer
instance allocated withBufferUtils
.static RenderModelControllerModeState
create(long address)
Returns a newRenderModelControllerModeState
instance for the specified memory address.static RenderModelControllerModeState.Buffer
create(long address, int capacity)
Create aRenderModelControllerModeState.Buffer
instance at the specified memory.static RenderModelControllerModeState
createSafe(long address)
static RenderModelControllerModeState.Buffer
createSafe(long address, int capacity)
static RenderModelControllerModeState
malloc()
Returns a newRenderModelControllerModeState
instance allocated withmemAlloc
.static RenderModelControllerModeState.Buffer
malloc(int capacity)
Returns a newRenderModelControllerModeState.Buffer
instance allocated withmemAlloc
.static RenderModelControllerModeState
mallocStack()
Returns a newRenderModelControllerModeState
instance allocated on the thread-localMemoryStack
.static RenderModelControllerModeState.Buffer
mallocStack(int capacity)
Returns a newRenderModelControllerModeState.Buffer
instance allocated on the thread-localMemoryStack
.static RenderModelControllerModeState.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelControllerModeState.Buffer
instance allocated on the specifiedMemoryStack
.static RenderModelControllerModeState
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelControllerModeState
instance allocated on the specifiedMemoryStack
.static boolean
nbScrollWheelVisible(long struct)
Unsafe version ofbScrollWheelVisible()
.static void
nbScrollWheelVisible(long struct, boolean value)
Unsafe version ofbScrollWheelVisible
.RenderModelControllerModeState
set(RenderModelControllerModeState src)
Copies the specified struct data to this struct.int
sizeof()
-
-
-
Constructor Detail
-
RenderModelControllerModeState
public RenderModelControllerModeState(java.nio.ByteBuffer container)
Creates aRenderModelControllerModeState
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
-
bScrollWheelVisible
public boolean bScrollWheelVisible()
Returns the value of thebScrollWheelVisible
field.
-
bScrollWheelVisible
public RenderModelControllerModeState bScrollWheelVisible(boolean value)
Sets the specified value to thebScrollWheelVisible
field.
-
set
public RenderModelControllerModeState set(RenderModelControllerModeState src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static RenderModelControllerModeState malloc()
Returns a newRenderModelControllerModeState
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static RenderModelControllerModeState calloc()
Returns a newRenderModelControllerModeState
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static RenderModelControllerModeState create()
Returns a newRenderModelControllerModeState
instance allocated withBufferUtils
.
-
create
public static RenderModelControllerModeState create(long address)
Returns a newRenderModelControllerModeState
instance for the specified memory address.
-
createSafe
@Nullable public static RenderModelControllerModeState createSafe(long address)
-
malloc
public static RenderModelControllerModeState.Buffer malloc(int capacity)
Returns a newRenderModelControllerModeState.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static RenderModelControllerModeState.Buffer calloc(int capacity)
Returns a newRenderModelControllerModeState.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static RenderModelControllerModeState.Buffer create(int capacity)
Returns a newRenderModelControllerModeState.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static RenderModelControllerModeState.Buffer create(long address, int capacity)
Create aRenderModelControllerModeState.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static RenderModelControllerModeState.Buffer createSafe(long address, int capacity)
-
mallocStack
public static RenderModelControllerModeState mallocStack()
Returns a newRenderModelControllerModeState
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static RenderModelControllerModeState callocStack()
Returns a newRenderModelControllerModeState
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static RenderModelControllerModeState mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelControllerModeState
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static RenderModelControllerModeState callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelControllerModeState
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static RenderModelControllerModeState.Buffer mallocStack(int capacity)
Returns a newRenderModelControllerModeState.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static RenderModelControllerModeState.Buffer callocStack(int capacity)
Returns a newRenderModelControllerModeState.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static RenderModelControllerModeState.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelControllerModeState.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static RenderModelControllerModeState.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelControllerModeState.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nbScrollWheelVisible
public static boolean nbScrollWheelVisible(long struct)
Unsafe version ofbScrollWheelVisible()
.
-
nbScrollWheelVisible
public static void nbScrollWheelVisible(long struct, boolean value)
Unsafe version ofbScrollWheelVisible
.
-
-