Package org.lwjgl.nuklear
Class NkStyleSlider
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkStyleSlider
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class NkStyleSlider extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Member documentation
inc_symbol
– one of:dec_symbol
– seeinc_symbol
Layout
struct nk_style_slider {
struct nk_style_item
normal;struct nk_style_item
hover;struct nk_style_item
active;struct nk_color
border_color;struct nk_color
bar_normal;struct nk_color
bar_hover;struct nk_color
bar_active;struct nk_color
bar_filled;struct nk_style_item
cursor_normal;struct nk_style_item
cursor_hover;struct nk_style_item
cursor_active; float border; float rounding; float bar_height;struct nk_vec2
padding;struct nk_vec2
spacing;struct nk_vec2
cursor_size; int show_buttons;struct nk_style_button
inc_button;struct nk_style_button
dec_button; enum nk_symbol_type inc_symbol; enum nk_symbol_type dec_symbol;nk_handle
userdata;nk_draw_begin
draw_begin;nk_draw_end
draw_end; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NkStyleSlider.Buffer
An array ofNkStyleSlider
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ACTIVE
The struct member offsets.static int
ALIGNOF
The struct alignment in bytes.static int
BAR_ACTIVE
BAR_FILLED
BAR_HEIGHT
BAR_HOVER
BAR_NORMAL
BORDER
BORDER_COLOR
CURSOR_ACTIVE
CURSOR_HOVER
CURSOR_NORMAL
CURSOR_SIZE
DEC_BUTTON
DEC_SYMBOL
DRAW_BEGIN
DRAW_END
HOVER
INC_BUTTON
INC_SYMBOL
NORMAL
PADDING
ROUNDING
SHOW_BUTTONSThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
SPACING
USERDATAThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkStyleSlider(java.nio.ByteBuffer container)
Creates aNkStyleSlider
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItem
active()
Returns aNkStyleItem
view of theactive
field.NkStyleSlider
active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactive
field to the specifiedConsumer
.NkStyleSlider
active(NkStyleItem value)
Copies the specifiedNkStyleItem
to theactive
field.NkColor
bar_active()
Returns aNkColor
view of thebar_active
field.NkStyleSlider
bar_active(java.util.function.Consumer<NkColor> consumer)
Passes thebar_active
field to the specifiedConsumer
.NkStyleSlider
bar_active(NkColor value)
Copies the specifiedNkColor
to thebar_active
field.NkColor
bar_filled()
Returns aNkColor
view of thebar_filled
field.NkStyleSlider
bar_filled(java.util.function.Consumer<NkColor> consumer)
Passes thebar_filled
field to the specifiedConsumer
.NkStyleSlider
bar_filled(NkColor value)
Copies the specifiedNkColor
to thebar_filled
field.float
bar_height()
Returns the value of thebar_height
field.NkStyleSlider
bar_height(float value)
Sets the specified value to thebar_height
field.NkColor
bar_hover()
Returns aNkColor
view of thebar_hover
field.NkStyleSlider
bar_hover(java.util.function.Consumer<NkColor> consumer)
Passes thebar_hover
field to the specifiedConsumer
.NkStyleSlider
bar_hover(NkColor value)
Copies the specifiedNkColor
to thebar_hover
field.NkColor
bar_normal()
Returns aNkColor
view of thebar_normal
field.NkStyleSlider
bar_normal(java.util.function.Consumer<NkColor> consumer)
Passes thebar_normal
field to the specifiedConsumer
.NkStyleSlider
bar_normal(NkColor value)
Copies the specifiedNkColor
to thebar_normal
field.float
border()
Returns the value of theborder
field.NkStyleSlider
border(float value)
Sets the specified value to theborder
field.NkColor
border_color()
Returns aNkColor
view of theborder_color
field.NkStyleSlider
border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.NkStyleSlider
border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.static NkStyleSlider
calloc()
Returns a newNkStyleSlider
instance allocated withmemCalloc
.static NkStyleSlider.Buffer
calloc(int capacity)
Returns a newNkStyleSlider.Buffer
instance allocated withmemCalloc
.static NkStyleSlider
callocStack()
Returns a newNkStyleSlider
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static NkStyleSlider.Buffer
callocStack(int capacity)
Returns a newNkStyleSlider.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static NkStyleSlider.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleSlider.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkStyleSlider
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleSlider
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkStyleSlider
create()
Returns a newNkStyleSlider
instance allocated withBufferUtils
.static NkStyleSlider.Buffer
create(int capacity)
Returns a newNkStyleSlider.Buffer
instance allocated withBufferUtils
.static NkStyleSlider
create(long address)
Returns a newNkStyleSlider
instance for the specified memory address.static NkStyleSlider.Buffer
create(long address, int capacity)
Create aNkStyleSlider.Buffer
instance at the specified memory.static NkStyleSlider
createSafe(long address)
static NkStyleSlider.Buffer
createSafe(long address, int capacity)
NkStyleItem
cursor_active()
Returns aNkStyleItem
view of thecursor_active
field.NkStyleSlider
cursor_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_active
field to the specifiedConsumer
.NkStyleSlider
cursor_active(NkStyleItem value)
Copies the specifiedNkStyleItem
to thecursor_active
field.NkStyleItem
cursor_hover()
Returns aNkStyleItem
view of thecursor_hover
field.NkStyleSlider
cursor_hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_hover
field to the specifiedConsumer
.NkStyleSlider
cursor_hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thecursor_hover
field.NkStyleItem
cursor_normal()
Returns aNkStyleItem
view of thecursor_normal
field.NkStyleSlider
cursor_normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_normal
field to the specifiedConsumer
.NkStyleSlider
cursor_normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thecursor_normal
field.NkVec2
cursor_size()
Returns aNkVec2
view of thecursor_size
field.NkStyleSlider
cursor_size(java.util.function.Consumer<NkVec2> consumer)
Passes thecursor_size
field to the specifiedConsumer
.NkStyleSlider
cursor_size(NkVec2 value)
Copies the specifiedNkVec2
to thecursor_size
field.NkStyleButton
dec_button()
Returns aNkStyleButton
view of thedec_button
field.NkStyleSlider
dec_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thedec_button
field to the specifiedConsumer
.NkStyleSlider
dec_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thedec_button
field.int
dec_symbol()
Returns the value of thedec_symbol
field.NkStyleSlider
dec_symbol(int value)
Sets the specified value to thedec_symbol
field.NkDrawBeginCallback
draw_begin()
Returns the value of thedraw_begin
field.NkStyleSlider
draw_begin(NkDrawBeginCallbackI value)
Sets the specified value to thedraw_begin
field.NkDrawEndCallback
draw_end()
Returns the value of thedraw_end
field.NkStyleSlider
draw_end(NkDrawEndCallbackI value)
Sets the specified value to thedraw_end
field.NkStyleItem
hover()
Returns aNkStyleItem
view of thehover
field.NkStyleSlider
hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover
field to the specifiedConsumer
.NkStyleSlider
hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover
field.NkStyleButton
inc_button()
Returns aNkStyleButton
view of theinc_button
field.NkStyleSlider
inc_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theinc_button
field to the specifiedConsumer
.NkStyleSlider
inc_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to theinc_button
field.int
inc_symbol()
Returns the value of theinc_symbol
field.NkStyleSlider
inc_symbol(int value)
Sets the specified value to theinc_symbol
field.static NkStyleSlider
malloc()
Returns a newNkStyleSlider
instance allocated withmemAlloc
.static NkStyleSlider.Buffer
malloc(int capacity)
Returns a newNkStyleSlider.Buffer
instance allocated withmemAlloc
.static NkStyleSlider
mallocStack()
Returns a newNkStyleSlider
instance allocated on the thread-localMemoryStack
.static NkStyleSlider.Buffer
mallocStack(int capacity)
Returns a newNkStyleSlider.Buffer
instance allocated on the thread-localMemoryStack
.static NkStyleSlider.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleSlider.Buffer
instance allocated on the specifiedMemoryStack
.static NkStyleSlider
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleSlider
instance allocated on the specifiedMemoryStack
.static NkStyleItem
nactive(long struct)
Unsafe version ofactive()
.static void
nactive(long struct, NkStyleItem value)
Unsafe version ofactive
.static NkColor
nbar_active(long struct)
Unsafe version ofbar_active()
.static void
nbar_active(long struct, NkColor value)
Unsafe version ofbar_active
.static NkColor
nbar_filled(long struct)
Unsafe version ofbar_filled()
.static void
nbar_filled(long struct, NkColor value)
Unsafe version ofbar_filled
.static float
nbar_height(long struct)
Unsafe version ofbar_height()
.static void
nbar_height(long struct, float value)
Unsafe version ofbar_height
.static NkColor
nbar_hover(long struct)
Unsafe version ofbar_hover()
.static void
nbar_hover(long struct, NkColor value)
Unsafe version ofbar_hover
.static NkColor
nbar_normal(long struct)
Unsafe version ofbar_normal()
.static void
nbar_normal(long struct, NkColor value)
Unsafe version ofbar_normal
.static float
nborder(long struct)
Unsafe version ofborder()
.static void
nborder(long struct, float value)
Unsafe version ofborder
.static NkColor
nborder_color(long struct)
Unsafe version ofborder_color()
.static void
nborder_color(long struct, NkColor value)
Unsafe version ofborder_color
.static NkStyleItem
ncursor_active(long struct)
Unsafe version ofcursor_active()
.static void
ncursor_active(long struct, NkStyleItem value)
Unsafe version ofcursor_active
.static NkStyleItem
ncursor_hover(long struct)
Unsafe version ofcursor_hover()
.static void
ncursor_hover(long struct, NkStyleItem value)
Unsafe version ofcursor_hover
.static NkStyleItem
ncursor_normal(long struct)
Unsafe version ofcursor_normal()
.static void
ncursor_normal(long struct, NkStyleItem value)
Unsafe version ofcursor_normal
.static NkVec2
ncursor_size(long struct)
Unsafe version ofcursor_size()
.static void
ncursor_size(long struct, NkVec2 value)
Unsafe version ofcursor_size
.static NkStyleButton
ndec_button(long struct)
Unsafe version ofdec_button()
.static void
ndec_button(long struct, NkStyleButton value)
Unsafe version ofdec_button
.static int
ndec_symbol(long struct)
Unsafe version ofdec_symbol()
.static void
ndec_symbol(long struct, int value)
Unsafe version ofdec_symbol
.static NkDrawBeginCallback
ndraw_begin(long struct)
Unsafe version ofdraw_begin()
.static void
ndraw_begin(long struct, NkDrawBeginCallbackI value)
Unsafe version ofdraw_begin
.static NkDrawEndCallback
ndraw_end(long struct)
Unsafe version ofdraw_end()
.static void
ndraw_end(long struct, NkDrawEndCallbackI value)
Unsafe version ofdraw_end
.static NkStyleItem
nhover(long struct)
Unsafe version ofhover()
.static void
nhover(long struct, NkStyleItem value)
Unsafe version ofhover
.static NkStyleButton
ninc_button(long struct)
Unsafe version ofinc_button()
.static void
ninc_button(long struct, NkStyleButton value)
Unsafe version ofinc_button
.static int
ninc_symbol(long struct)
Unsafe version ofinc_symbol()
.static void
ninc_symbol(long struct, int value)
Unsafe version ofinc_symbol
.static NkStyleItem
nnormal(long struct)
Unsafe version ofnormal()
.static void
nnormal(long struct, NkStyleItem value)
Unsafe version ofnormal
.NkStyleItem
normal()
Returns aNkStyleItem
view of thenormal
field.NkStyleSlider
normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal
field to the specifiedConsumer
.NkStyleSlider
normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal
field.static NkVec2
npadding(long struct)
Unsafe version ofpadding()
.static void
npadding(long struct, NkVec2 value)
Unsafe version ofpadding
.static float
nrounding(long struct)
Unsafe version ofrounding()
.static void
nrounding(long struct, float value)
Unsafe version ofrounding
.static int
nshow_buttons(long struct)
Unsafe version ofshow_buttons()
.static void
nshow_buttons(long struct, int value)
Unsafe version ofshow_buttons
.static NkVec2
nspacing(long struct)
Unsafe version ofspacing()
.static void
nspacing(long struct, NkVec2 value)
Unsafe version ofspacing
.static NkHandle
nuserdata(long struct)
Unsafe version ofuserdata()
.static void
nuserdata(long struct, NkHandle value)
Unsafe version ofuserdata
.NkVec2
padding()
Returns aNkVec2
view of thepadding
field.NkStyleSlider
padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.NkStyleSlider
padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.float
rounding()
Returns the value of therounding
field.NkStyleSlider
rounding(float value)
Sets the specified value to therounding
field.NkStyleSlider
set(NkStyleItem normal, NkStyleItem hover, NkStyleItem active, NkColor border_color, NkColor bar_normal, NkColor bar_hover, NkColor bar_active, NkColor bar_filled, NkStyleItem cursor_normal, NkStyleItem cursor_hover, NkStyleItem cursor_active, float border, float rounding, float bar_height, NkVec2 padding, NkVec2 spacing, NkVec2 cursor_size, int show_buttons, NkStyleButton inc_button, NkStyleButton dec_button, int inc_symbol, int dec_symbol, NkHandle userdata, NkDrawBeginCallbackI draw_begin, NkDrawEndCallbackI draw_end)
Initializes this struct with the specified values.NkStyleSlider
set(NkStyleSlider src)
Copies the specified struct data to this struct.int
show_buttons()
Returns the value of theshow_buttons
field.NkStyleSlider
show_buttons(int value)
Sets the specified value to theshow_buttons
field.int
sizeof()
NkVec2
spacing()
Returns aNkVec2
view of thespacing
field.NkStyleSlider
spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacing
field to the specifiedConsumer
.NkStyleSlider
spacing(NkVec2 value)
Copies the specifiedNkVec2
to thespacing
field.NkHandle
userdata()
Returns aNkHandle
view of theuserdata
field.NkStyleSlider
userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdata
field to the specifiedConsumer
.NkStyleSlider
userdata(NkHandle value)
Copies the specifiedNkHandle
to theuserdata
field.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
NORMAL, HOVER, ACTIVE, BORDER_COLOR, BAR_NORMAL, BAR_HOVER, BAR_ACTIVE, BAR_FILLED, CURSOR_NORMAL, CURSOR_HOVER, CURSOR_ACTIVE, BORDER, ROUNDING, BAR_HEIGHT, PADDING, SPACING, CURSOR_SIZE, SHOW_BUTTONS, INC_BUTTON, DEC_BUTTON, INC_SYMBOL, DEC_SYMBOL, USERDATA, DRAW_BEGIN, DRAW_END
The struct member offsets.
-
-
Constructor Detail
-
NkStyleSlider
public NkStyleSlider(java.nio.ByteBuffer container)
Creates aNkStyleSlider
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
normal
public NkStyleItem normal()
Returns aNkStyleItem
view of thenormal
field.
-
hover
public NkStyleItem hover()
Returns aNkStyleItem
view of thehover
field.
-
active
public NkStyleItem active()
Returns aNkStyleItem
view of theactive
field.
-
cursor_normal
public NkStyleItem cursor_normal()
Returns aNkStyleItem
view of thecursor_normal
field.
-
cursor_hover
public NkStyleItem cursor_hover()
Returns aNkStyleItem
view of thecursor_hover
field.
-
cursor_active
public NkStyleItem cursor_active()
Returns aNkStyleItem
view of thecursor_active
field.
-
border
public float border()
Returns the value of theborder
field.
-
rounding
public float rounding()
Returns the value of therounding
field.
-
bar_height
public float bar_height()
Returns the value of thebar_height
field.
-
show_buttons
public int show_buttons()
Returns the value of theshow_buttons
field.
-
inc_button
public NkStyleButton inc_button()
Returns aNkStyleButton
view of theinc_button
field.
-
dec_button
public NkStyleButton dec_button()
Returns aNkStyleButton
view of thedec_button
field.
-
inc_symbol
public int inc_symbol()
Returns the value of theinc_symbol
field.
-
dec_symbol
public int dec_symbol()
Returns the value of thedec_symbol
field.
-
draw_begin
@Nullable public NkDrawBeginCallback draw_begin()
Returns the value of thedraw_begin
field.
-
draw_end
@Nullable public NkDrawEndCallback draw_end()
Returns the value of thedraw_end
field.
-
normal
public NkStyleSlider normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal
field.
-
normal
public NkStyleSlider normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal
field to the specifiedConsumer
.
-
hover
public NkStyleSlider hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover
field.
-
hover
public NkStyleSlider hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover
field to the specifiedConsumer
.
-
active
public NkStyleSlider active(NkStyleItem value)
Copies the specifiedNkStyleItem
to theactive
field.
-
active
public NkStyleSlider active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactive
field to the specifiedConsumer
.
-
border_color
public NkStyleSlider border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.
-
border_color
public NkStyleSlider border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.
-
bar_normal
public NkStyleSlider bar_normal(NkColor value)
Copies the specifiedNkColor
to thebar_normal
field.
-
bar_normal
public NkStyleSlider bar_normal(java.util.function.Consumer<NkColor> consumer)
Passes thebar_normal
field to the specifiedConsumer
.
-
bar_hover
public NkStyleSlider bar_hover(NkColor value)
Copies the specifiedNkColor
to thebar_hover
field.
-
bar_hover
public NkStyleSlider bar_hover(java.util.function.Consumer<NkColor> consumer)
Passes thebar_hover
field to the specifiedConsumer
.
-
bar_active
public NkStyleSlider bar_active(NkColor value)
Copies the specifiedNkColor
to thebar_active
field.
-
bar_active
public NkStyleSlider bar_active(java.util.function.Consumer<NkColor> consumer)
Passes thebar_active
field to the specifiedConsumer
.
-
bar_filled
public NkStyleSlider bar_filled(NkColor value)
Copies the specifiedNkColor
to thebar_filled
field.
-
bar_filled
public NkStyleSlider bar_filled(java.util.function.Consumer<NkColor> consumer)
Passes thebar_filled
field to the specifiedConsumer
.
-
cursor_normal
public NkStyleSlider cursor_normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thecursor_normal
field.
-
cursor_normal
public NkStyleSlider cursor_normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_normal
field to the specifiedConsumer
.
-
cursor_hover
public NkStyleSlider cursor_hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thecursor_hover
field.
-
cursor_hover
public NkStyleSlider cursor_hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_hover
field to the specifiedConsumer
.
-
cursor_active
public NkStyleSlider cursor_active(NkStyleItem value)
Copies the specifiedNkStyleItem
to thecursor_active
field.
-
cursor_active
public NkStyleSlider cursor_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_active
field to the specifiedConsumer
.
-
border
public NkStyleSlider border(float value)
Sets the specified value to theborder
field.
-
rounding
public NkStyleSlider rounding(float value)
Sets the specified value to therounding
field.
-
bar_height
public NkStyleSlider bar_height(float value)
Sets the specified value to thebar_height
field.
-
padding
public NkStyleSlider padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.
-
padding
public NkStyleSlider padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.
-
spacing
public NkStyleSlider spacing(NkVec2 value)
Copies the specifiedNkVec2
to thespacing
field.
-
spacing
public NkStyleSlider spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacing
field to the specifiedConsumer
.
-
cursor_size
public NkStyleSlider cursor_size(NkVec2 value)
Copies the specifiedNkVec2
to thecursor_size
field.
-
cursor_size
public NkStyleSlider cursor_size(java.util.function.Consumer<NkVec2> consumer)
Passes thecursor_size
field to the specifiedConsumer
.
-
show_buttons
public NkStyleSlider show_buttons(int value)
Sets the specified value to theshow_buttons
field.
-
inc_button
public NkStyleSlider inc_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to theinc_button
field.
-
inc_button
public NkStyleSlider inc_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theinc_button
field to the specifiedConsumer
.
-
dec_button
public NkStyleSlider dec_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thedec_button
field.
-
dec_button
public NkStyleSlider dec_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thedec_button
field to the specifiedConsumer
.
-
inc_symbol
public NkStyleSlider inc_symbol(int value)
Sets the specified value to theinc_symbol
field.
-
dec_symbol
public NkStyleSlider dec_symbol(int value)
Sets the specified value to thedec_symbol
field.
-
userdata
public NkStyleSlider userdata(NkHandle value)
Copies the specifiedNkHandle
to theuserdata
field.
-
userdata
public NkStyleSlider userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdata
field to the specifiedConsumer
.
-
draw_begin
public NkStyleSlider draw_begin(@Nullable NkDrawBeginCallbackI value)
Sets the specified value to thedraw_begin
field.
-
draw_end
public NkStyleSlider draw_end(@Nullable NkDrawEndCallbackI value)
Sets the specified value to thedraw_end
field.
-
set
public NkStyleSlider set(NkStyleItem normal, NkStyleItem hover, NkStyleItem active, NkColor border_color, NkColor bar_normal, NkColor bar_hover, NkColor bar_active, NkColor bar_filled, NkStyleItem cursor_normal, NkStyleItem cursor_hover, NkStyleItem cursor_active, float border, float rounding, float bar_height, NkVec2 padding, NkVec2 spacing, NkVec2 cursor_size, int show_buttons, NkStyleButton inc_button, NkStyleButton dec_button, int inc_symbol, int dec_symbol, NkHandle userdata, NkDrawBeginCallbackI draw_begin, NkDrawEndCallbackI draw_end)
Initializes this struct with the specified values.
-
set
public NkStyleSlider set(NkStyleSlider src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static NkStyleSlider malloc()
Returns a newNkStyleSlider
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static NkStyleSlider calloc()
Returns a newNkStyleSlider
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static NkStyleSlider create()
Returns a newNkStyleSlider
instance allocated withBufferUtils
.
-
create
public static NkStyleSlider create(long address)
Returns a newNkStyleSlider
instance for the specified memory address.
-
createSafe
@Nullable public static NkStyleSlider createSafe(long address)
-
malloc
public static NkStyleSlider.Buffer malloc(int capacity)
Returns a newNkStyleSlider.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static NkStyleSlider.Buffer calloc(int capacity)
Returns a newNkStyleSlider.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static NkStyleSlider.Buffer create(int capacity)
Returns a newNkStyleSlider.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static NkStyleSlider.Buffer create(long address, int capacity)
Create aNkStyleSlider.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static NkStyleSlider.Buffer createSafe(long address, int capacity)
-
mallocStack
public static NkStyleSlider mallocStack()
Returns a newNkStyleSlider
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static NkStyleSlider callocStack()
Returns a newNkStyleSlider
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static NkStyleSlider mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleSlider
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static NkStyleSlider callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleSlider
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static NkStyleSlider.Buffer mallocStack(int capacity)
Returns a newNkStyleSlider.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static NkStyleSlider.Buffer callocStack(int capacity)
Returns a newNkStyleSlider.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static NkStyleSlider.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleSlider.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static NkStyleSlider.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleSlider.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nnormal
public static NkStyleItem nnormal(long struct)
Unsafe version ofnormal()
.
-
nhover
public static NkStyleItem nhover(long struct)
Unsafe version ofhover()
.
-
nactive
public static NkStyleItem nactive(long struct)
Unsafe version ofactive()
.
-
nborder_color
public static NkColor nborder_color(long struct)
Unsafe version ofborder_color()
.
-
nbar_normal
public static NkColor nbar_normal(long struct)
Unsafe version ofbar_normal()
.
-
nbar_hover
public static NkColor nbar_hover(long struct)
Unsafe version ofbar_hover()
.
-
nbar_active
public static NkColor nbar_active(long struct)
Unsafe version ofbar_active()
.
-
nbar_filled
public static NkColor nbar_filled(long struct)
Unsafe version ofbar_filled()
.
-
ncursor_normal
public static NkStyleItem ncursor_normal(long struct)
Unsafe version ofcursor_normal()
.
-
ncursor_hover
public static NkStyleItem ncursor_hover(long struct)
Unsafe version ofcursor_hover()
.
-
ncursor_active
public static NkStyleItem ncursor_active(long struct)
Unsafe version ofcursor_active()
.
-
nborder
public static float nborder(long struct)
Unsafe version ofborder()
.
-
nrounding
public static float nrounding(long struct)
Unsafe version ofrounding()
.
-
nbar_height
public static float nbar_height(long struct)
Unsafe version ofbar_height()
.
-
ncursor_size
public static NkVec2 ncursor_size(long struct)
Unsafe version ofcursor_size()
.
-
nshow_buttons
public static int nshow_buttons(long struct)
Unsafe version ofshow_buttons()
.
-
ninc_button
public static NkStyleButton ninc_button(long struct)
Unsafe version ofinc_button()
.
-
ndec_button
public static NkStyleButton ndec_button(long struct)
Unsafe version ofdec_button()
.
-
ninc_symbol
public static int ninc_symbol(long struct)
Unsafe version ofinc_symbol()
.
-
ndec_symbol
public static int ndec_symbol(long struct)
Unsafe version ofdec_symbol()
.
-
nuserdata
public static NkHandle nuserdata(long struct)
Unsafe version ofuserdata()
.
-
ndraw_begin
@Nullable public static NkDrawBeginCallback ndraw_begin(long struct)
Unsafe version ofdraw_begin()
.
-
ndraw_end
@Nullable public static NkDrawEndCallback ndraw_end(long struct)
Unsafe version ofdraw_end()
.
-
nnormal
public static void nnormal(long struct, NkStyleItem value)
Unsafe version ofnormal
.
-
nhover
public static void nhover(long struct, NkStyleItem value)
Unsafe version ofhover
.
-
nactive
public static void nactive(long struct, NkStyleItem value)
Unsafe version ofactive
.
-
nborder_color
public static void nborder_color(long struct, NkColor value)
Unsafe version ofborder_color
.
-
nbar_normal
public static void nbar_normal(long struct, NkColor value)
Unsafe version ofbar_normal
.
-
nbar_active
public static void nbar_active(long struct, NkColor value)
Unsafe version ofbar_active
.
-
nbar_filled
public static void nbar_filled(long struct, NkColor value)
Unsafe version ofbar_filled
.
-
ncursor_normal
public static void ncursor_normal(long struct, NkStyleItem value)
Unsafe version ofcursor_normal
.
-
ncursor_hover
public static void ncursor_hover(long struct, NkStyleItem value)
Unsafe version ofcursor_hover
.
-
ncursor_active
public static void ncursor_active(long struct, NkStyleItem value)
Unsafe version ofcursor_active
.
-
nborder
public static void nborder(long struct, float value)
Unsafe version ofborder
.
-
nrounding
public static void nrounding(long struct, float value)
Unsafe version ofrounding
.
-
nbar_height
public static void nbar_height(long struct, float value)
Unsafe version ofbar_height
.
-
ncursor_size
public static void ncursor_size(long struct, NkVec2 value)
Unsafe version ofcursor_size
.
-
nshow_buttons
public static void nshow_buttons(long struct, int value)
Unsafe version ofshow_buttons
.
-
ninc_button
public static void ninc_button(long struct, NkStyleButton value)
Unsafe version ofinc_button
.
-
ndec_button
public static void ndec_button(long struct, NkStyleButton value)
Unsafe version ofdec_button
.
-
ninc_symbol
public static void ninc_symbol(long struct, int value)
Unsafe version ofinc_symbol
.
-
ndec_symbol
public static void ndec_symbol(long struct, int value)
Unsafe version ofdec_symbol
.
-
ndraw_begin
public static void ndraw_begin(long struct, @Nullable NkDrawBeginCallbackI value)
Unsafe version ofdraw_begin
.
-
ndraw_end
public static void ndraw_end(long struct, @Nullable NkDrawEndCallbackI value)
Unsafe version ofdraw_end
.
-
-