Top Description Inners Fields Constructors Methods
org.lwjgl.nanovg

public Class BNDnodeTheme

extends Struct<BNDnodeTheme>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Describes the theme used to draw nodes.

Layout


struct BNDnodeTheme {
    NVGcolor nodeSelectedColor;
    NVGcolor wiresColor;
    NVGcolor textSelectedColor;
    NVGcolor activeNodeColor;
    NVGcolor wireSelectColor;
    NVGcolor nodeBackdropColor;
    int noodleCurving;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
BNDnodeTheme.Buffer

An array of BNDnodeTheme structs.

Field Summary

Modifier and TypeField and Description
public static final int
ACTIVENODECOLOR

The struct member offsets.

public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
NODEBACKDROPCOLOR

The struct member offsets.

public static final int
NODESELECTEDCOLOR

The struct member offsets.

public static final int
NOODLECURVING

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
TEXTSELECTEDCOLOR

The struct member offsets.

public static final int
WIRESCOLOR

The struct member offsets.

public static final int
WIRESELECTCOLOR

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
BNDnodeTheme(long address, ByteBuffer container)

public
BNDnodeTheme(ByteBuffer container)

Creates a BNDnodeTheme instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public NVGColor
activeNodeColor()

inner color of active node (and dragged wire)

public BNDnodeTheme
activeNodeColor(NVGColor value)

Copies the specified NVGColor to the activeNodeColor field.

public BNDnodeTheme
activeNodeColor(Consumer<NVGColor> consumer)

Passes the activeNodeColor field to the specified Consumer.

public static BNDnodeTheme
calloc()

Returns a new BNDnodeTheme instance allocated with memCalloc.

public static BNDnodeTheme.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new BNDnodeTheme.Buffer instance allocated with memCalloc.

public static BNDnodeTheme
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new BNDnodeTheme instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static BNDnodeTheme.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new BNDnodeTheme.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static BNDnodeTheme
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static BNDnodeTheme
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static BNDnodeTheme.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static BNDnodeTheme.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected BNDnodeTheme
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static BNDnodeTheme
create()

Returns a new BNDnodeTheme instance allocated with BufferUtils.

public static BNDnodeTheme
create(long address)

Returns a new BNDnodeTheme instance for the specified memory address.

public static BNDnodeTheme.Buffer
create(int
the buffer capacity
capacity
)

Returns a new BNDnodeTheme.Buffer instance allocated with BufferUtils.

public static BNDnodeTheme.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a BNDnodeTheme.Buffer instance at the specified memory.

public static BNDnodeTheme
createSafe(long address)

Like create, but returns null if address is NULL.

public static BNDnodeTheme.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public static BNDnodeTheme
malloc()

Returns a new BNDnodeTheme instance allocated with memAlloc.

public static BNDnodeTheme.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new BNDnodeTheme.Buffer instance allocated with memAlloc.

public static BNDnodeTheme
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new BNDnodeTheme instance allocated on the specified MemoryStack.

public static BNDnodeTheme.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new BNDnodeTheme.Buffer instance allocated on the specified MemoryStack.

public static BNDnodeTheme
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static BNDnodeTheme
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static BNDnodeTheme.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static BNDnodeTheme.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static NVGColor
nactiveNodeColor(long struct)

Unsafe version of activeNodeColor.

public static void
nactiveNodeColor(long struct, NVGColor value)

Unsafe version of activeNodeColor.

public static NVGColor
nnodeBackdropColor(long struct)

Unsafe version of nodeBackdropColor.

public static void
nnodeBackdropColor(long struct, NVGColor value)

Unsafe version of nodeBackdropColor.

public static NVGColor
nnodeSelectedColor(long struct)

Unsafe version of nodeSelectedColor.

public static void
nnodeSelectedColor(long struct, NVGColor value)

Unsafe version of nodeSelectedColor.

public static int
nnoodleCurving(long struct)

Unsafe version of noodleCurving.

public static void
nnoodleCurving(long struct, int value)

Unsafe version of noodleCurving.

public NVGColor
nodeBackdropColor()

color of background of node

public BNDnodeTheme
nodeBackdropColor(NVGColor value)

Copies the specified NVGColor to the nodeBackdropColor field.

public BNDnodeTheme
nodeBackdropColor(Consumer<NVGColor> consumer)

Passes the nodeBackdropColor field to the specified Consumer.

public NVGColor
nodeSelectedColor()

inner color of selected node (and downarrow)

public BNDnodeTheme
nodeSelectedColor(NVGColor value)

Copies the specified NVGColor to the nodeSelectedColor field.

public BNDnodeTheme
nodeSelectedColor(Consumer<NVGColor> consumer)

Passes the nodeSelectedColor field to the specified Consumer.

public int
noodleCurving()

how much a noodle curves (0 to 10)

public BNDnodeTheme
noodleCurving(int value)

Sets the specified value to the noodleCurving field.

public static NVGColor
ntextSelectedColor(long struct)

Unsafe version of textSelectedColor.

public static void
ntextSelectedColor(long struct, NVGColor value)

Unsafe version of textSelectedColor.

public static NVGColor
nwiresColor(long struct)

Unsafe version of wiresColor.

public static void
nwiresColor(long struct, NVGColor value)

Unsafe version of wiresColor.

public static NVGColor
nwireSelectColor(long struct)

Unsafe version of wireSelectColor.

public static void
nwireSelectColor(long struct, NVGColor value)

Unsafe version of wireSelectColor.

public BNDnodeTheme
set(NVGColor nodeSelectedColor, NVGColor wiresColor, NVGColor textSelectedColor, NVGColor activeNodeColor, NVGColor wireSelectColor, NVGColor nodeBackdropColor, int noodleCurving)

Initializes this struct with the specified values.

public BNDnodeTheme

Returns:

this struct
set
(BNDnodeTheme
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public NVGColor
textSelectedColor()

color of text label when active

public BNDnodeTheme
textSelectedColor(NVGColor value)

Copies the specified NVGColor to the textSelectedColor field.

public BNDnodeTheme
textSelectedColor(Consumer<NVGColor> consumer)

Passes the textSelectedColor field to the specified Consumer.

public NVGColor
wiresColor()

outline of wires

public BNDnodeTheme
wiresColor(NVGColor value)

Copies the specified NVGColor to the wiresColor field.

public BNDnodeTheme
wiresColor(Consumer<NVGColor> consumer)

Passes the wiresColor field to the specified Consumer.

public NVGColor
wireSelectColor()

color of selected wire

public BNDnodeTheme
wireSelectColor(NVGColor value)

Copies the specified NVGColor to the wireSelectColor field.

public BNDnodeTheme
wireSelectColor(Consumer<NVGColor> consumer)

Passes the wireSelectColor field to the specified Consumer.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate