Top Description Inners Fields Constructors Methods
org.lwjgl.nanovg

public Class BNDwidgetTheme

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

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
INNERCOLOR

The struct member offsets.

public static final int
INNERSELECTEDCOLOR

The struct member offsets.

public static final int
ITEMCOLOR

The struct member offsets.

public static final int
OUTLINECOLOR

The struct member offsets.

public static final int
SHADEDOWN

The struct member offsets.

public static final int
SHADETOP

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
TEXTCOLOR

The struct member offsets.

public static final int
TEXTSELECTEDCOLOR

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
BNDwidgetTheme(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public static BNDwidgetTheme
calloc()

Returns a new BNDwidgetTheme instance allocated with memCalloc.

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

Returns a new BNDwidgetTheme.Buffer instance allocated with memCalloc.

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

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

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

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

public static BNDwidgetTheme
callocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
protected BNDwidgetTheme
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 BNDwidgetTheme
create()

Returns a new BNDwidgetTheme instance allocated with BufferUtils.

public static BNDwidgetTheme
create(long address)

Returns a new BNDwidgetTheme instance for the specified memory address.

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

Returns a new BNDwidgetTheme.Buffer instance allocated with BufferUtils.

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

Create a BNDwidgetTheme.Buffer instance at the specified memory.

public static BNDwidgetTheme
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public NVGColor
innerColor()

fill color of widget box

public BNDwidgetTheme
innerColor(NVGColor value)

Copies the specified NVGColor to the innerColor field.

public BNDwidgetTheme
innerColor(Consumer<NVGColor> consumer)

Passes the innerColor field to the specified Consumer.

public NVGColor
innerSelectedColor()

fill color of widget box when active

public BNDwidgetTheme
innerSelectedColor(NVGColor value)

Copies the specified NVGColor to the innerSelectedColor field.

public BNDwidgetTheme
innerSelectedColor(Consumer<NVGColor> consumer)

Passes the innerSelectedColor field to the specified Consumer.

public NVGColor
itemColor()

color of widget item (meaning changes depending on class)

public BNDwidgetTheme
itemColor(NVGColor value)

Copies the specified NVGColor to the itemColor field.

public BNDwidgetTheme
itemColor(Consumer<NVGColor> consumer)

Passes the itemColor field to the specified Consumer.

public static BNDwidgetTheme
malloc()

Returns a new BNDwidgetTheme instance allocated with memAlloc.

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

Returns a new BNDwidgetTheme.Buffer instance allocated with memAlloc.

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

Returns a new BNDwidgetTheme instance allocated on the specified MemoryStack.

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

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

public static BNDwidgetTheme
mallocStack()

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

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

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

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

Unsafe version of innerColor.

public static void
ninnerColor(long struct, NVGColor value)

Unsafe version of innerColor.

public static NVGColor
ninnerSelectedColor(long struct)

Unsafe version of innerSelectedColor.

public static void
ninnerSelectedColor(long struct, NVGColor value)

Unsafe version of innerSelectedColor.

public static NVGColor
nitemColor(long struct)

Unsafe version of itemColor.

public static void
nitemColor(long struct, NVGColor value)

Unsafe version of itemColor.

public static NVGColor
noutlineColor(long struct)

Unsafe version of outlineColor.

public static void
noutlineColor(long struct, NVGColor value)

Unsafe version of outlineColor.

public static int
nshadeDown(long struct)

Unsafe version of shadeDown.

public static void
nshadeDown(long struct, int value)

Unsafe version of shadeDown.

public static int
nshadeTop(long struct)

Unsafe version of shadeTop.

public static void
nshadeTop(long struct, int value)

Unsafe version of shadeTop.

public static NVGColor
ntextColor(long struct)

Unsafe version of textColor.

public static void
ntextColor(long struct, NVGColor value)

Unsafe version of textColor.

public static NVGColor
ntextSelectedColor(long struct)

Unsafe version of textSelectedColor.

public static void
ntextSelectedColor(long struct, NVGColor value)

Unsafe version of textSelectedColor.

public NVGColor
outlineColor()

color of widget box outline

public BNDwidgetTheme
outlineColor(NVGColor value)

Copies the specified NVGColor to the outlineColor field.

public BNDwidgetTheme
outlineColor(Consumer<NVGColor> consumer)

Passes the outlineColor field to the specified Consumer.

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.

public BNDwidgetTheme

Returns:

this struct
set
(BNDwidgetTheme
the source struct
src
)

Copies the specified struct data to this struct.

public int
shadeDown()

delta modifier for lower part of gradient (-100 to 100)

public BNDwidgetTheme
shadeDown(int value)

Sets the specified value to the shadeDown field.

public int
shadeTop()

delta modifier for upper part of gradient (-100 to 100)

public BNDwidgetTheme
shadeTop(int value)

Sets the specified value to the shadeTop field.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public NVGColor
textColor()

color of text label

public BNDwidgetTheme
textColor(NVGColor value)

Copies the specified NVGColor to the textColor field.

public BNDwidgetTheme
textColor(Consumer<NVGColor> consumer)

Passes the textColor field to the specified Consumer.

public NVGColor
textSelectedColor()

color of text label when active

public BNDwidgetTheme
textSelectedColor(NVGColor value)

Copies the specified NVGColor to the textSelectedColor field.

public BNDwidgetTheme
textSelectedColor(Consumer<NVGColor> consumer)

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