Package org.lwjgl.nanovg
Class BNDnodeTheme
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<BNDnodeTheme>
org.lwjgl.nanovg.BNDnodeTheme
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class BNDnodeTheme
extends org.lwjgl.system.Struct<BNDnodeTheme>
implements org.lwjgl.system.NativeResource
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 Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct member offsets.static final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBNDnodeTheme(ByteBuffer container) Creates aBNDnodeThemeinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioninner color of active node (and dragged wire)activeNodeColor(Consumer<NVGColor> consumer) Passes theactiveNodeColor()field to the specifiedConsumer.activeNodeColor(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 BNDnodeThemeDeprecated.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 BNDnodeThemeDeprecated.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.color of background of nodenodeBackdropColor(Consumer<NVGColor> consumer) Passes thenodeBackdropColor()field to the specifiedConsumer.nodeBackdropColor(NVGColor value) Copies the specifiedNVGColorto thenodeBackdropColor()field.inner color of selected node (and downarrow)nodeSelectedColor(Consumer<NVGColor> consumer) Passes thenodeSelectedColor()field to the specifiedConsumer.nodeSelectedColor(NVGColor value) Copies the specifiedNVGColorto thenodeSelectedColor()field.inthow much a noodle curves (0 to 10)noodleCurving(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.set(BNDnodeTheme src) Copies the specified struct data to this struct.set(NVGColor nodeSelectedColor, NVGColor wiresColor, NVGColor textSelectedColor, NVGColor activeNodeColor, NVGColor wireSelectColor, NVGColor nodeBackdropColor, int noodleCurving) Initializes this struct with the specified values.intsizeof()color of text label when activetextSelectedColor(Consumer<NVGColor> consumer) Passes thetextSelectedColor()field to the specifiedConsumer.textSelectedColor(NVGColor value) Copies the specifiedNVGColorto thetextSelectedColor()field.outline of wireswiresColor(Consumer<NVGColor> consumer) Passes thewiresColor()field to the specifiedConsumer.wiresColor(NVGColor value) Copies the specifiedNVGColorto thewiresColor()field.color of selected wirewireSelectColor(Consumer<NVGColor> consumer) Passes thewireSelectColor()field to the specifiedConsumer.wireSelectColor(NVGColor value) Copies the specifiedNVGColorto thewireSelectColor()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
NODESELECTEDCOLOR
public static final int NODESELECTEDCOLORThe struct member offsets. -
WIRESCOLOR
public static final int WIRESCOLORThe struct member offsets. -
TEXTSELECTEDCOLOR
public static final int TEXTSELECTEDCOLORThe struct member offsets. -
ACTIVENODECOLOR
public static final int ACTIVENODECOLORThe struct member offsets. -
WIRESELECTCOLOR
public static final int WIRESELECTCOLORThe struct member offsets. -
NODEBACKDROPCOLOR
public static final int NODEBACKDROPCOLORThe struct member offsets. -
NOODLECURVING
public static final int NOODLECURVINGThe struct member offsets.
-
-
Constructor Details
-
BNDnodeTheme
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<BNDnodeTheme>
-
nodeSelectedColor
inner color of selected node (and downarrow) -
wiresColor
outline of wires -
textSelectedColor
color of text label when active -
activeNodeColor
inner color of active node (and dragged wire) -
wireSelectColor
color of selected wire -
nodeBackdropColor
color of background of node -
noodleCurving
public int noodleCurving()how much a noodle curves (0 to 10) -
nodeSelectedColor
Copies the specifiedNVGColorto thenodeSelectedColor()field. -
nodeSelectedColor
Passes thenodeSelectedColor()field to the specifiedConsumer. -
wiresColor
Copies the specifiedNVGColorto thewiresColor()field. -
wiresColor
Passes thewiresColor()field to the specifiedConsumer. -
textSelectedColor
Copies the specifiedNVGColorto thetextSelectedColor()field. -
textSelectedColor
Passes thetextSelectedColor()field to the specifiedConsumer. -
activeNodeColor
Copies the specifiedNVGColorto theactiveNodeColor()field. -
activeNodeColor
Passes theactiveNodeColor()field to the specifiedConsumer. -
wireSelectColor
Copies the specifiedNVGColorto thewireSelectColor()field. -
wireSelectColor
Passes thewireSelectColor()field to the specifiedConsumer. -
nodeBackdropColor
Copies the specifiedNVGColorto thenodeBackdropColor()field. -
nodeBackdropColor
Passes thenodeBackdropColor()field to the specifiedConsumer. -
noodleCurving
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
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newBNDnodeThemeinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newBNDnodeThemeinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newBNDnodeThemeinstance allocated withBufferUtils. -
create
Returns a newBNDnodeThemeinstance for the specified memory address. -
createSafe
-
malloc
Returns a newBNDnodeTheme.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newBNDnodeTheme.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newBNDnodeTheme.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aBNDnodeTheme.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
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
Returns a newBNDnodeThemeinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newBNDnodeThemeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newBNDnodeTheme.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newBNDnodeTheme.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nnodeSelectedColor
Unsafe version ofnodeSelectedColor(). -
nwiresColor
Unsafe version ofwiresColor(). -
ntextSelectedColor
Unsafe version oftextSelectedColor(). -
nactiveNodeColor
Unsafe version ofactiveNodeColor(). -
nwireSelectColor
Unsafe version ofwireSelectColor(). -
nnodeBackdropColor
Unsafe version ofnodeBackdropColor(). -
nnoodleCurving
public static int nnoodleCurving(long struct) Unsafe version ofnoodleCurving(). -
nnodeSelectedColor
Unsafe version ofnodeSelectedColor. -
nwiresColor
Unsafe version ofwiresColor. -
ntextSelectedColor
Unsafe version oftextSelectedColor. -
nactiveNodeColor
Unsafe version ofactiveNodeColor. -
nwireSelectColor
Unsafe version ofwireSelectColor. -
nnodeBackdropColor
Unsafe version ofnodeBackdropColor. -
nnoodleCurving
public static void nnoodleCurving(long struct, int value) Unsafe version ofnoodleCurving.
-