Package org.lwjgl.nanovg
Class BNDwidgetTheme.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<BNDwidgetTheme,BNDwidgetTheme.Buffer>
-
- org.lwjgl.nanovg.BNDwidgetTheme.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<BNDwidgetTheme>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- BNDwidgetTheme
public static class BNDwidgetTheme.Buffer extends org.lwjgl.system.StructBuffer<BNDwidgetTheme,BNDwidgetTheme.Buffer> implements org.lwjgl.system.NativeResource
An array ofBNDwidgetThemestructs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newBNDwidgetTheme.Bufferinstance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided byBNDwidgetTheme.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
outlineColor
public NVGColor outlineColor()
- Returns:
- a
NVGColorview of theBNDwidgetTheme.outlineColor()field.
-
itemColor
public NVGColor itemColor()
- Returns:
- a
NVGColorview of theBNDwidgetTheme.itemColor()field.
-
innerColor
public NVGColor innerColor()
- Returns:
- a
NVGColorview of theBNDwidgetTheme.innerColor()field.
-
innerSelectedColor
public NVGColor innerSelectedColor()
- Returns:
- a
NVGColorview of theBNDwidgetTheme.innerSelectedColor()field.
-
textColor
public NVGColor textColor()
- Returns:
- a
NVGColorview of theBNDwidgetTheme.textColor()field.
-
textSelectedColor
public NVGColor textSelectedColor()
- Returns:
- a
NVGColorview of theBNDwidgetTheme.textSelectedColor()field.
-
shadeTop
public int shadeTop()
- Returns:
- the value of the
BNDwidgetTheme.shadeTop()field.
-
shadeDown
public int shadeDown()
- Returns:
- the value of the
BNDwidgetTheme.shadeDown()field.
-
outlineColor
public BNDwidgetTheme.Buffer outlineColor(NVGColor value)
Copies the specifiedNVGColorto theBNDwidgetTheme.outlineColor()field.
-
outlineColor
public BNDwidgetTheme.Buffer outlineColor(java.util.function.Consumer<NVGColor> consumer)
Passes theBNDwidgetTheme.outlineColor()field to the specifiedConsumer.
-
itemColor
public BNDwidgetTheme.Buffer itemColor(NVGColor value)
Copies the specifiedNVGColorto theBNDwidgetTheme.itemColor()field.
-
itemColor
public BNDwidgetTheme.Buffer itemColor(java.util.function.Consumer<NVGColor> consumer)
Passes theBNDwidgetTheme.itemColor()field to the specifiedConsumer.
-
innerColor
public BNDwidgetTheme.Buffer innerColor(NVGColor value)
Copies the specifiedNVGColorto theBNDwidgetTheme.innerColor()field.
-
innerColor
public BNDwidgetTheme.Buffer innerColor(java.util.function.Consumer<NVGColor> consumer)
Passes theBNDwidgetTheme.innerColor()field to the specifiedConsumer.
-
innerSelectedColor
public BNDwidgetTheme.Buffer innerSelectedColor(NVGColor value)
Copies the specifiedNVGColorto theBNDwidgetTheme.innerSelectedColor()field.
-
innerSelectedColor
public BNDwidgetTheme.Buffer innerSelectedColor(java.util.function.Consumer<NVGColor> consumer)
Passes theBNDwidgetTheme.innerSelectedColor()field to the specifiedConsumer.
-
textColor
public BNDwidgetTheme.Buffer textColor(NVGColor value)
Copies the specifiedNVGColorto theBNDwidgetTheme.textColor()field.
-
textColor
public BNDwidgetTheme.Buffer textColor(java.util.function.Consumer<NVGColor> consumer)
Passes theBNDwidgetTheme.textColor()field to the specifiedConsumer.
-
textSelectedColor
public BNDwidgetTheme.Buffer textSelectedColor(NVGColor value)
Copies the specifiedNVGColorto theBNDwidgetTheme.textSelectedColor()field.
-
textSelectedColor
public BNDwidgetTheme.Buffer textSelectedColor(java.util.function.Consumer<NVGColor> consumer)
Passes theBNDwidgetTheme.textSelectedColor()field to the specifiedConsumer.
-
shadeTop
public BNDwidgetTheme.Buffer shadeTop(int value)
Sets the specified value to theBNDwidgetTheme.shadeTop()field.
-
shadeDown
public BNDwidgetTheme.Buffer shadeDown(int value)
Sets the specified value to theBNDwidgetTheme.shadeDown()field.
-
-