Package org.lwjgl.nanovg
Class BNDtheme
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<BNDtheme>
org.lwjgl.nanovg.BNDtheme
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class BNDtheme
extends org.lwjgl.system.Struct<BNDtheme>
implements org.lwjgl.system.NativeResource
Describes the theme used to draw widgets.
Layout
struct BNDtheme {
NVGcolor backgroundColor();
BNDwidgetTheme regularTheme();
BNDwidgetTheme toolTheme();
BNDwidgetTheme radioTheme();
BNDwidgetTheme textFieldTheme();
BNDwidgetTheme optionTheme();
BNDwidgetTheme choiceTheme();
BNDwidgetTheme numberFieldTheme();
BNDwidgetTheme sliderTheme();
BNDwidgetTheme scrollBarTheme();
BNDwidgetTheme tooltipTheme();
BNDwidgetTheme menuTheme();
BNDwidgetTheme menuItemTheme();
BNDnodeTheme nodeTheme();
}-
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 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.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
ConstructorsConstructorDescriptionBNDtheme(ByteBuffer container) Creates aBNDthemeinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionthe background color of panels and windowsbackgroundColor(Consumer<NVGColor> consumer) Passes thebackgroundColor()field to the specifiedConsumer.backgroundColor(NVGColor value) Copies the specifiedNVGColorto thebackgroundColor()field.static BNDthemecalloc()Returns a newBNDthemeinstance allocated withmemCalloc.static BNDtheme.Buffercalloc(int capacity) Returns a newBNDtheme.Bufferinstance allocated withmemCalloc.static BNDtheme.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newBNDtheme.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BNDthemecalloc(org.lwjgl.system.MemoryStack stack) Returns a newBNDthemeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BNDthemeDeprecated.static BNDtheme.BuffercallocStack(int capacity) Deprecated.static BNDtheme.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static BNDthemecallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.theme for choice buttons (comboboxes) Blender calls them "menu buttons"choiceTheme(Consumer<BNDwidgetTheme> consumer) Passes thechoiceTheme()field to the specifiedConsumer.choiceTheme(BNDwidgetTheme value) Copies the specifiedBNDwidgetThemeto thechoiceTheme()field.static BNDthemecreate()Returns a newBNDthemeinstance allocated withBufferUtils.static BNDtheme.Buffercreate(int capacity) Returns a newBNDtheme.Bufferinstance allocated withBufferUtils.static BNDthemecreate(long address) Returns a newBNDthemeinstance for the specified memory address.static BNDtheme.Buffercreate(long address, int capacity) Create aBNDtheme.Bufferinstance at the specified memory.static BNDthemecreateSafe(long address) static BNDtheme.BuffercreateSafe(long address, int capacity) static BNDthememalloc()Returns a newBNDthemeinstance allocated withmemAlloc.static BNDtheme.Buffermalloc(int capacity) Returns a newBNDtheme.Bufferinstance allocated withmemAlloc.static BNDtheme.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newBNDtheme.Bufferinstance allocated on the specifiedMemoryStack.static BNDthememalloc(org.lwjgl.system.MemoryStack stack) Returns a newBNDthemeinstance allocated on the specifiedMemoryStack.static BNDthemeDeprecated.static BNDtheme.BuffermallocStack(int capacity) Deprecated.static BNDtheme.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static BNDthememallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.theme for menu itemsmenuItemTheme(Consumer<BNDwidgetTheme> consumer) Passes themenuItemTheme()field to the specifiedConsumer.menuItemTheme(BNDwidgetTheme value) Copies the specifiedBNDwidgetThemeto themenuItemTheme()field.theme for menu backgroundsmenuTheme(Consumer<BNDwidgetTheme> consumer) Passes themenuTheme()field to the specifiedConsumer.menuTheme(BNDwidgetTheme value) Copies the specifiedBNDwidgetThemeto themenuTheme()field.static NVGColornbackgroundColor(long struct) Unsafe version ofbackgroundColor().static voidnbackgroundColor(long struct, NVGColor value) Unsafe version ofbackgroundColor.static BNDwidgetThemenchoiceTheme(long struct) Unsafe version ofchoiceTheme().static voidnchoiceTheme(long struct, BNDwidgetTheme value) Unsafe version ofchoiceTheme.static BNDwidgetThemenmenuItemTheme(long struct) Unsafe version ofmenuItemTheme().static voidnmenuItemTheme(long struct, BNDwidgetTheme value) Unsafe version ofmenuItemTheme.static BNDwidgetThemenmenuTheme(long struct) Unsafe version ofmenuTheme().static voidnmenuTheme(long struct, BNDwidgetTheme value) Unsafe version ofmenuTheme.static BNDnodeThemennodeTheme(long struct) Unsafe version ofnodeTheme().static voidnnodeTheme(long struct, BNDnodeTheme value) Unsafe version ofnodeTheme.static BNDwidgetThemennumberFieldTheme(long struct) Unsafe version ofnumberFieldTheme().static voidnnumberFieldTheme(long struct, BNDwidgetTheme value) Unsafe version ofnumberFieldTheme.theme for nodesnodeTheme(Consumer<BNDnodeTheme> consumer) Passes thenodeTheme()field to the specifiedConsumer.nodeTheme(BNDnodeTheme value) Copies the specifiedBNDnodeThemeto thenodeTheme()field.static BNDwidgetThemenoptionTheme(long struct) Unsafe version ofoptionTheme().static voidnoptionTheme(long struct, BNDwidgetTheme value) Unsafe version ofoptionTheme.static BNDwidgetThemenradioTheme(long struct) Unsafe version ofradioTheme().static voidnradioTheme(long struct, BNDwidgetTheme value) Unsafe version ofradioTheme.static BNDwidgetThemenregularTheme(long struct) Unsafe version ofregularTheme().static voidnregularTheme(long struct, BNDwidgetTheme value) Unsafe version ofregularTheme.static BNDwidgetThemenscrollBarTheme(long struct) Unsafe version ofscrollBarTheme().static voidnscrollBarTheme(long struct, BNDwidgetTheme value) Unsafe version ofscrollBarTheme.static BNDwidgetThemensliderTheme(long struct) Unsafe version ofsliderTheme().static voidnsliderTheme(long struct, BNDwidgetTheme value) Unsafe version ofsliderTheme.static BNDwidgetThementextFieldTheme(long struct) Unsafe version oftextFieldTheme().static voidntextFieldTheme(long struct, BNDwidgetTheme value) Unsafe version oftextFieldTheme.static BNDwidgetThementoolTheme(long struct) Unsafe version oftoolTheme().static voidntoolTheme(long struct, BNDwidgetTheme value) Unsafe version oftoolTheme.static BNDwidgetThementooltipTheme(long struct) Unsafe version oftooltipTheme().static voidntooltipTheme(long struct, BNDwidgetTheme value) Unsafe version oftooltipTheme.theme for number fieldsnumberFieldTheme(Consumer<BNDwidgetTheme> consumer) Passes thenumberFieldTheme()field to the specifiedConsumer.numberFieldTheme(BNDwidgetTheme value) Copies the specifiedBNDwidgetThemeto thenumberFieldTheme()field.theme for option buttons (checkboxes)optionTheme(Consumer<BNDwidgetTheme> consumer) Passes theoptionTheme()field to the specifiedConsumer.optionTheme(BNDwidgetTheme value) Copies the specifiedBNDwidgetThemeto theoptionTheme()field.theme for radio buttonsradioTheme(Consumer<BNDwidgetTheme> consumer) Passes theradioTheme()field to the specifiedConsumer.radioTheme(BNDwidgetTheme value) Copies the specifiedBNDwidgetThemeto theradioTheme()field.theme for labelsregularTheme(Consumer<BNDwidgetTheme> consumer) Passes theregularTheme()field to the specifiedConsumer.regularTheme(BNDwidgetTheme value) Copies the specifiedBNDwidgetThemeto theregularTheme()field.theme for scrollbarsscrollBarTheme(Consumer<BNDwidgetTheme> consumer) Passes thescrollBarTheme()field to the specifiedConsumer.scrollBarTheme(BNDwidgetTheme value) Copies the specifiedBNDwidgetThemeto thescrollBarTheme()field.Copies the specified struct data to this struct.set(NVGColor backgroundColor, BNDwidgetTheme regularTheme, BNDwidgetTheme toolTheme, BNDwidgetTheme radioTheme, BNDwidgetTheme textFieldTheme, BNDwidgetTheme optionTheme, BNDwidgetTheme choiceTheme, BNDwidgetTheme numberFieldTheme, BNDwidgetTheme sliderTheme, BNDwidgetTheme scrollBarTheme, BNDwidgetTheme tooltipTheme, BNDwidgetTheme menuTheme, BNDwidgetTheme menuItemTheme, BNDnodeTheme nodeTheme) Initializes this struct with the specified values.intsizeof()theme for slider controlssliderTheme(Consumer<BNDwidgetTheme> consumer) Passes thesliderTheme()field to the specifiedConsumer.sliderTheme(BNDwidgetTheme value) Copies the specifiedBNDwidgetThemeto thesliderTheme()field.theme for text fieldstextFieldTheme(Consumer<BNDwidgetTheme> consumer) Passes thetextFieldTheme()field to the specifiedConsumer.textFieldTheme(BNDwidgetTheme value) Copies the specifiedBNDwidgetThemeto thetextFieldTheme()field.theme for tool buttonstoolTheme(Consumer<BNDwidgetTheme> consumer) Passes thetoolTheme()field to the specifiedConsumer.toolTheme(BNDwidgetTheme value) Copies the specifiedBNDwidgetThemeto thetoolTheme()field.theme for tooltipstooltipTheme(Consumer<BNDwidgetTheme> consumer) Passes thetooltipTheme()field to the specifiedConsumer.tooltipTheme(BNDwidgetTheme value) Copies the specifiedBNDwidgetThemeto thetooltipTheme()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. -
BACKGROUNDCOLOR
public static final int BACKGROUNDCOLORThe struct member offsets. -
REGULARTHEME
public static final int REGULARTHEMEThe struct member offsets. -
TOOLTHEME
public static final int TOOLTHEMEThe struct member offsets. -
RADIOTHEME
public static final int RADIOTHEMEThe struct member offsets. -
TEXTFIELDTHEME
public static final int TEXTFIELDTHEMEThe struct member offsets. -
OPTIONTHEME
public static final int OPTIONTHEMEThe struct member offsets. -
CHOICETHEME
public static final int CHOICETHEMEThe struct member offsets. -
NUMBERFIELDTHEME
public static final int NUMBERFIELDTHEMEThe struct member offsets. -
SLIDERTHEME
public static final int SLIDERTHEMEThe struct member offsets. -
SCROLLBARTHEME
public static final int SCROLLBARTHEMEThe struct member offsets. -
TOOLTIPTHEME
public static final int TOOLTIPTHEMEThe struct member offsets. -
MENUTHEME
public static final int MENUTHEMEThe struct member offsets. -
MENUITEMTHEME
public static final int MENUITEMTHEMEThe struct member offsets. -
NODETHEME
public static final int NODETHEMEThe struct member offsets.
-
-
Constructor Details
-
BNDtheme
Creates aBNDthemeinstance 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<BNDtheme>
-
backgroundColor
the background color of panels and windows -
regularTheme
theme for labels -
toolTheme
theme for tool buttons -
radioTheme
theme for radio buttons -
textFieldTheme
theme for text fields -
optionTheme
theme for option buttons (checkboxes) -
choiceTheme
theme for choice buttons (comboboxes) Blender calls them "menu buttons" -
numberFieldTheme
theme for number fields -
sliderTheme
theme for slider controls -
scrollBarTheme
theme for scrollbars -
tooltipTheme
theme for tooltips -
nodeTheme
theme for nodes -
backgroundColor
Copies the specifiedNVGColorto thebackgroundColor()field. -
backgroundColor
Passes thebackgroundColor()field to the specifiedConsumer. -
regularTheme
Copies the specifiedBNDwidgetThemeto theregularTheme()field. -
regularTheme
Passes theregularTheme()field to the specifiedConsumer. -
toolTheme
Copies the specifiedBNDwidgetThemeto thetoolTheme()field. -
toolTheme
Passes thetoolTheme()field to the specifiedConsumer. -
radioTheme
Copies the specifiedBNDwidgetThemeto theradioTheme()field. -
radioTheme
Passes theradioTheme()field to the specifiedConsumer. -
textFieldTheme
Copies the specifiedBNDwidgetThemeto thetextFieldTheme()field. -
textFieldTheme
Passes thetextFieldTheme()field to the specifiedConsumer. -
optionTheme
Copies the specifiedBNDwidgetThemeto theoptionTheme()field. -
optionTheme
Passes theoptionTheme()field to the specifiedConsumer. -
choiceTheme
Copies the specifiedBNDwidgetThemeto thechoiceTheme()field. -
choiceTheme
Passes thechoiceTheme()field to the specifiedConsumer. -
numberFieldTheme
Copies the specifiedBNDwidgetThemeto thenumberFieldTheme()field. -
numberFieldTheme
Passes thenumberFieldTheme()field to the specifiedConsumer. -
sliderTheme
Copies the specifiedBNDwidgetThemeto thesliderTheme()field. -
sliderTheme
Passes thesliderTheme()field to the specifiedConsumer. -
scrollBarTheme
Copies the specifiedBNDwidgetThemeto thescrollBarTheme()field. -
scrollBarTheme
Passes thescrollBarTheme()field to the specifiedConsumer. -
tooltipTheme
Copies the specifiedBNDwidgetThemeto thetooltipTheme()field. -
tooltipTheme
Passes thetooltipTheme()field to the specifiedConsumer. -
nodeTheme
Copies the specifiedBNDnodeThemeto thenodeTheme()field. -
nodeTheme
Passes thenodeTheme()field to the specifiedConsumer. -
set
public BNDtheme set(NVGColor backgroundColor, BNDwidgetTheme regularTheme, BNDwidgetTheme toolTheme, BNDwidgetTheme radioTheme, BNDwidgetTheme textFieldTheme, BNDwidgetTheme optionTheme, BNDwidgetTheme choiceTheme, BNDwidgetTheme numberFieldTheme, BNDwidgetTheme sliderTheme, BNDwidgetTheme scrollBarTheme, BNDwidgetTheme tooltipTheme, BNDwidgetTheme menuTheme, BNDwidgetTheme menuItemTheme, BNDnodeTheme nodeTheme) 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 newBNDthemeinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newBNDthemeinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newBNDthemeinstance allocated withBufferUtils. -
create
Returns a newBNDthemeinstance for the specified memory address. -
createSafe
-
malloc
Returns a newBNDtheme.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newBNDtheme.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newBNDtheme.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aBNDtheme.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 BNDtheme.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 BNDtheme.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newBNDthemeinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newBNDthemeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newBNDtheme.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newBNDtheme.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nbackgroundColor
Unsafe version ofbackgroundColor(). -
nregularTheme
Unsafe version ofregularTheme(). -
ntoolTheme
Unsafe version oftoolTheme(). -
nradioTheme
Unsafe version ofradioTheme(). -
ntextFieldTheme
Unsafe version oftextFieldTheme(). -
noptionTheme
Unsafe version ofoptionTheme(). -
nchoiceTheme
Unsafe version ofchoiceTheme(). -
nnumberFieldTheme
Unsafe version ofnumberFieldTheme(). -
nsliderTheme
Unsafe version ofsliderTheme(). -
nscrollBarTheme
Unsafe version ofscrollBarTheme(). -
ntooltipTheme
Unsafe version oftooltipTheme(). -
nnodeTheme
Unsafe version ofnodeTheme(). -
nbackgroundColor
Unsafe version ofbackgroundColor. -
nregularTheme
Unsafe version ofregularTheme. -
ntoolTheme
Unsafe version oftoolTheme. -
nradioTheme
Unsafe version ofradioTheme. -
ntextFieldTheme
Unsafe version oftextFieldTheme. -
noptionTheme
Unsafe version ofoptionTheme. -
nchoiceTheme
Unsafe version ofchoiceTheme. -
nnumberFieldTheme
Unsafe version ofnumberFieldTheme. -
nsliderTheme
Unsafe version ofsliderTheme. -
nscrollBarTheme
Unsafe version ofscrollBarTheme. -
ntooltipTheme
Unsafe version oftooltipTheme. -
nnodeTheme
Unsafe version ofnodeTheme.
-