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.NativeResourceMember 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 classRenderModelControllerModeState.BufferAn array ofRenderModelControllerModeStatestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBSCROLLWHEELVISIBLEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description RenderModelControllerModeState(java.nio.ByteBuffer container)Creates aRenderModelControllerModeStateinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbScrollWheelVisible()Returns the value of thebScrollWheelVisiblefield.RenderModelControllerModeStatebScrollWheelVisible(boolean value)Sets the specified value to thebScrollWheelVisiblefield.static RenderModelControllerModeStatecalloc()Returns a newRenderModelControllerModeStateinstance allocated withmemCalloc.static RenderModelControllerModeState.Buffercalloc(int capacity)Returns a newRenderModelControllerModeState.Bufferinstance allocated withmemCalloc.static RenderModelControllerModeStatecallocStack()Returns a newRenderModelControllerModeStateinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static RenderModelControllerModeState.BuffercallocStack(int capacity)Returns a newRenderModelControllerModeState.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static RenderModelControllerModeState.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newRenderModelControllerModeState.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static RenderModelControllerModeStatecallocStack(org.lwjgl.system.MemoryStack stack)Returns a newRenderModelControllerModeStateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static RenderModelControllerModeStatecreate()Returns a newRenderModelControllerModeStateinstance allocated withBufferUtils.static RenderModelControllerModeState.Buffercreate(int capacity)Returns a newRenderModelControllerModeState.Bufferinstance allocated withBufferUtils.static RenderModelControllerModeStatecreate(long address)Returns a newRenderModelControllerModeStateinstance for the specified memory address.static RenderModelControllerModeState.Buffercreate(long address, int capacity)Create aRenderModelControllerModeState.Bufferinstance at the specified memory.static RenderModelControllerModeStatecreateSafe(long address)static RenderModelControllerModeState.BuffercreateSafe(long address, int capacity)static RenderModelControllerModeStatemalloc()Returns a newRenderModelControllerModeStateinstance allocated withmemAlloc.static RenderModelControllerModeState.Buffermalloc(int capacity)Returns a newRenderModelControllerModeState.Bufferinstance allocated withmemAlloc.static RenderModelControllerModeStatemallocStack()Returns a newRenderModelControllerModeStateinstance allocated on the thread-localMemoryStack.static RenderModelControllerModeState.BuffermallocStack(int capacity)Returns a newRenderModelControllerModeState.Bufferinstance allocated on the thread-localMemoryStack.static RenderModelControllerModeState.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newRenderModelControllerModeState.Bufferinstance allocated on the specifiedMemoryStack.static RenderModelControllerModeStatemallocStack(org.lwjgl.system.MemoryStack stack)Returns a newRenderModelControllerModeStateinstance allocated on the specifiedMemoryStack.static booleannbScrollWheelVisible(long struct)Unsafe version ofbScrollWheelVisible().static voidnbScrollWheelVisible(long struct, boolean value)Unsafe version ofbScrollWheelVisible.RenderModelControllerModeStateset(RenderModelControllerModeState src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
RenderModelControllerModeState
public RenderModelControllerModeState(java.nio.ByteBuffer container)
Creates aRenderModelControllerModeStateinstance 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
-
bScrollWheelVisible
public boolean bScrollWheelVisible()
Returns the value of thebScrollWheelVisiblefield.
-
bScrollWheelVisible
public RenderModelControllerModeState bScrollWheelVisible(boolean value)
Sets the specified value to thebScrollWheelVisiblefield.
-
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 newRenderModelControllerModeStateinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static RenderModelControllerModeState calloc()
Returns a newRenderModelControllerModeStateinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static RenderModelControllerModeState create()
Returns a newRenderModelControllerModeStateinstance allocated withBufferUtils.
-
create
public static RenderModelControllerModeState create(long address)
Returns a newRenderModelControllerModeStateinstance for the specified memory address.
-
createSafe
@Nullable public static RenderModelControllerModeState createSafe(long address)
-
malloc
public static RenderModelControllerModeState.Buffer malloc(int capacity)
Returns a newRenderModelControllerModeState.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static RenderModelControllerModeState.Buffer calloc(int capacity)
Returns a newRenderModelControllerModeState.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static RenderModelControllerModeState.Buffer create(int capacity)
Returns a newRenderModelControllerModeState.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static RenderModelControllerModeState.Buffer create(long address, int capacity)
Create aRenderModelControllerModeState.Bufferinstance 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 newRenderModelControllerModeStateinstance allocated on the thread-localMemoryStack.
-
callocStack
public static RenderModelControllerModeState callocStack()
Returns a newRenderModelControllerModeStateinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static RenderModelControllerModeState mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelControllerModeStateinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static RenderModelControllerModeState callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelControllerModeStateinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static RenderModelControllerModeState.Buffer callocStack(int capacity)
Returns a newRenderModelControllerModeState.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-