Package org.lwjgl.nanovg
Class BNDwidgetTheme
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<BNDwidgetTheme>
org.lwjgl.nanovg.BNDwidgetTheme
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class BNDwidgetTheme
extends org.lwjgl.system.Struct<BNDwidgetTheme>
implements org.lwjgl.system.NativeResource
Describes the theme used to draw a single widget or widget box; these values correspond to the same values that can be retrieved from the Theme panel
in the Blender preferences.
Layout
struct BNDwidgetTheme {
NVGcolor outlineColor();
NVGcolor itemColor();
NVGcolor innerColor();
NVGcolor innerSelectedColor();
NVGcolor textColor();
NVGcolor textSelectedColor();
int shadeTop();
int shadeDown();
}-
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 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 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBNDwidgetTheme(ByteBuffer container) Creates aBNDwidgetThemeinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic BNDwidgetThemecalloc()Returns a newBNDwidgetThemeinstance allocated withmemCalloc.static BNDwidgetTheme.Buffercalloc(int capacity) Returns a newBNDwidgetTheme.Bufferinstance allocated withmemCalloc.static BNDwidgetTheme.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newBNDwidgetTheme.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BNDwidgetThemecalloc(org.lwjgl.system.MemoryStack stack) Returns a newBNDwidgetThemeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BNDwidgetThemeDeprecated.static BNDwidgetTheme.BuffercallocStack(int capacity) Deprecated.static BNDwidgetTheme.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static BNDwidgetThemecallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static BNDwidgetThemecreate()Returns a newBNDwidgetThemeinstance allocated withBufferUtils.static BNDwidgetTheme.Buffercreate(int capacity) Returns a newBNDwidgetTheme.Bufferinstance allocated withBufferUtils.static BNDwidgetThemecreate(long address) Returns a newBNDwidgetThemeinstance for the specified memory address.static BNDwidgetTheme.Buffercreate(long address, int capacity) Create aBNDwidgetTheme.Bufferinstance at the specified memory.static BNDwidgetThemecreateSafe(long address) static BNDwidgetTheme.BuffercreateSafe(long address, int capacity) fill color of widget boxinnerColor(Consumer<NVGColor> consumer) Passes theinnerColor()field to the specifiedConsumer.innerColor(NVGColor value) Copies the specifiedNVGColorto theinnerColor()field.fill color of widget box when activeinnerSelectedColor(Consumer<NVGColor> consumer) Passes theinnerSelectedColor()field to the specifiedConsumer.innerSelectedColor(NVGColor value) Copies the specifiedNVGColorto theinnerSelectedColor()field.color of widget item (meaning changes depending on class)Passes theitemColor()field to the specifiedConsumer.Copies the specifiedNVGColorto theitemColor()field.static BNDwidgetThememalloc()Returns a newBNDwidgetThemeinstance allocated withmemAlloc.static BNDwidgetTheme.Buffermalloc(int capacity) Returns a newBNDwidgetTheme.Bufferinstance allocated withmemAlloc.static BNDwidgetTheme.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newBNDwidgetTheme.Bufferinstance allocated on the specifiedMemoryStack.static BNDwidgetThememalloc(org.lwjgl.system.MemoryStack stack) Returns a newBNDwidgetThemeinstance allocated on the specifiedMemoryStack.static BNDwidgetThemeDeprecated.static BNDwidgetTheme.BuffermallocStack(int capacity) Deprecated.static BNDwidgetTheme.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static BNDwidgetThememallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static NVGColorninnerColor(long struct) Unsafe version ofinnerColor().static voidninnerColor(long struct, NVGColor value) Unsafe version ofinnerColor.static NVGColorninnerSelectedColor(long struct) Unsafe version ofinnerSelectedColor().static voidninnerSelectedColor(long struct, NVGColor value) Unsafe version ofinnerSelectedColor.static NVGColornitemColor(long struct) Unsafe version ofitemColor().static voidnitemColor(long struct, NVGColor value) Unsafe version ofitemColor.static NVGColornoutlineColor(long struct) Unsafe version ofoutlineColor().static voidnoutlineColor(long struct, NVGColor value) Unsafe version ofoutlineColor.static intnshadeDown(long struct) Unsafe version ofshadeDown().static voidnshadeDown(long struct, int value) Unsafe version ofshadeDown.static intnshadeTop(long struct) Unsafe version ofshadeTop().static voidnshadeTop(long struct, int value) Unsafe version ofshadeTop.static NVGColorntextColor(long struct) Unsafe version oftextColor().static voidntextColor(long struct, NVGColor value) Unsafe version oftextColor.static NVGColorntextSelectedColor(long struct) Unsafe version oftextSelectedColor().static voidntextSelectedColor(long struct, NVGColor value) Unsafe version oftextSelectedColor.color of widget box outlineoutlineColor(Consumer<NVGColor> consumer) Passes theoutlineColor()field to the specifiedConsumer.outlineColor(NVGColor value) Copies the specifiedNVGColorto theoutlineColor()field.set(BNDwidgetTheme src) Copies the specified struct data to this struct.set(NVGColor outlineColor, NVGColor itemColor, NVGColor innerColor, NVGColor innerSelectedColor, NVGColor textColor, NVGColor textSelectedColor, int shadeTop, int shadeDown) Initializes this struct with the specified values.intdelta modifier for lower part of gradient (-100 to 100)shadeDown(int value) Sets the specified value to theshadeDown()field.intshadeTop()delta modifier for upper part of gradient (-100 to 100)shadeTop(int value) Sets the specified value to theshadeTop()field.intsizeof()color of text labelPasses thetextColor()field to the specifiedConsumer.Copies the specifiedNVGColorto thetextColor()field.color of text label when activetextSelectedColor(Consumer<NVGColor> consumer) Passes thetextSelectedColor()field to the specifiedConsumer.textSelectedColor(NVGColor value) Copies the specifiedNVGColorto thetextSelectedColor()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. -
OUTLINECOLOR
public static final int OUTLINECOLORThe struct member offsets. -
ITEMCOLOR
public static final int ITEMCOLORThe struct member offsets. -
INNERCOLOR
public static final int INNERCOLORThe struct member offsets. -
INNERSELECTEDCOLOR
public static final int INNERSELECTEDCOLORThe struct member offsets. -
TEXTCOLOR
public static final int TEXTCOLORThe struct member offsets. -
TEXTSELECTEDCOLOR
public static final int TEXTSELECTEDCOLORThe struct member offsets. -
SHADETOP
public static final int SHADETOPThe struct member offsets. -
SHADEDOWN
public static final int SHADEDOWNThe struct member offsets.
-
-
Constructor Details
-
BNDwidgetTheme
Creates aBNDwidgetThemeinstance 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<BNDwidgetTheme>
-
outlineColor
color of widget box outline -
itemColor
color of widget item (meaning changes depending on class) -
innerColor
fill color of widget box -
innerSelectedColor
fill color of widget box when active -
textColor
color of text label -
textSelectedColor
color of text label when active -
shadeTop
public int shadeTop()delta modifier for upper part of gradient (-100 to 100) -
shadeDown
public int shadeDown()delta modifier for lower part of gradient (-100 to 100) -
outlineColor
Copies the specifiedNVGColorto theoutlineColor()field. -
outlineColor
Passes theoutlineColor()field to the specifiedConsumer. -
itemColor
Copies the specifiedNVGColorto theitemColor()field. -
itemColor
Passes theitemColor()field to the specifiedConsumer. -
innerColor
Copies the specifiedNVGColorto theinnerColor()field. -
innerColor
Passes theinnerColor()field to the specifiedConsumer. -
innerSelectedColor
Copies the specifiedNVGColorto theinnerSelectedColor()field. -
innerSelectedColor
Passes theinnerSelectedColor()field to the specifiedConsumer. -
textColor
Copies the specifiedNVGColorto thetextColor()field. -
textColor
Passes thetextColor()field to the specifiedConsumer. -
textSelectedColor
Copies the specifiedNVGColorto thetextSelectedColor()field. -
textSelectedColor
Passes thetextSelectedColor()field to the specifiedConsumer. -
shadeTop
Sets the specified value to theshadeTop()field. -
shadeDown
Sets the specified value to theshadeDown()field. -
set
public BNDwidgetTheme set(NVGColor outlineColor, NVGColor itemColor, NVGColor innerColor, NVGColor innerSelectedColor, NVGColor textColor, NVGColor textSelectedColor, int shadeTop, int shadeDown) 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 newBNDwidgetThemeinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newBNDwidgetThemeinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newBNDwidgetThemeinstance allocated withBufferUtils. -
create
Returns a newBNDwidgetThemeinstance for the specified memory address. -
createSafe
-
malloc
Returns a newBNDwidgetTheme.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newBNDwidgetTheme.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newBNDwidgetTheme.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aBNDwidgetTheme.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 BNDwidgetTheme.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 BNDwidgetTheme.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newBNDwidgetThemeinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newBNDwidgetThemeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newBNDwidgetTheme.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newBNDwidgetTheme.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
noutlineColor
Unsafe version ofoutlineColor(). -
nitemColor
Unsafe version ofitemColor(). -
ninnerColor
Unsafe version ofinnerColor(). -
ninnerSelectedColor
Unsafe version ofinnerSelectedColor(). -
ntextColor
Unsafe version oftextColor(). -
ntextSelectedColor
Unsafe version oftextSelectedColor(). -
nshadeTop
public static int nshadeTop(long struct) Unsafe version ofshadeTop(). -
nshadeDown
public static int nshadeDown(long struct) Unsafe version ofshadeDown(). -
noutlineColor
Unsafe version ofoutlineColor. -
nitemColor
Unsafe version ofitemColor. -
ninnerColor
Unsafe version ofinnerColor. -
ninnerSelectedColor
Unsafe version ofinnerSelectedColor. -
ntextColor
Unsafe version oftextColor. -
ntextSelectedColor
Unsafe version oftextSelectedColor. -
nshadeTop
public static void nshadeTop(long struct, int value) Unsafe version ofshadeTop. -
nshadeDown
public static void nshadeDown(long struct, int value) Unsafe version ofshadeDown.
-