Top Description Inners Fields Constructors Methods
org.lwjgl.nanovg

public Class BNDtheme

extends Struct<BNDtheme>
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 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 and Inner Type Summary

Modifier and TypeClass and Description
public static class
BNDtheme.Buffer

An array of BNDtheme structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BACKGROUNDCOLOR

The struct member offsets.

public static final int
CHOICETHEME

The struct member offsets.

public static final int
NODETHEME

The struct member offsets.

public static final int
NUMBERFIELDTHEME

The struct member offsets.

public static final int
OPTIONTHEME

The struct member offsets.

public static final int
RADIOTHEME

The struct member offsets.

public static final int
REGULARTHEME

The struct member offsets.

public static final int
SCROLLBARTHEME

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SLIDERTHEME

The struct member offsets.

public static final int
TEXTFIELDTHEME

The struct member offsets.

public static final int
TOOLTHEME

The struct member offsets.

public static final int
TOOLTIPTHEME

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
BNDtheme(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public NVGColor
backgroundColor()

the background color of panels and windows

public BNDtheme
backgroundColor(NVGColor value)

Copies the specified NVGColor to the backgroundColor field.

public BNDtheme
backgroundColor(Consumer<NVGColor> consumer)

Passes the backgroundColor field to the specified Consumer.

public static BNDtheme
calloc()

Returns a new BNDtheme instance allocated with memCalloc.

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

Returns a new BNDtheme.Buffer instance allocated with memCalloc.

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

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

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

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

public static BNDtheme
callocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
public BNDwidgetTheme
choiceTheme()

theme for choice buttons (comboboxes) Blender calls them "menu buttons"

public BNDtheme
choiceTheme(BNDwidgetTheme value)

Copies the specified BNDwidgetTheme to the choiceTheme field.

public BNDtheme
choiceTheme(Consumer<BNDwidgetTheme> consumer)

Passes the choiceTheme field to the specified Consumer.

protected BNDtheme
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 BNDtheme
create()

Returns a new BNDtheme instance allocated with BufferUtils.

public static BNDtheme
create(long address)

Returns a new BNDtheme instance for the specified memory address.

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

Returns a new BNDtheme.Buffer instance allocated with BufferUtils.

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

Create a BNDtheme.Buffer instance at the specified memory.

public static BNDtheme
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public static BNDtheme
malloc()

Returns a new BNDtheme instance allocated with memAlloc.

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

Returns a new BNDtheme.Buffer instance allocated with memAlloc.

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

Returns a new BNDtheme instance allocated on the specified MemoryStack.

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

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

public static BNDtheme
mallocStack()

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

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

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

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

Unsafe version of backgroundColor.

public static void
nbackgroundColor(long struct, NVGColor value)

Unsafe version of backgroundColor.

public static BNDwidgetTheme
nchoiceTheme(long struct)

Unsafe version of choiceTheme.

public static void
nchoiceTheme(long struct, BNDwidgetTheme value)

Unsafe version of choiceTheme.

public static BNDwidgetTheme
nmenuItemTheme(long struct)

Unsafe version of menuItemTheme.

public static void
nmenuItemTheme(long struct, BNDwidgetTheme value)

Unsafe version of menuItemTheme.

public static BNDwidgetTheme
nmenuTheme(long struct)

Unsafe version of menuTheme.

public static void
nmenuTheme(long struct, BNDwidgetTheme value)

Unsafe version of menuTheme.

public static BNDnodeTheme
nnodeTheme(long struct)

Unsafe version of nodeTheme.

public static void
nnodeTheme(long struct, BNDnodeTheme value)

Unsafe version of nodeTheme.

public static BNDwidgetTheme
nnumberFieldTheme(long struct)

Unsafe version of numberFieldTheme.

public static void
nnumberFieldTheme(long struct, BNDwidgetTheme value)

Unsafe version of numberFieldTheme.

public BNDnodeTheme
nodeTheme()

theme for nodes

public BNDtheme
nodeTheme(BNDnodeTheme value)

Copies the specified BNDnodeTheme to the nodeTheme field.

public BNDtheme
nodeTheme(Consumer<BNDnodeTheme> consumer)

Passes the nodeTheme field to the specified Consumer.

public static BNDwidgetTheme
noptionTheme(long struct)

Unsafe version of optionTheme.

public static void
noptionTheme(long struct, BNDwidgetTheme value)

Unsafe version of optionTheme.

public static BNDwidgetTheme
nradioTheme(long struct)

Unsafe version of radioTheme.

public static void
nradioTheme(long struct, BNDwidgetTheme value)

Unsafe version of radioTheme.

public static BNDwidgetTheme
nregularTheme(long struct)

Unsafe version of regularTheme.

public static void
nregularTheme(long struct, BNDwidgetTheme value)

Unsafe version of regularTheme.

public static BNDwidgetTheme
nscrollBarTheme(long struct)

Unsafe version of scrollBarTheme.

public static void
nscrollBarTheme(long struct, BNDwidgetTheme value)

Unsafe version of scrollBarTheme.

public static BNDwidgetTheme
nsliderTheme(long struct)

Unsafe version of sliderTheme.

public static void
nsliderTheme(long struct, BNDwidgetTheme value)

Unsafe version of sliderTheme.

public static BNDwidgetTheme
ntextFieldTheme(long struct)

Unsafe version of textFieldTheme.

public static void
ntextFieldTheme(long struct, BNDwidgetTheme value)

Unsafe version of textFieldTheme.

public static BNDwidgetTheme
ntoolTheme(long struct)

Unsafe version of toolTheme.

public static void
ntoolTheme(long struct, BNDwidgetTheme value)

Unsafe version of toolTheme.

public static BNDwidgetTheme
ntooltipTheme(long struct)

Unsafe version of tooltipTheme.

public static void
ntooltipTheme(long struct, BNDwidgetTheme value)

Unsafe version of tooltipTheme.

public BNDwidgetTheme
numberFieldTheme()

theme for number fields

public BNDtheme
numberFieldTheme(BNDwidgetTheme value)

Copies the specified BNDwidgetTheme to the numberFieldTheme field.

public BNDtheme
numberFieldTheme(Consumer<BNDwidgetTheme> consumer)

Passes the numberFieldTheme field to the specified Consumer.

public BNDwidgetTheme
optionTheme()

theme for option buttons (checkboxes)

public BNDtheme
optionTheme(BNDwidgetTheme value)

Copies the specified BNDwidgetTheme to the optionTheme field.

public BNDtheme
optionTheme(Consumer<BNDwidgetTheme> consumer)

Passes the optionTheme field to the specified Consumer.

public BNDwidgetTheme
radioTheme()

theme for radio buttons

public BNDtheme
radioTheme(BNDwidgetTheme value)

Copies the specified BNDwidgetTheme to the radioTheme field.

public BNDtheme
radioTheme(Consumer<BNDwidgetTheme> consumer)

Passes the radioTheme field to the specified Consumer.

public BNDwidgetTheme
regularTheme()

theme for labels

public BNDtheme
regularTheme(BNDwidgetTheme value)

Copies the specified BNDwidgetTheme to the regularTheme field.

public BNDtheme
regularTheme(Consumer<BNDwidgetTheme> consumer)

Passes the regularTheme field to the specified Consumer.

public BNDwidgetTheme
scrollBarTheme()

theme for scrollbars

public BNDtheme
scrollBarTheme(BNDwidgetTheme value)

Copies the specified BNDwidgetTheme to the scrollBarTheme field.

public BNDtheme
scrollBarTheme(Consumer<BNDwidgetTheme> consumer)

Passes the scrollBarTheme field to the specified Consumer.

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.

public BNDtheme

Returns:

this struct
set
(BNDtheme
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 BNDwidgetTheme
sliderTheme()

theme for slider controls

public BNDtheme
sliderTheme(BNDwidgetTheme value)

Copies the specified BNDwidgetTheme to the sliderTheme field.

public BNDtheme
sliderTheme(Consumer<BNDwidgetTheme> consumer)

Passes the sliderTheme field to the specified Consumer.

public BNDwidgetTheme
textFieldTheme()

theme for text fields

public BNDtheme
textFieldTheme(BNDwidgetTheme value)

Copies the specified BNDwidgetTheme to the textFieldTheme field.

public BNDtheme
textFieldTheme(Consumer<BNDwidgetTheme> consumer)

Passes the textFieldTheme field to the specified Consumer.

public BNDwidgetTheme
toolTheme()

theme for tool buttons

public BNDtheme
toolTheme(BNDwidgetTheme value)

Copies the specified BNDwidgetTheme to the toolTheme field.

public BNDtheme
toolTheme(Consumer<BNDwidgetTheme> consumer)

Passes the toolTheme field to the specified Consumer.

public BNDwidgetTheme
tooltipTheme()

theme for tooltips

public BNDtheme
tooltipTheme(BNDwidgetTheme value)

Copies the specified BNDwidgetTheme to the tooltipTheme field.

public BNDtheme
tooltipTheme(Consumer<BNDwidgetTheme> consumer)

Passes the tooltipTheme 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