public class BNDnodeTheme
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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)
struct BNDnodeTheme {
NVGcolor nodeSelectedColor;
NVGcolor wiresColor;
NVGcolor textSelectedColor;
NVGcolor activeNodeColor;
NVGcolor wireSelectColor;
NVGcolor nodeBackdropColor;
int noodleCurving;
}| Modifier and Type | Class and Description |
|---|---|
static class |
BNDnodeTheme.Buffer
An array of
BNDnodeTheme structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVENODECOLOR
The struct member offsets.
|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
NODEBACKDROPCOLOR
The struct member offsets.
|
static int |
NODESELECTEDCOLOR
The struct member offsets.
|
static int |
NOODLECURVING
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TEXTSELECTEDCOLOR
The struct member offsets.
|
static int |
WIRESCOLOR
The struct member offsets.
|
static int |
WIRESELECTCOLOR
The struct member offsets.
|
| Constructor and Description |
|---|
BNDnodeTheme(java.nio.ByteBuffer container)
Creates a
BNDnodeTheme instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
NVGColor |
activeNodeColor()
Returns a
NVGColor view of the activeNodeColor field. |
BNDnodeTheme |
activeNodeColor(java.util.function.Consumer<NVGColor> consumer)
Passes the
activeNodeColor field to the specified Consumer. |
BNDnodeTheme |
activeNodeColor(NVGColor value)
Copies the specified
NVGColor to the activeNodeColor field. |
static BNDnodeTheme |
calloc()
Returns a new
BNDnodeTheme instance allocated with memCalloc. |
static BNDnodeTheme.Buffer |
calloc(int capacity)
Returns a new
BNDnodeTheme.Buffer instance allocated with memCalloc. |
static BNDnodeTheme |
callocStack()
Returns a new
BNDnodeTheme instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static BNDnodeTheme.Buffer |
callocStack(int capacity)
Returns a new
BNDnodeTheme.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static BNDnodeTheme.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
BNDnodeTheme.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static BNDnodeTheme |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BNDnodeTheme instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static BNDnodeTheme |
create()
Returns a new
BNDnodeTheme instance allocated with BufferUtils. |
static BNDnodeTheme.Buffer |
create(int capacity)
Returns a new
BNDnodeTheme.Buffer instance allocated with BufferUtils. |
static BNDnodeTheme |
create(long address)
Returns a new
BNDnodeTheme instance for the specified memory address. |
static BNDnodeTheme.Buffer |
create(long address,
int capacity)
Create a
BNDnodeTheme.Buffer instance at the specified memory. |
static BNDnodeTheme |
createSafe(long address)
|
static BNDnodeTheme.Buffer |
createSafe(long address,
int capacity)
|
static BNDnodeTheme |
malloc()
Returns a new
BNDnodeTheme instance allocated with memAlloc. |
static BNDnodeTheme.Buffer |
malloc(int capacity)
Returns a new
BNDnodeTheme.Buffer instance allocated with memAlloc. |
static BNDnodeTheme |
mallocStack()
Returns a new
BNDnodeTheme instance allocated on the thread-local MemoryStack. |
static BNDnodeTheme.Buffer |
mallocStack(int capacity)
Returns a new
BNDnodeTheme.Buffer instance allocated on the thread-local MemoryStack. |
static BNDnodeTheme.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
BNDnodeTheme.Buffer instance allocated on the specified MemoryStack. |
static BNDnodeTheme |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BNDnodeTheme instance allocated on the specified MemoryStack. |
static NVGColor |
nactiveNodeColor(long struct)
Unsafe version of
activeNodeColor(). |
static void |
nactiveNodeColor(long struct,
NVGColor value)
Unsafe version of
activeNodeColor. |
static NVGColor |
nnodeBackdropColor(long struct)
Unsafe version of
nodeBackdropColor(). |
static void |
nnodeBackdropColor(long struct,
NVGColor value)
Unsafe version of
nodeBackdropColor. |
static NVGColor |
nnodeSelectedColor(long struct)
Unsafe version of
nodeSelectedColor(). |
static void |
nnodeSelectedColor(long struct,
NVGColor value)
Unsafe version of
nodeSelectedColor. |
static int |
nnoodleCurving(long struct)
Unsafe version of
noodleCurving(). |
static void |
nnoodleCurving(long struct,
int value)
Unsafe version of
noodleCurving. |
NVGColor |
nodeBackdropColor()
Returns a
NVGColor view of the nodeBackdropColor field. |
BNDnodeTheme |
nodeBackdropColor(java.util.function.Consumer<NVGColor> consumer)
Passes the
nodeBackdropColor field to the specified Consumer. |
BNDnodeTheme |
nodeBackdropColor(NVGColor value)
Copies the specified
NVGColor to the nodeBackdropColor field. |
NVGColor |
nodeSelectedColor()
Returns a
NVGColor view of the nodeSelectedColor field. |
BNDnodeTheme |
nodeSelectedColor(java.util.function.Consumer<NVGColor> consumer)
Passes the
nodeSelectedColor field to the specified Consumer. |
BNDnodeTheme |
nodeSelectedColor(NVGColor value)
Copies the specified
NVGColor to the nodeSelectedColor field. |
int |
noodleCurving()
Returns the value of the
noodleCurving field. |
BNDnodeTheme |
noodleCurving(int value)
Sets the specified value to the
noodleCurving field. |
static NVGColor |
ntextSelectedColor(long struct)
Unsafe version of
textSelectedColor(). |
static void |
ntextSelectedColor(long struct,
NVGColor value)
Unsafe version of
textSelectedColor. |
static NVGColor |
nwiresColor(long struct)
Unsafe version of
wiresColor(). |
static void |
nwiresColor(long struct,
NVGColor value)
Unsafe version of
wiresColor. |
static NVGColor |
nwireSelectColor(long struct)
Unsafe version of
wireSelectColor(). |
static void |
nwireSelectColor(long struct,
NVGColor value)
Unsafe version of
wireSelectColor. |
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 a
NVGColor view of the textSelectedColor field. |
BNDnodeTheme |
textSelectedColor(java.util.function.Consumer<NVGColor> consumer)
Passes the
textSelectedColor field to the specified Consumer. |
BNDnodeTheme |
textSelectedColor(NVGColor value)
Copies the specified
NVGColor to the textSelectedColor field. |
NVGColor |
wiresColor()
Returns a
NVGColor view of the wiresColor field. |
BNDnodeTheme |
wiresColor(java.util.function.Consumer<NVGColor> consumer)
Passes the
wiresColor field to the specified Consumer. |
BNDnodeTheme |
wiresColor(NVGColor value)
Copies the specified
NVGColor to the wiresColor field. |
NVGColor |
wireSelectColor()
Returns a
NVGColor view of the wireSelectColor field. |
BNDnodeTheme |
wireSelectColor(java.util.function.Consumer<NVGColor> consumer)
Passes the
wireSelectColor field to the specified Consumer. |
BNDnodeTheme |
wireSelectColor(NVGColor value)
Copies the specified
NVGColor to the wireSelectColor field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int NODESELECTEDCOLOR
public static final int WIRESCOLOR
public static final int TEXTSELECTEDCOLOR
public static final int ACTIVENODECOLOR
public static final int WIRESELECTCOLOR
public static final int NODEBACKDROPCOLOR
public static final int NOODLECURVING
public BNDnodeTheme(java.nio.ByteBuffer container)
BNDnodeTheme instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic NVGColor nodeSelectedColor()
NVGColor view of the nodeSelectedColor field.public NVGColor textSelectedColor()
NVGColor view of the textSelectedColor field.public NVGColor activeNodeColor()
NVGColor view of the activeNodeColor field.public NVGColor wireSelectColor()
NVGColor view of the wireSelectColor field.public NVGColor nodeBackdropColor()
NVGColor view of the nodeBackdropColor field.public int noodleCurving()
noodleCurving field.public BNDnodeTheme nodeSelectedColor(NVGColor value)
NVGColor to the nodeSelectedColor field.public BNDnodeTheme nodeSelectedColor(java.util.function.Consumer<NVGColor> consumer)
nodeSelectedColor field to the specified Consumer.public BNDnodeTheme wiresColor(NVGColor value)
NVGColor to the wiresColor field.public BNDnodeTheme wiresColor(java.util.function.Consumer<NVGColor> consumer)
wiresColor field to the specified Consumer.public BNDnodeTheme textSelectedColor(NVGColor value)
NVGColor to the textSelectedColor field.public BNDnodeTheme textSelectedColor(java.util.function.Consumer<NVGColor> consumer)
textSelectedColor field to the specified Consumer.public BNDnodeTheme activeNodeColor(NVGColor value)
NVGColor to the activeNodeColor field.public BNDnodeTheme activeNodeColor(java.util.function.Consumer<NVGColor> consumer)
activeNodeColor field to the specified Consumer.public BNDnodeTheme wireSelectColor(NVGColor value)
NVGColor to the wireSelectColor field.public BNDnodeTheme wireSelectColor(java.util.function.Consumer<NVGColor> consumer)
wireSelectColor field to the specified Consumer.public BNDnodeTheme nodeBackdropColor(NVGColor value)
NVGColor to the nodeBackdropColor field.public BNDnodeTheme nodeBackdropColor(java.util.function.Consumer<NVGColor> consumer)
nodeBackdropColor field to the specified Consumer.public BNDnodeTheme noodleCurving(int value)
noodleCurving field.public BNDnodeTheme set(NVGColor nodeSelectedColor, NVGColor wiresColor, NVGColor textSelectedColor, NVGColor activeNodeColor, NVGColor wireSelectColor, NVGColor nodeBackdropColor, int noodleCurving)
public BNDnodeTheme set(BNDnodeTheme src)
src - the source structpublic static BNDnodeTheme malloc()
BNDnodeTheme instance allocated with memAlloc. The instance must be explicitly freed.public static BNDnodeTheme calloc()
BNDnodeTheme instance allocated with memCalloc. The instance must be explicitly freed.public static BNDnodeTheme create()
BNDnodeTheme instance allocated with BufferUtils.public static BNDnodeTheme create(long address)
BNDnodeTheme instance for the specified memory address.@Nullable public static BNDnodeTheme createSafe(long address)
public static BNDnodeTheme.Buffer malloc(int capacity)
BNDnodeTheme.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static BNDnodeTheme.Buffer calloc(int capacity)
BNDnodeTheme.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static BNDnodeTheme.Buffer create(int capacity)
BNDnodeTheme.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static BNDnodeTheme.Buffer create(long address, int capacity)
BNDnodeTheme.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static BNDnodeTheme.Buffer createSafe(long address, int capacity)
public static BNDnodeTheme mallocStack()
BNDnodeTheme instance allocated on the thread-local MemoryStack.public static BNDnodeTheme callocStack()
BNDnodeTheme instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static BNDnodeTheme mallocStack(org.lwjgl.system.MemoryStack stack)
BNDnodeTheme instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static BNDnodeTheme callocStack(org.lwjgl.system.MemoryStack stack)
BNDnodeTheme instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static BNDnodeTheme.Buffer mallocStack(int capacity)
BNDnodeTheme.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static BNDnodeTheme.Buffer callocStack(int capacity)
BNDnodeTheme.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static BNDnodeTheme.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
BNDnodeTheme.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static BNDnodeTheme.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
BNDnodeTheme.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NVGColor nnodeSelectedColor(long struct)
nodeSelectedColor().public static NVGColor nwiresColor(long struct)
wiresColor().public static NVGColor ntextSelectedColor(long struct)
textSelectedColor().public static NVGColor nactiveNodeColor(long struct)
activeNodeColor().public static NVGColor nwireSelectColor(long struct)
wireSelectColor().public static NVGColor nnodeBackdropColor(long struct)
nodeBackdropColor().public static int nnoodleCurving(long struct)
noodleCurving().public static void nnodeSelectedColor(long struct,
NVGColor value)
nodeSelectedColor.public static void nwiresColor(long struct,
NVGColor value)
wiresColor.public static void ntextSelectedColor(long struct,
NVGColor value)
textSelectedColor.public static void nactiveNodeColor(long struct,
NVGColor value)
activeNodeColor.public static void nwireSelectColor(long struct,
NVGColor value)
wireSelectColor.public static void nnodeBackdropColor(long struct,
NVGColor value)
nodeBackdropColor.public static void nnoodleCurving(long struct,
int value)
noodleCurving.Copyright LWJGL. All Rights Reserved. License terms.