Package org.lwjgl.ovr
Class OVRBoundaryLookAndFeel
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRBoundaryLookAndFeel
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class OVRBoundaryLookAndFeel extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Boundary system look and feel.Member documentation
Color
– Boundary color (alpha channel is ignored)
Layout
struct ovrBoundaryLookAndFeel {
ovrColorf
Color; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OVRBoundaryLookAndFeel.Buffer
An array ofOVRBoundaryLookAndFeel
structs.
-
Constructor Summary
Constructors Constructor Description OVRBoundaryLookAndFeel(java.nio.ByteBuffer container)
Creates aOVRBoundaryLookAndFeel
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OVRBoundaryLookAndFeel
calloc()
Returns a newOVRBoundaryLookAndFeel
instance allocated withmemCalloc
.static OVRBoundaryLookAndFeel.Buffer
calloc(int capacity)
Returns a newOVRBoundaryLookAndFeel.Buffer
instance allocated withmemCalloc
.static OVRBoundaryLookAndFeel
callocStack()
Returns a newOVRBoundaryLookAndFeel
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRBoundaryLookAndFeel.Buffer
callocStack(int capacity)
Returns a newOVRBoundaryLookAndFeel.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRBoundaryLookAndFeel.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRBoundaryLookAndFeel.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRBoundaryLookAndFeel
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRBoundaryLookAndFeel
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.OVRColorf
Color()
Returns aOVRColorf
view of theColor
field.OVRBoundaryLookAndFeel
Color(java.util.function.Consumer<OVRColorf> consumer)
Passes theColor
field to the specifiedConsumer
.OVRBoundaryLookAndFeel
Color(OVRColorf value)
Copies the specifiedOVRColorf
to theColor
field.static OVRBoundaryLookAndFeel
create()
Returns a newOVRBoundaryLookAndFeel
instance allocated withBufferUtils
.static OVRBoundaryLookAndFeel.Buffer
create(int capacity)
Returns a newOVRBoundaryLookAndFeel.Buffer
instance allocated withBufferUtils
.static OVRBoundaryLookAndFeel
create(long address)
Returns a newOVRBoundaryLookAndFeel
instance for the specified memory address.static OVRBoundaryLookAndFeel.Buffer
create(long address, int capacity)
Create aOVRBoundaryLookAndFeel.Buffer
instance at the specified memory.static OVRBoundaryLookAndFeel
createSafe(long address)
static OVRBoundaryLookAndFeel.Buffer
createSafe(long address, int capacity)
static OVRBoundaryLookAndFeel
malloc()
Returns a newOVRBoundaryLookAndFeel
instance allocated withmemAlloc
.static OVRBoundaryLookAndFeel.Buffer
malloc(int capacity)
Returns a newOVRBoundaryLookAndFeel.Buffer
instance allocated withmemAlloc
.static OVRBoundaryLookAndFeel
mallocStack()
Returns a newOVRBoundaryLookAndFeel
instance allocated on the thread-localMemoryStack
.static OVRBoundaryLookAndFeel.Buffer
mallocStack(int capacity)
Returns a newOVRBoundaryLookAndFeel.Buffer
instance allocated on the thread-localMemoryStack
.static OVRBoundaryLookAndFeel.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRBoundaryLookAndFeel.Buffer
instance allocated on the specifiedMemoryStack
.static OVRBoundaryLookAndFeel
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRBoundaryLookAndFeel
instance allocated on the specifiedMemoryStack
.static OVRColorf
nColor(long struct)
Unsafe version ofColor()
.static void
nColor(long struct, OVRColorf value)
Unsafe version ofColor
.OVRBoundaryLookAndFeel
set(OVRBoundaryLookAndFeel src)
Copies the specified struct data to this struct.int
sizeof()
-
-
-
Constructor Detail
-
OVRBoundaryLookAndFeel
public OVRBoundaryLookAndFeel(java.nio.ByteBuffer container)
Creates aOVRBoundaryLookAndFeel
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
-
Color
public OVRBoundaryLookAndFeel Color(OVRColorf value)
Copies the specifiedOVRColorf
to theColor
field.
-
Color
public OVRBoundaryLookAndFeel Color(java.util.function.Consumer<OVRColorf> consumer)
Passes theColor
field to the specifiedConsumer
.
-
set
public OVRBoundaryLookAndFeel set(OVRBoundaryLookAndFeel src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static OVRBoundaryLookAndFeel malloc()
Returns a newOVRBoundaryLookAndFeel
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static OVRBoundaryLookAndFeel calloc()
Returns a newOVRBoundaryLookAndFeel
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static OVRBoundaryLookAndFeel create()
Returns a newOVRBoundaryLookAndFeel
instance allocated withBufferUtils
.
-
create
public static OVRBoundaryLookAndFeel create(long address)
Returns a newOVRBoundaryLookAndFeel
instance for the specified memory address.
-
createSafe
@Nullable public static OVRBoundaryLookAndFeel createSafe(long address)
-
malloc
public static OVRBoundaryLookAndFeel.Buffer malloc(int capacity)
Returns a newOVRBoundaryLookAndFeel.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static OVRBoundaryLookAndFeel.Buffer calloc(int capacity)
Returns a newOVRBoundaryLookAndFeel.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRBoundaryLookAndFeel.Buffer create(int capacity)
Returns a newOVRBoundaryLookAndFeel.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRBoundaryLookAndFeel.Buffer create(long address, int capacity)
Create aOVRBoundaryLookAndFeel.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static OVRBoundaryLookAndFeel.Buffer createSafe(long address, int capacity)
-
mallocStack
public static OVRBoundaryLookAndFeel mallocStack()
Returns a newOVRBoundaryLookAndFeel
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static OVRBoundaryLookAndFeel callocStack()
Returns a newOVRBoundaryLookAndFeel
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static OVRBoundaryLookAndFeel mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRBoundaryLookAndFeel
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static OVRBoundaryLookAndFeel callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRBoundaryLookAndFeel
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static OVRBoundaryLookAndFeel.Buffer mallocStack(int capacity)
Returns a newOVRBoundaryLookAndFeel.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static OVRBoundaryLookAndFeel.Buffer callocStack(int capacity)
Returns a newOVRBoundaryLookAndFeel.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static OVRBoundaryLookAndFeel.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRBoundaryLookAndFeel.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static OVRBoundaryLookAndFeel.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRBoundaryLookAndFeel.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-