Package org.lwjgl.nanovg
Class BNDnodeTheme
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nanovg.BNDnodeTheme
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class BNDnodeTheme extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Describes the theme used to draw nodes.Member documentation
nodeSelectedColor
– inner color of selected node (and downarrow)wiresColor
– outline of wirestextSelectedColor
– color of text label when activeactiveNodeColor
– inner color of active node (and dragged wire)wireSelectColor
– color of selected wirenodeBackdropColor
– color of background of nodenoodleCurving
– how much a noodle curves (0 to 10)
Layout
struct BNDnodeTheme {
NVGcolor
nodeSelectedColor;NVGcolor
wiresColor;NVGcolor
textSelectedColor;NVGcolor
activeNodeColor;NVGcolor
wireSelectColor;NVGcolor
nodeBackdropColor; int noodleCurving; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BNDnodeTheme.Buffer
An array ofBNDnodeTheme
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ACTIVENODECOLOR
The struct member offsets.static int
ALIGNOF
The struct alignment in bytes.static int
NODEBACKDROPCOLOR
NODESELECTEDCOLOR
NOODLECURVINGThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
TEXTSELECTEDCOLOR
WIRESCOLOR
WIRESELECTCOLORThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description BNDnodeTheme(java.nio.ByteBuffer container)
Creates aBNDnodeTheme
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NVGColor
activeNodeColor()
Returns aNVGColor
view of theactiveNodeColor
field.BNDnodeTheme
activeNodeColor(java.util.function.Consumer<NVGColor> consumer)
Passes theactiveNodeColor
field to the specifiedConsumer
.BNDnodeTheme
activeNodeColor(NVGColor value)
Copies the specifiedNVGColor
to theactiveNodeColor
field.static BNDnodeTheme
calloc()
Returns a newBNDnodeTheme
instance allocated withmemCalloc
.static BNDnodeTheme.Buffer
calloc(int capacity)
Returns a newBNDnodeTheme.Buffer
instance allocated withmemCalloc
.static BNDnodeTheme
callocStack()
Returns a newBNDnodeTheme
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static BNDnodeTheme.Buffer
callocStack(int capacity)
Returns a newBNDnodeTheme.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static BNDnodeTheme.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newBNDnodeTheme.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static BNDnodeTheme
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newBNDnodeTheme
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static BNDnodeTheme
create()
Returns a newBNDnodeTheme
instance allocated withBufferUtils
.static BNDnodeTheme.Buffer
create(int capacity)
Returns a newBNDnodeTheme.Buffer
instance allocated withBufferUtils
.static BNDnodeTheme
create(long address)
Returns a newBNDnodeTheme
instance for the specified memory address.static BNDnodeTheme.Buffer
create(long address, int capacity)
Create aBNDnodeTheme.Buffer
instance at the specified memory.static BNDnodeTheme
createSafe(long address)
static BNDnodeTheme.Buffer
createSafe(long address, int capacity)
static BNDnodeTheme
malloc()
Returns a newBNDnodeTheme
instance allocated withmemAlloc
.static BNDnodeTheme.Buffer
malloc(int capacity)
Returns a newBNDnodeTheme.Buffer
instance allocated withmemAlloc
.static BNDnodeTheme
mallocStack()
Returns a newBNDnodeTheme
instance allocated on the thread-localMemoryStack
.static BNDnodeTheme.Buffer
mallocStack(int capacity)
Returns a newBNDnodeTheme.Buffer
instance allocated on the thread-localMemoryStack
.static BNDnodeTheme.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newBNDnodeTheme.Buffer
instance allocated on the specifiedMemoryStack
.static BNDnodeTheme
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newBNDnodeTheme
instance allocated on the specifiedMemoryStack
.static NVGColor
nactiveNodeColor(long struct)
Unsafe version ofactiveNodeColor()
.static void
nactiveNodeColor(long struct, NVGColor value)
Unsafe version ofactiveNodeColor
.static NVGColor
nnodeBackdropColor(long struct)
Unsafe version ofnodeBackdropColor()
.static void
nnodeBackdropColor(long struct, NVGColor value)
Unsafe version ofnodeBackdropColor
.static NVGColor
nnodeSelectedColor(long struct)
Unsafe version ofnodeSelectedColor()
.static void
nnodeSelectedColor(long struct, NVGColor value)
Unsafe version ofnodeSelectedColor
.static int
nnoodleCurving(long struct)
Unsafe version ofnoodleCurving()
.static void
nnoodleCurving(long struct, int value)
Unsafe version ofnoodleCurving
.NVGColor
nodeBackdropColor()
Returns aNVGColor
view of thenodeBackdropColor
field.BNDnodeTheme
nodeBackdropColor(java.util.function.Consumer<NVGColor> consumer)
Passes thenodeBackdropColor
field to the specifiedConsumer
.BNDnodeTheme
nodeBackdropColor(NVGColor value)
Copies the specifiedNVGColor
to thenodeBackdropColor
field.NVGColor
nodeSelectedColor()
Returns aNVGColor
view of thenodeSelectedColor
field.BNDnodeTheme
nodeSelectedColor(java.util.function.Consumer<NVGColor> consumer)
Passes thenodeSelectedColor
field to the specifiedConsumer
.BNDnodeTheme
nodeSelectedColor(NVGColor value)
Copies the specifiedNVGColor
to thenodeSelectedColor
field.int
noodleCurving()
Returns the value of thenoodleCurving
field.BNDnodeTheme
noodleCurving(int value)
Sets the specified value to thenoodleCurving
field.static NVGColor
ntextSelectedColor(long struct)
Unsafe version oftextSelectedColor()
.static void
ntextSelectedColor(long struct, NVGColor value)
Unsafe version oftextSelectedColor
.static NVGColor
nwiresColor(long struct)
Unsafe version ofwiresColor()
.static void
nwiresColor(long struct, NVGColor value)
Unsafe version ofwiresColor
.static NVGColor
nwireSelectColor(long struct)
Unsafe version ofwireSelectColor()
.static void
nwireSelectColor(long struct, NVGColor value)
Unsafe version ofwireSelectColor
.BNDnodeTheme
set(BNDnodeTheme src)
Copies the specified struct data to this struct.BNDnodeTheme
set(NVGColor nodeSelectedColor, NVGColor wiresColor, NVGColor textSelectedColor, NVGColor activeNodeColor, NVGColor wireSelectColor, NVGColor nodeBackdropColor, int noodleCurving)
Initializes this struct with the specified values.int
sizeof()
NVGColor
textSelectedColor()
Returns aNVGColor
view of thetextSelectedColor
field.BNDnodeTheme
textSelectedColor(java.util.function.Consumer<NVGColor> consumer)
Passes thetextSelectedColor
field to the specifiedConsumer
.BNDnodeTheme
textSelectedColor(NVGColor value)
Copies the specifiedNVGColor
to thetextSelectedColor
field.NVGColor
wiresColor()
Returns aNVGColor
view of thewiresColor
field.BNDnodeTheme
wiresColor(java.util.function.Consumer<NVGColor> consumer)
Passes thewiresColor
field to the specifiedConsumer
.BNDnodeTheme
wiresColor(NVGColor value)
Copies the specifiedNVGColor
to thewiresColor
field.NVGColor
wireSelectColor()
Returns aNVGColor
view of thewireSelectColor
field.BNDnodeTheme
wireSelectColor(java.util.function.Consumer<NVGColor> consumer)
Passes thewireSelectColor
field to the specifiedConsumer
.BNDnodeTheme
wireSelectColor(NVGColor value)
Copies the specifiedNVGColor
to thewireSelectColor
field.
-
-
-
Constructor Detail
-
BNDnodeTheme
public BNDnodeTheme(java.nio.ByteBuffer container)
Creates aBNDnodeTheme
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
-
nodeSelectedColor
public NVGColor nodeSelectedColor()
Returns aNVGColor
view of thenodeSelectedColor
field.
-
textSelectedColor
public NVGColor textSelectedColor()
Returns aNVGColor
view of thetextSelectedColor
field.
-
activeNodeColor
public NVGColor activeNodeColor()
Returns aNVGColor
view of theactiveNodeColor
field.
-
wireSelectColor
public NVGColor wireSelectColor()
Returns aNVGColor
view of thewireSelectColor
field.
-
nodeBackdropColor
public NVGColor nodeBackdropColor()
Returns aNVGColor
view of thenodeBackdropColor
field.
-
noodleCurving
public int noodleCurving()
Returns the value of thenoodleCurving
field.
-
nodeSelectedColor
public BNDnodeTheme nodeSelectedColor(NVGColor value)
Copies the specifiedNVGColor
to thenodeSelectedColor
field.
-
nodeSelectedColor
public BNDnodeTheme nodeSelectedColor(java.util.function.Consumer<NVGColor> consumer)
Passes thenodeSelectedColor
field to the specifiedConsumer
.
-
wiresColor
public BNDnodeTheme wiresColor(NVGColor value)
Copies the specifiedNVGColor
to thewiresColor
field.
-
wiresColor
public BNDnodeTheme wiresColor(java.util.function.Consumer<NVGColor> consumer)
Passes thewiresColor
field to the specifiedConsumer
.
-
textSelectedColor
public BNDnodeTheme textSelectedColor(NVGColor value)
Copies the specifiedNVGColor
to thetextSelectedColor
field.
-
textSelectedColor
public BNDnodeTheme textSelectedColor(java.util.function.Consumer<NVGColor> consumer)
Passes thetextSelectedColor
field to the specifiedConsumer
.
-
activeNodeColor
public BNDnodeTheme activeNodeColor(NVGColor value)
Copies the specifiedNVGColor
to theactiveNodeColor
field.
-
activeNodeColor
public BNDnodeTheme activeNodeColor(java.util.function.Consumer<NVGColor> consumer)
Passes theactiveNodeColor
field to the specifiedConsumer
.
-
wireSelectColor
public BNDnodeTheme wireSelectColor(NVGColor value)
Copies the specifiedNVGColor
to thewireSelectColor
field.
-
wireSelectColor
public BNDnodeTheme wireSelectColor(java.util.function.Consumer<NVGColor> consumer)
Passes thewireSelectColor
field to the specifiedConsumer
.
-
nodeBackdropColor
public BNDnodeTheme nodeBackdropColor(NVGColor value)
Copies the specifiedNVGColor
to thenodeBackdropColor
field.
-
nodeBackdropColor
public BNDnodeTheme nodeBackdropColor(java.util.function.Consumer<NVGColor> consumer)
Passes thenodeBackdropColor
field to the specifiedConsumer
.
-
noodleCurving
public BNDnodeTheme noodleCurving(int value)
Sets the specified value to thenoodleCurving
field.
-
set
public BNDnodeTheme set(NVGColor nodeSelectedColor, NVGColor wiresColor, NVGColor textSelectedColor, NVGColor activeNodeColor, NVGColor wireSelectColor, NVGColor nodeBackdropColor, int noodleCurving)
Initializes this struct with the specified values.
-
set
public BNDnodeTheme set(BNDnodeTheme src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static BNDnodeTheme malloc()
Returns a newBNDnodeTheme
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static BNDnodeTheme calloc()
Returns a newBNDnodeTheme
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static BNDnodeTheme create()
Returns a newBNDnodeTheme
instance allocated withBufferUtils
.
-
create
public static BNDnodeTheme create(long address)
Returns a newBNDnodeTheme
instance for the specified memory address.
-
createSafe
@Nullable public static BNDnodeTheme createSafe(long address)
-
malloc
public static BNDnodeTheme.Buffer malloc(int capacity)
Returns a newBNDnodeTheme.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static BNDnodeTheme.Buffer calloc(int capacity)
Returns a newBNDnodeTheme.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static BNDnodeTheme.Buffer create(int capacity)
Returns a newBNDnodeTheme.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static BNDnodeTheme.Buffer create(long address, int capacity)
Create aBNDnodeTheme.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static BNDnodeTheme.Buffer createSafe(long address, int capacity)
-
mallocStack
public static BNDnodeTheme mallocStack()
Returns a newBNDnodeTheme
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static BNDnodeTheme callocStack()
Returns a newBNDnodeTheme
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static BNDnodeTheme mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newBNDnodeTheme
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static BNDnodeTheme callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newBNDnodeTheme
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static BNDnodeTheme.Buffer mallocStack(int capacity)
Returns a newBNDnodeTheme.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static BNDnodeTheme.Buffer callocStack(int capacity)
Returns a newBNDnodeTheme.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static BNDnodeTheme.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newBNDnodeTheme.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static BNDnodeTheme.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newBNDnodeTheme.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nnodeSelectedColor
public static NVGColor nnodeSelectedColor(long struct)
Unsafe version ofnodeSelectedColor()
.
-
nwiresColor
public static NVGColor nwiresColor(long struct)
Unsafe version ofwiresColor()
.
-
ntextSelectedColor
public static NVGColor ntextSelectedColor(long struct)
Unsafe version oftextSelectedColor()
.
-
nactiveNodeColor
public static NVGColor nactiveNodeColor(long struct)
Unsafe version ofactiveNodeColor()
.
-
nwireSelectColor
public static NVGColor nwireSelectColor(long struct)
Unsafe version ofwireSelectColor()
.
-
nnodeBackdropColor
public static NVGColor nnodeBackdropColor(long struct)
Unsafe version ofnodeBackdropColor()
.
-
nnoodleCurving
public static int nnoodleCurving(long struct)
Unsafe version ofnoodleCurving()
.
-
nnodeSelectedColor
public static void nnodeSelectedColor(long struct, NVGColor value)
Unsafe version ofnodeSelectedColor
.
-
nwiresColor
public static void nwiresColor(long struct, NVGColor value)
Unsafe version ofwiresColor
.
-
ntextSelectedColor
public static void ntextSelectedColor(long struct, NVGColor value)
Unsafe version oftextSelectedColor
.
-
nactiveNodeColor
public static void nactiveNodeColor(long struct, NVGColor value)
Unsafe version ofactiveNodeColor
.
-
nwireSelectColor
public static void nwireSelectColor(long struct, NVGColor value)
Unsafe version ofwireSelectColor
.
-
nnodeBackdropColor
public static void nnodeBackdropColor(long struct, NVGColor value)
Unsafe version ofnodeBackdropColor
.
-
nnoodleCurving
public static void nnoodleCurving(long struct, int value)
Unsafe version ofnoodleCurving
.
-
-