Package org.lwjgl.nanovg
Class BNDtheme.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<BNDtheme,BNDtheme.Buffer>
-
- org.lwjgl.nanovg.BNDtheme.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<BNDtheme>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- BNDtheme
public static class BNDtheme.Buffer extends org.lwjgl.system.StructBuffer<BNDtheme,BNDtheme.Buffer> implements org.lwjgl.system.NativeResource
An array ofBNDtheme
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NVGColor
backgroundColor()
Returns aNVGColor
view of thebackgroundColor
field.BNDtheme.Buffer
backgroundColor(java.util.function.Consumer<NVGColor> consumer)
Passes thebackgroundColor
field to the specifiedConsumer
.BNDtheme.Buffer
backgroundColor(NVGColor value)
Copies the specifiedNVGColor
to thebackgroundColor
field.BNDwidgetTheme
choiceTheme()
Returns aBNDwidgetTheme
view of thechoiceTheme
field.BNDtheme.Buffer
choiceTheme(java.util.function.Consumer<BNDwidgetTheme> consumer)
Passes thechoiceTheme
field to the specifiedConsumer
.BNDtheme.Buffer
choiceTheme(BNDwidgetTheme value)
Copies the specifiedBNDwidgetTheme
to thechoiceTheme
field.BNDwidgetTheme
menuItemTheme()
Returns aBNDwidgetTheme
view of themenuItemTheme
field.BNDtheme.Buffer
menuItemTheme(java.util.function.Consumer<BNDwidgetTheme> consumer)
Passes themenuItemTheme
field to the specifiedConsumer
.BNDtheme.Buffer
menuItemTheme(BNDwidgetTheme value)
Copies the specifiedBNDwidgetTheme
to themenuItemTheme
field.BNDwidgetTheme
menuTheme()
Returns aBNDwidgetTheme
view of themenuTheme
field.BNDtheme.Buffer
menuTheme(java.util.function.Consumer<BNDwidgetTheme> consumer)
Passes themenuTheme
field to the specifiedConsumer
.BNDtheme.Buffer
menuTheme(BNDwidgetTheme value)
Copies the specifiedBNDwidgetTheme
to themenuTheme
field.BNDnodeTheme
nodeTheme()
Returns aBNDnodeTheme
view of thenodeTheme
field.BNDtheme.Buffer
nodeTheme(java.util.function.Consumer<BNDnodeTheme> consumer)
Passes thenodeTheme
field to the specifiedConsumer
.BNDtheme.Buffer
nodeTheme(BNDnodeTheme value)
Copies the specifiedBNDnodeTheme
to thenodeTheme
field.BNDwidgetTheme
numberFieldTheme()
Returns aBNDwidgetTheme
view of thenumberFieldTheme
field.BNDtheme.Buffer
numberFieldTheme(java.util.function.Consumer<BNDwidgetTheme> consumer)
Passes thenumberFieldTheme
field to the specifiedConsumer
.BNDtheme.Buffer
numberFieldTheme(BNDwidgetTheme value)
Copies the specifiedBNDwidgetTheme
to thenumberFieldTheme
field.BNDwidgetTheme
optionTheme()
Returns aBNDwidgetTheme
view of theoptionTheme
field.BNDtheme.Buffer
optionTheme(java.util.function.Consumer<BNDwidgetTheme> consumer)
Passes theoptionTheme
field to the specifiedConsumer
.BNDtheme.Buffer
optionTheme(BNDwidgetTheme value)
Copies the specifiedBNDwidgetTheme
to theoptionTheme
field.BNDwidgetTheme
radioTheme()
Returns aBNDwidgetTheme
view of theradioTheme
field.BNDtheme.Buffer
radioTheme(java.util.function.Consumer<BNDwidgetTheme> consumer)
Passes theradioTheme
field to the specifiedConsumer
.BNDtheme.Buffer
radioTheme(BNDwidgetTheme value)
Copies the specifiedBNDwidgetTheme
to theradioTheme
field.BNDwidgetTheme
regularTheme()
Returns aBNDwidgetTheme
view of theregularTheme
field.BNDtheme.Buffer
regularTheme(java.util.function.Consumer<BNDwidgetTheme> consumer)
Passes theregularTheme
field to the specifiedConsumer
.BNDtheme.Buffer
regularTheme(BNDwidgetTheme value)
Copies the specifiedBNDwidgetTheme
to theregularTheme
field.BNDwidgetTheme
scrollBarTheme()
Returns aBNDwidgetTheme
view of thescrollBarTheme
field.BNDtheme.Buffer
scrollBarTheme(java.util.function.Consumer<BNDwidgetTheme> consumer)
Passes thescrollBarTheme
field to the specifiedConsumer
.BNDtheme.Buffer
scrollBarTheme(BNDwidgetTheme value)
Copies the specifiedBNDwidgetTheme
to thescrollBarTheme
field.BNDwidgetTheme
sliderTheme()
Returns aBNDwidgetTheme
view of thesliderTheme
field.BNDtheme.Buffer
sliderTheme(java.util.function.Consumer<BNDwidgetTheme> consumer)
Passes thesliderTheme
field to the specifiedConsumer
.BNDtheme.Buffer
sliderTheme(BNDwidgetTheme value)
Copies the specifiedBNDwidgetTheme
to thesliderTheme
field.BNDwidgetTheme
textFieldTheme()
Returns aBNDwidgetTheme
view of thetextFieldTheme
field.BNDtheme.Buffer
textFieldTheme(java.util.function.Consumer<BNDwidgetTheme> consumer)
Passes thetextFieldTheme
field to the specifiedConsumer
.BNDtheme.Buffer
textFieldTheme(BNDwidgetTheme value)
Copies the specifiedBNDwidgetTheme
to thetextFieldTheme
field.BNDwidgetTheme
toolTheme()
Returns aBNDwidgetTheme
view of thetoolTheme
field.BNDtheme.Buffer
toolTheme(java.util.function.Consumer<BNDwidgetTheme> consumer)
Passes thetoolTheme
field to the specifiedConsumer
.BNDtheme.Buffer
toolTheme(BNDwidgetTheme value)
Copies the specifiedBNDwidgetTheme
to thetoolTheme
field.BNDwidgetTheme
tooltipTheme()
Returns aBNDwidgetTheme
view of thetooltipTheme
field.BNDtheme.Buffer
tooltipTheme(java.util.function.Consumer<BNDwidgetTheme> consumer)
Passes thetooltipTheme
field to the specifiedConsumer
.BNDtheme.Buffer
tooltipTheme(BNDwidgetTheme value)
Copies the specifiedBNDwidgetTheme
to thetooltipTheme
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newBNDtheme.Buffer
instance 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 byBNDtheme.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
-
backgroundColor
public NVGColor backgroundColor()
Returns aNVGColor
view of thebackgroundColor
field.
-
regularTheme
public BNDwidgetTheme regularTheme()
Returns aBNDwidgetTheme
view of theregularTheme
field.
-
toolTheme
public BNDwidgetTheme toolTheme()
Returns aBNDwidgetTheme
view of thetoolTheme
field.
-
radioTheme
public BNDwidgetTheme radioTheme()
Returns aBNDwidgetTheme
view of theradioTheme
field.
-
textFieldTheme
public BNDwidgetTheme textFieldTheme()
Returns aBNDwidgetTheme
view of thetextFieldTheme
field.
-
optionTheme
public BNDwidgetTheme optionTheme()
Returns aBNDwidgetTheme
view of theoptionTheme
field.
-
choiceTheme
public BNDwidgetTheme choiceTheme()
Returns aBNDwidgetTheme
view of thechoiceTheme
field.
-
numberFieldTheme
public BNDwidgetTheme numberFieldTheme()
Returns aBNDwidgetTheme
view of thenumberFieldTheme
field.
-
sliderTheme
public BNDwidgetTheme sliderTheme()
Returns aBNDwidgetTheme
view of thesliderTheme
field.
-
scrollBarTheme
public BNDwidgetTheme scrollBarTheme()
Returns aBNDwidgetTheme
view of thescrollBarTheme
field.
-
tooltipTheme
public BNDwidgetTheme tooltipTheme()
Returns aBNDwidgetTheme
view of thetooltipTheme
field.
-
menuTheme
public BNDwidgetTheme menuTheme()
Returns aBNDwidgetTheme
view of themenuTheme
field.
-
menuItemTheme
public BNDwidgetTheme menuItemTheme()
Returns aBNDwidgetTheme
view of themenuItemTheme
field.
-
nodeTheme
public BNDnodeTheme nodeTheme()
Returns aBNDnodeTheme
view of thenodeTheme
field.
-
backgroundColor
public BNDtheme.Buffer backgroundColor(NVGColor value)
Copies the specifiedNVGColor
to thebackgroundColor
field.
-
backgroundColor
public BNDtheme.Buffer backgroundColor(java.util.function.Consumer<NVGColor> consumer)
Passes thebackgroundColor
field to the specifiedConsumer
.
-
regularTheme
public BNDtheme.Buffer regularTheme(BNDwidgetTheme value)
Copies the specifiedBNDwidgetTheme
to theregularTheme
field.
-
regularTheme
public BNDtheme.Buffer regularTheme(java.util.function.Consumer<BNDwidgetTheme> consumer)
Passes theregularTheme
field to the specifiedConsumer
.
-
toolTheme
public BNDtheme.Buffer toolTheme(BNDwidgetTheme value)
Copies the specifiedBNDwidgetTheme
to thetoolTheme
field.
-
toolTheme
public BNDtheme.Buffer toolTheme(java.util.function.Consumer<BNDwidgetTheme> consumer)
Passes thetoolTheme
field to the specifiedConsumer
.
-
radioTheme
public BNDtheme.Buffer radioTheme(BNDwidgetTheme value)
Copies the specifiedBNDwidgetTheme
to theradioTheme
field.
-
radioTheme
public BNDtheme.Buffer radioTheme(java.util.function.Consumer<BNDwidgetTheme> consumer)
Passes theradioTheme
field to the specifiedConsumer
.
-
textFieldTheme
public BNDtheme.Buffer textFieldTheme(BNDwidgetTheme value)
Copies the specifiedBNDwidgetTheme
to thetextFieldTheme
field.
-
textFieldTheme
public BNDtheme.Buffer textFieldTheme(java.util.function.Consumer<BNDwidgetTheme> consumer)
Passes thetextFieldTheme
field to the specifiedConsumer
.
-
optionTheme
public BNDtheme.Buffer optionTheme(BNDwidgetTheme value)
Copies the specifiedBNDwidgetTheme
to theoptionTheme
field.
-
optionTheme
public BNDtheme.Buffer optionTheme(java.util.function.Consumer<BNDwidgetTheme> consumer)
Passes theoptionTheme
field to the specifiedConsumer
.
-
choiceTheme
public BNDtheme.Buffer choiceTheme(BNDwidgetTheme value)
Copies the specifiedBNDwidgetTheme
to thechoiceTheme
field.
-
choiceTheme
public BNDtheme.Buffer choiceTheme(java.util.function.Consumer<BNDwidgetTheme> consumer)
Passes thechoiceTheme
field to the specifiedConsumer
.
-
numberFieldTheme
public BNDtheme.Buffer numberFieldTheme(BNDwidgetTheme value)
Copies the specifiedBNDwidgetTheme
to thenumberFieldTheme
field.
-
numberFieldTheme
public BNDtheme.Buffer numberFieldTheme(java.util.function.Consumer<BNDwidgetTheme> consumer)
Passes thenumberFieldTheme
field to the specifiedConsumer
.
-
sliderTheme
public BNDtheme.Buffer sliderTheme(BNDwidgetTheme value)
Copies the specifiedBNDwidgetTheme
to thesliderTheme
field.
-
sliderTheme
public BNDtheme.Buffer sliderTheme(java.util.function.Consumer<BNDwidgetTheme> consumer)
Passes thesliderTheme
field to the specifiedConsumer
.
-
scrollBarTheme
public BNDtheme.Buffer scrollBarTheme(BNDwidgetTheme value)
Copies the specifiedBNDwidgetTheme
to thescrollBarTheme
field.
-
scrollBarTheme
public BNDtheme.Buffer scrollBarTheme(java.util.function.Consumer<BNDwidgetTheme> consumer)
Passes thescrollBarTheme
field to the specifiedConsumer
.
-
tooltipTheme
public BNDtheme.Buffer tooltipTheme(BNDwidgetTheme value)
Copies the specifiedBNDwidgetTheme
to thetooltipTheme
field.
-
tooltipTheme
public BNDtheme.Buffer tooltipTheme(java.util.function.Consumer<BNDwidgetTheme> consumer)
Passes thetooltipTheme
field to the specifiedConsumer
.
-
menuTheme
public BNDtheme.Buffer menuTheme(BNDwidgetTheme value)
Copies the specifiedBNDwidgetTheme
to themenuTheme
field.
-
menuTheme
public BNDtheme.Buffer menuTheme(java.util.function.Consumer<BNDwidgetTheme> consumer)
Passes themenuTheme
field to the specifiedConsumer
.
-
menuItemTheme
public BNDtheme.Buffer menuItemTheme(BNDwidgetTheme value)
Copies the specifiedBNDwidgetTheme
to themenuItemTheme
field.
-
menuItemTheme
public BNDtheme.Buffer menuItemTheme(java.util.function.Consumer<BNDwidgetTheme> consumer)
Passes themenuItemTheme
field to the specifiedConsumer
.
-
nodeTheme
public BNDtheme.Buffer nodeTheme(BNDnodeTheme value)
Copies the specifiedBNDnodeTheme
to thenodeTheme
field.
-
nodeTheme
public BNDtheme.Buffer nodeTheme(java.util.function.Consumer<BNDnodeTheme> consumer)
Passes thenodeTheme
field to the specifiedConsumer
.
-
-