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.NativeResourceDescribes the theme used to draw nodes.Layout
struct BNDnodeTheme {NVGcolornodeSelectedColor();NVGcolorwiresColor();NVGcolortextSelectedColor();NVGcoloractiveNodeColor();NVGcolorwireSelectColor();NVGcolornodeBackdropColor(); intnoodleCurving(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBNDnodeTheme.BufferAn array ofBNDnodeThemestructs.
-
Field Summary
Fields Modifier and Type Field Description static intACTIVENODECOLORThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intNODEBACKDROPCOLOR
NODESELECTEDCOLOR
NOODLECURVINGThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTEXTSELECTEDCOLOR
WIRESCOLOR
WIRESELECTCOLORThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description BNDnodeTheme(java.nio.ByteBuffer container)Creates aBNDnodeThemeinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description NVGColoractiveNodeColor()inner color of active node (and dragged wire)BNDnodeThemeactiveNodeColor(java.util.function.Consumer<NVGColor> consumer)Passes theactiveNodeColor()field to the specifiedConsumer.BNDnodeThemeactiveNodeColor(NVGColor value)Copies the specifiedNVGColorto theactiveNodeColor()field.static BNDnodeThemecalloc()Returns a newBNDnodeThemeinstance allocated withmemCalloc.static BNDnodeTheme.Buffercalloc(int capacity)Returns a newBNDnodeTheme.Bufferinstance allocated withmemCalloc.static BNDnodeTheme.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newBNDnodeTheme.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BNDnodeThemecalloc(org.lwjgl.system.MemoryStack stack)Returns a newBNDnodeThemeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BNDnodeThemecallocStack()Deprecated.static BNDnodeTheme.BuffercallocStack(int capacity)Deprecated.static BNDnodeTheme.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static BNDnodeThemecallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static BNDnodeThemecreate()Returns a newBNDnodeThemeinstance allocated withBufferUtils.static BNDnodeTheme.Buffercreate(int capacity)Returns a newBNDnodeTheme.Bufferinstance allocated withBufferUtils.static BNDnodeThemecreate(long address)Returns a newBNDnodeThemeinstance for the specified memory address.static BNDnodeTheme.Buffercreate(long address, int capacity)Create aBNDnodeTheme.Bufferinstance at the specified memory.static BNDnodeThemecreateSafe(long address)static BNDnodeTheme.BuffercreateSafe(long address, int capacity)static BNDnodeThememalloc()Returns a newBNDnodeThemeinstance allocated withmemAlloc.static BNDnodeTheme.Buffermalloc(int capacity)Returns a newBNDnodeTheme.Bufferinstance allocated withmemAlloc.static BNDnodeTheme.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newBNDnodeTheme.Bufferinstance allocated on the specifiedMemoryStack.static BNDnodeThememalloc(org.lwjgl.system.MemoryStack stack)Returns a newBNDnodeThemeinstance allocated on the specifiedMemoryStack.static BNDnodeThememallocStack()Deprecated.static BNDnodeTheme.BuffermallocStack(int capacity)Deprecated.static BNDnodeTheme.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static BNDnodeThememallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static NVGColornactiveNodeColor(long struct)Unsafe version ofactiveNodeColor().static voidnactiveNodeColor(long struct, NVGColor value)Unsafe version ofactiveNodeColor.static NVGColornnodeBackdropColor(long struct)Unsafe version ofnodeBackdropColor().static voidnnodeBackdropColor(long struct, NVGColor value)Unsafe version ofnodeBackdropColor.static NVGColornnodeSelectedColor(long struct)Unsafe version ofnodeSelectedColor().static voidnnodeSelectedColor(long struct, NVGColor value)Unsafe version ofnodeSelectedColor.static intnnoodleCurving(long struct)Unsafe version ofnoodleCurving().static voidnnoodleCurving(long struct, int value)Unsafe version ofnoodleCurving.NVGColornodeBackdropColor()color of background of nodeBNDnodeThemenodeBackdropColor(java.util.function.Consumer<NVGColor> consumer)Passes thenodeBackdropColor()field to the specifiedConsumer.BNDnodeThemenodeBackdropColor(NVGColor value)Copies the specifiedNVGColorto thenodeBackdropColor()field.NVGColornodeSelectedColor()inner color of selected node (and downarrow)BNDnodeThemenodeSelectedColor(java.util.function.Consumer<NVGColor> consumer)Passes thenodeSelectedColor()field to the specifiedConsumer.BNDnodeThemenodeSelectedColor(NVGColor value)Copies the specifiedNVGColorto thenodeSelectedColor()field.intnoodleCurving()how much a noodle curves (0 to 10)BNDnodeThemenoodleCurving(int value)Sets the specified value to thenoodleCurving()field.static NVGColorntextSelectedColor(long struct)Unsafe version oftextSelectedColor().static voidntextSelectedColor(long struct, NVGColor value)Unsafe version oftextSelectedColor.static NVGColornwiresColor(long struct)Unsafe version ofwiresColor().static voidnwiresColor(long struct, NVGColor value)Unsafe version ofwiresColor.static NVGColornwireSelectColor(long struct)Unsafe version ofwireSelectColor().static voidnwireSelectColor(long struct, NVGColor value)Unsafe version ofwireSelectColor.BNDnodeThemeset(BNDnodeTheme src)Copies the specified struct data to this struct.BNDnodeThemeset(NVGColor nodeSelectedColor, NVGColor wiresColor, NVGColor textSelectedColor, NVGColor activeNodeColor, NVGColor wireSelectColor, NVGColor nodeBackdropColor, int noodleCurving)Initializes this struct with the specified values.intsizeof()NVGColortextSelectedColor()color of text label when activeBNDnodeThemetextSelectedColor(java.util.function.Consumer<NVGColor> consumer)Passes thetextSelectedColor()field to the specifiedConsumer.BNDnodeThemetextSelectedColor(NVGColor value)Copies the specifiedNVGColorto thetextSelectedColor()field.NVGColorwiresColor()outline of wiresBNDnodeThemewiresColor(java.util.function.Consumer<NVGColor> consumer)Passes thewiresColor()field to the specifiedConsumer.BNDnodeThemewiresColor(NVGColor value)Copies the specifiedNVGColorto thewiresColor()field.NVGColorwireSelectColor()color of selected wireBNDnodeThemewireSelectColor(java.util.function.Consumer<NVGColor> consumer)Passes thewireSelectColor()field to the specifiedConsumer.BNDnodeThemewireSelectColor(NVGColor value)Copies the specifiedNVGColorto thewireSelectColor()field.
-
-
-
Constructor Detail
-
BNDnodeTheme
public BNDnodeTheme(java.nio.ByteBuffer container)
Creates aBNDnodeThemeinstance 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
-
nodeSelectedColor
public NVGColor nodeSelectedColor()
inner color of selected node (and downarrow)
-
wiresColor
public NVGColor wiresColor()
outline of wires
-
textSelectedColor
public NVGColor textSelectedColor()
color of text label when active
-
activeNodeColor
public NVGColor activeNodeColor()
inner color of active node (and dragged wire)
-
wireSelectColor
public NVGColor wireSelectColor()
color of selected wire
-
nodeBackdropColor
public NVGColor nodeBackdropColor()
color of background of node
-
noodleCurving
public int noodleCurving()
how much a noodle curves (0 to 10)
-
nodeSelectedColor
public BNDnodeTheme nodeSelectedColor(NVGColor value)
Copies the specifiedNVGColorto 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 specifiedNVGColorto 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 specifiedNVGColorto 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 specifiedNVGColorto 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 specifiedNVGColorto 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 specifiedNVGColorto 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 newBNDnodeThemeinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static BNDnodeTheme calloc()
Returns a newBNDnodeThemeinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static BNDnodeTheme create()
Returns a newBNDnodeThemeinstance allocated withBufferUtils.
-
create
public static BNDnodeTheme create(long address)
Returns a newBNDnodeThemeinstance for the specified memory address.
-
createSafe
@Nullable public static BNDnodeTheme createSafe(long address)
-
malloc
public static BNDnodeTheme.Buffer malloc(int capacity)
Returns a newBNDnodeTheme.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static BNDnodeTheme.Buffer calloc(int capacity)
Returns a newBNDnodeTheme.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static BNDnodeTheme.Buffer create(int capacity)
Returns a newBNDnodeTheme.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static BNDnodeTheme.Buffer create(long address, int capacity)
Create aBNDnodeTheme.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static BNDnodeTheme.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static BNDnodeTheme mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static BNDnodeTheme callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static BNDnodeTheme mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static BNDnodeTheme callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static BNDnodeTheme.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static BNDnodeTheme.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static BNDnodeTheme.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static BNDnodeTheme.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static BNDnodeTheme malloc(org.lwjgl.system.MemoryStack stack)
Returns a newBNDnodeThemeinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static BNDnodeTheme calloc(org.lwjgl.system.MemoryStack stack)
Returns a newBNDnodeThemeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static BNDnodeTheme.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newBNDnodeTheme.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static BNDnodeTheme.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newBNDnodeTheme.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-