public class BNDwidgetTheme
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
outlineColor – color of widget box outlineitemColor – color of widget item (meaning changes depending on class)innerColor – fill color of widget boxinnerSelectedColor – fill color of widget box when activetextColor – color of text labeltextSelectedColor – color of text label when activeshadeTop – delta modifier for upper part of gradient (-100 to 100)shadeDown – delta modifier for lower part of gradient (-100 to 100)
struct BNDwidgetTheme {
NVGcolor outlineColor;
NVGcolor itemColor;
NVGcolor innerColor;
NVGcolor innerSelectedColor;
NVGcolor textColor;
NVGcolor textSelectedColor;
int shadeTop;
int shadeDown;
}| Modifier and Type | Class and Description |
|---|---|
static class |
BNDwidgetTheme.Buffer
An array of
BNDwidgetTheme structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
INNERCOLOR
The struct member offsets.
|
static int |
INNERSELECTEDCOLOR
The struct member offsets.
|
static int |
ITEMCOLOR
The struct member offsets.
|
static int |
OUTLINECOLOR
The struct member offsets.
|
static int |
SHADEDOWN
The struct member offsets.
|
static int |
SHADETOP
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TEXTCOLOR
The struct member offsets.
|
static int |
TEXTSELECTEDCOLOR
The struct member offsets.
|
| Constructor and Description |
|---|
BNDwidgetTheme(java.nio.ByteBuffer container)
Creates a
BNDwidgetTheme instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static BNDwidgetTheme |
calloc()
Returns a new
BNDwidgetTheme instance allocated with memCalloc. |
static BNDwidgetTheme.Buffer |
calloc(int capacity)
Returns a new
BNDwidgetTheme.Buffer instance allocated with memCalloc. |
static BNDwidgetTheme |
callocStack()
Returns a new
BNDwidgetTheme instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static BNDwidgetTheme.Buffer |
callocStack(int capacity)
Returns a new
BNDwidgetTheme.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static BNDwidgetTheme.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
BNDwidgetTheme.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static BNDwidgetTheme |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BNDwidgetTheme instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static BNDwidgetTheme |
create()
Returns a new
BNDwidgetTheme instance allocated with BufferUtils. |
static BNDwidgetTheme.Buffer |
create(int capacity)
Returns a new
BNDwidgetTheme.Buffer instance allocated with BufferUtils. |
static BNDwidgetTheme |
create(long address)
Returns a new
BNDwidgetTheme instance for the specified memory address. |
static BNDwidgetTheme.Buffer |
create(long address,
int capacity)
Create a
BNDwidgetTheme.Buffer instance at the specified memory. |
static BNDwidgetTheme |
createSafe(long address)
|
static BNDwidgetTheme.Buffer |
createSafe(long address,
int capacity)
|
NVGColor |
innerColor()
Returns a
NVGColor view of the innerColor field. |
BNDwidgetTheme |
innerColor(java.util.function.Consumer<NVGColor> consumer)
Passes the
innerColor field to the specified Consumer. |
BNDwidgetTheme |
innerColor(NVGColor value)
Copies the specified
NVGColor to the innerColor field. |
NVGColor |
innerSelectedColor()
Returns a
NVGColor view of the innerSelectedColor field. |
BNDwidgetTheme |
innerSelectedColor(java.util.function.Consumer<NVGColor> consumer)
Passes the
innerSelectedColor field to the specified Consumer. |
BNDwidgetTheme |
innerSelectedColor(NVGColor value)
Copies the specified
NVGColor to the innerSelectedColor field. |
NVGColor |
itemColor()
Returns a
NVGColor view of the itemColor field. |
BNDwidgetTheme |
itemColor(java.util.function.Consumer<NVGColor> consumer)
Passes the
itemColor field to the specified Consumer. |
BNDwidgetTheme |
itemColor(NVGColor value)
Copies the specified
NVGColor to the itemColor field. |
static BNDwidgetTheme |
malloc()
Returns a new
BNDwidgetTheme instance allocated with memAlloc. |
static BNDwidgetTheme.Buffer |
malloc(int capacity)
Returns a new
BNDwidgetTheme.Buffer instance allocated with memAlloc. |
static BNDwidgetTheme |
mallocStack()
Returns a new
BNDwidgetTheme instance allocated on the thread-local MemoryStack. |
static BNDwidgetTheme.Buffer |
mallocStack(int capacity)
Returns a new
BNDwidgetTheme.Buffer instance allocated on the thread-local MemoryStack. |
static BNDwidgetTheme.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
BNDwidgetTheme.Buffer instance allocated on the specified MemoryStack. |
static BNDwidgetTheme |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BNDwidgetTheme instance allocated on the specified MemoryStack. |
static NVGColor |
ninnerColor(long struct)
Unsafe version of
innerColor(). |
static void |
ninnerColor(long struct,
NVGColor value)
Unsafe version of
innerColor. |
static NVGColor |
ninnerSelectedColor(long struct)
Unsafe version of
innerSelectedColor(). |
static void |
ninnerSelectedColor(long struct,
NVGColor value)
Unsafe version of
innerSelectedColor. |
static NVGColor |
nitemColor(long struct)
Unsafe version of
itemColor(). |
static void |
nitemColor(long struct,
NVGColor value)
Unsafe version of
itemColor. |
static NVGColor |
noutlineColor(long struct)
Unsafe version of
outlineColor(). |
static void |
noutlineColor(long struct,
NVGColor value)
Unsafe version of
outlineColor. |
static int |
nshadeDown(long struct)
Unsafe version of
shadeDown(). |
static void |
nshadeDown(long struct,
int value)
Unsafe version of
shadeDown. |
static int |
nshadeTop(long struct)
Unsafe version of
shadeTop(). |
static void |
nshadeTop(long struct,
int value)
Unsafe version of
shadeTop. |
static NVGColor |
ntextColor(long struct)
Unsafe version of
textColor(). |
static void |
ntextColor(long struct,
NVGColor value)
Unsafe version of
textColor. |
static NVGColor |
ntextSelectedColor(long struct)
Unsafe version of
textSelectedColor(). |
static void |
ntextSelectedColor(long struct,
NVGColor value)
Unsafe version of
textSelectedColor. |
NVGColor |
outlineColor()
Returns a
NVGColor view of the outlineColor field. |
BNDwidgetTheme |
outlineColor(java.util.function.Consumer<NVGColor> consumer)
Passes the
outlineColor field to the specified Consumer. |
BNDwidgetTheme |
outlineColor(NVGColor value)
Copies the specified
NVGColor to the outlineColor field. |
BNDwidgetTheme |
set(BNDwidgetTheme src)
Copies the specified struct data to this struct.
|
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.
|
int |
shadeDown()
Returns the value of the
shadeDown field. |
BNDwidgetTheme |
shadeDown(int value)
Sets the specified value to the
shadeDown field. |
int |
shadeTop()
Returns the value of the
shadeTop field. |
BNDwidgetTheme |
shadeTop(int value)
Sets the specified value to the
shadeTop field. |
int |
sizeof() |
NVGColor |
textColor()
Returns a
NVGColor view of the textColor field. |
BNDwidgetTheme |
textColor(java.util.function.Consumer<NVGColor> consumer)
Passes the
textColor field to the specified Consumer. |
BNDwidgetTheme |
textColor(NVGColor value)
Copies the specified
NVGColor to the textColor field. |
NVGColor |
textSelectedColor()
Returns a
NVGColor view of the textSelectedColor field. |
BNDwidgetTheme |
textSelectedColor(java.util.function.Consumer<NVGColor> consumer)
Passes the
textSelectedColor field to the specified Consumer. |
BNDwidgetTheme |
textSelectedColor(NVGColor value)
Copies the specified
NVGColor to the textSelectedColor field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int OUTLINECOLOR
public static final int ITEMCOLOR
public static final int INNERCOLOR
public static final int INNERSELECTEDCOLOR
public static final int TEXTCOLOR
public static final int TEXTSELECTEDCOLOR
public static final int SHADETOP
public static final int SHADEDOWN
public BNDwidgetTheme(java.nio.ByteBuffer container)
BNDwidgetTheme instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic NVGColor innerSelectedColor()
NVGColor view of the innerSelectedColor field.public NVGColor textSelectedColor()
NVGColor view of the textSelectedColor field.public int shadeTop()
shadeTop field.public int shadeDown()
shadeDown field.public BNDwidgetTheme outlineColor(NVGColor value)
NVGColor to the outlineColor field.public BNDwidgetTheme outlineColor(java.util.function.Consumer<NVGColor> consumer)
outlineColor field to the specified Consumer.public BNDwidgetTheme itemColor(NVGColor value)
NVGColor to the itemColor field.public BNDwidgetTheme itemColor(java.util.function.Consumer<NVGColor> consumer)
itemColor field to the specified Consumer.public BNDwidgetTheme innerColor(NVGColor value)
NVGColor to the innerColor field.public BNDwidgetTheme innerColor(java.util.function.Consumer<NVGColor> consumer)
innerColor field to the specified Consumer.public BNDwidgetTheme innerSelectedColor(NVGColor value)
NVGColor to the innerSelectedColor field.public BNDwidgetTheme innerSelectedColor(java.util.function.Consumer<NVGColor> consumer)
innerSelectedColor field to the specified Consumer.public BNDwidgetTheme textColor(NVGColor value)
NVGColor to the textColor field.public BNDwidgetTheme textColor(java.util.function.Consumer<NVGColor> consumer)
textColor field to the specified Consumer.public BNDwidgetTheme textSelectedColor(NVGColor value)
NVGColor to the textSelectedColor field.public BNDwidgetTheme textSelectedColor(java.util.function.Consumer<NVGColor> consumer)
textSelectedColor field to the specified Consumer.public BNDwidgetTheme shadeTop(int value)
shadeTop field.public BNDwidgetTheme shadeDown(int value)
shadeDown field.public BNDwidgetTheme set(NVGColor outlineColor, NVGColor itemColor, NVGColor innerColor, NVGColor innerSelectedColor, NVGColor textColor, NVGColor textSelectedColor, int shadeTop, int shadeDown)
public BNDwidgetTheme set(BNDwidgetTheme src)
src - the source structpublic static BNDwidgetTheme malloc()
BNDwidgetTheme instance allocated with memAlloc. The instance must be explicitly freed.public static BNDwidgetTheme calloc()
BNDwidgetTheme instance allocated with memCalloc. The instance must be explicitly freed.public static BNDwidgetTheme create()
BNDwidgetTheme instance allocated with BufferUtils.public static BNDwidgetTheme create(long address)
BNDwidgetTheme instance for the specified memory address.@Nullable public static BNDwidgetTheme createSafe(long address)
public static BNDwidgetTheme.Buffer malloc(int capacity)
BNDwidgetTheme.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static BNDwidgetTheme.Buffer calloc(int capacity)
BNDwidgetTheme.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static BNDwidgetTheme.Buffer create(int capacity)
BNDwidgetTheme.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static BNDwidgetTheme.Buffer create(long address, int capacity)
BNDwidgetTheme.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static BNDwidgetTheme.Buffer createSafe(long address, int capacity)
public static BNDwidgetTheme mallocStack()
BNDwidgetTheme instance allocated on the thread-local MemoryStack.public static BNDwidgetTheme callocStack()
BNDwidgetTheme instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static BNDwidgetTheme mallocStack(org.lwjgl.system.MemoryStack stack)
BNDwidgetTheme instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static BNDwidgetTheme callocStack(org.lwjgl.system.MemoryStack stack)
BNDwidgetTheme instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static BNDwidgetTheme.Buffer mallocStack(int capacity)
BNDwidgetTheme.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static BNDwidgetTheme.Buffer callocStack(int capacity)
BNDwidgetTheme.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static BNDwidgetTheme.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
BNDwidgetTheme.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static BNDwidgetTheme.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
BNDwidgetTheme.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NVGColor noutlineColor(long struct)
outlineColor().public static NVGColor nitemColor(long struct)
itemColor().public static NVGColor ninnerColor(long struct)
innerColor().public static NVGColor ninnerSelectedColor(long struct)
innerSelectedColor().public static NVGColor ntextColor(long struct)
textColor().public static NVGColor ntextSelectedColor(long struct)
textSelectedColor().public static int nshadeTop(long struct)
shadeTop().public static int nshadeDown(long struct)
shadeDown().public static void noutlineColor(long struct,
NVGColor value)
outlineColor.public static void ninnerColor(long struct,
NVGColor value)
innerColor.public static void ninnerSelectedColor(long struct,
NVGColor value)
innerSelectedColor.public static void ntextSelectedColor(long struct,
NVGColor value)
textSelectedColor.public static void nshadeTop(long struct,
int value)
shadeTop.public static void nshadeDown(long struct,
int value)
shadeDown.Copyright LWJGL. All Rights Reserved. License terms.