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.NativeResourceMember documentation
inc_symbol– one of:dec_symbol– seeinc_symbol
Layout
struct nk_style_slider {struct nk_style_itemnormal;struct nk_style_itemhover;struct nk_style_itemactive;struct nk_colorborder_color;struct nk_colorbar_normal;struct nk_colorbar_hover;struct nk_colorbar_active;struct nk_colorbar_filled;struct nk_style_itemcursor_normal;struct nk_style_itemcursor_hover;struct nk_style_itemcursor_active; float border; float rounding; float bar_height;struct nk_vec2padding;struct nk_vec2spacing;struct nk_vec2cursor_size; int show_buttons;struct nk_style_buttoninc_button;struct nk_style_buttondec_button; enum nk_symbol_type inc_symbol; enum nk_symbol_type dec_symbol;nk_handleuserdata;nk_draw_begindraw_begin;nk_draw_enddraw_end; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkStyleSlider.BufferAn array ofNkStyleSliderstructs.
-
Field Summary
Fields Modifier and Type Field Description static intACTIVEThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intBAR_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 intSIZEOFThe struct size in bytes.static intSPACING
USERDATAThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkStyleSlider(java.nio.ByteBuffer container)Creates aNkStyleSliderinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItemactive()Returns aNkStyleItemview of theactivefield.NkStyleSlideractive(java.util.function.Consumer<NkStyleItem> consumer)Passes theactivefield to the specifiedConsumer.NkStyleSlideractive(NkStyleItem value)Copies the specifiedNkStyleItemto theactivefield.NkColorbar_active()Returns aNkColorview of thebar_activefield.NkStyleSliderbar_active(java.util.function.Consumer<NkColor> consumer)Passes thebar_activefield to the specifiedConsumer.NkStyleSliderbar_active(NkColor value)Copies the specifiedNkColorto thebar_activefield.NkColorbar_filled()Returns aNkColorview of thebar_filledfield.NkStyleSliderbar_filled(java.util.function.Consumer<NkColor> consumer)Passes thebar_filledfield to the specifiedConsumer.NkStyleSliderbar_filled(NkColor value)Copies the specifiedNkColorto thebar_filledfield.floatbar_height()Returns the value of thebar_heightfield.NkStyleSliderbar_height(float value)Sets the specified value to thebar_heightfield.NkColorbar_hover()Returns aNkColorview of thebar_hoverfield.NkStyleSliderbar_hover(java.util.function.Consumer<NkColor> consumer)Passes thebar_hoverfield to the specifiedConsumer.NkStyleSliderbar_hover(NkColor value)Copies the specifiedNkColorto thebar_hoverfield.NkColorbar_normal()Returns aNkColorview of thebar_normalfield.NkStyleSliderbar_normal(java.util.function.Consumer<NkColor> consumer)Passes thebar_normalfield to the specifiedConsumer.NkStyleSliderbar_normal(NkColor value)Copies the specifiedNkColorto thebar_normalfield.floatborder()Returns the value of theborderfield.NkStyleSliderborder(float value)Sets the specified value to theborderfield.NkColorborder_color()Returns aNkColorview of theborder_colorfield.NkStyleSliderborder_color(java.util.function.Consumer<NkColor> consumer)Passes theborder_colorfield to the specifiedConsumer.NkStyleSliderborder_color(NkColor value)Copies the specifiedNkColorto theborder_colorfield.static NkStyleSlidercalloc()Returns a newNkStyleSliderinstance allocated withmemCalloc.static NkStyleSlider.Buffercalloc(int capacity)Returns a newNkStyleSlider.Bufferinstance allocated withmemCalloc.static NkStyleSlidercallocStack()Returns a newNkStyleSliderinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NkStyleSlider.BuffercallocStack(int capacity)Returns a newNkStyleSlider.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NkStyleSlider.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkStyleSlider.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkStyleSlidercallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNkStyleSliderinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkStyleSlidercreate()Returns a newNkStyleSliderinstance allocated withBufferUtils.static NkStyleSlider.Buffercreate(int capacity)Returns a newNkStyleSlider.Bufferinstance allocated withBufferUtils.static NkStyleSlidercreate(long address)Returns a newNkStyleSliderinstance for the specified memory address.static NkStyleSlider.Buffercreate(long address, int capacity)Create aNkStyleSlider.Bufferinstance at the specified memory.static NkStyleSlidercreateSafe(long address)static NkStyleSlider.BuffercreateSafe(long address, int capacity)NkStyleItemcursor_active()Returns aNkStyleItemview of thecursor_activefield.NkStyleSlidercursor_active(java.util.function.Consumer<NkStyleItem> consumer)Passes thecursor_activefield to the specifiedConsumer.NkStyleSlidercursor_active(NkStyleItem value)Copies the specifiedNkStyleItemto thecursor_activefield.NkStyleItemcursor_hover()Returns aNkStyleItemview of thecursor_hoverfield.NkStyleSlidercursor_hover(java.util.function.Consumer<NkStyleItem> consumer)Passes thecursor_hoverfield to the specifiedConsumer.NkStyleSlidercursor_hover(NkStyleItem value)Copies the specifiedNkStyleItemto thecursor_hoverfield.NkStyleItemcursor_normal()Returns aNkStyleItemview of thecursor_normalfield.NkStyleSlidercursor_normal(java.util.function.Consumer<NkStyleItem> consumer)Passes thecursor_normalfield to the specifiedConsumer.NkStyleSlidercursor_normal(NkStyleItem value)Copies the specifiedNkStyleItemto thecursor_normalfield.NkVec2cursor_size()Returns aNkVec2view of thecursor_sizefield.NkStyleSlidercursor_size(java.util.function.Consumer<NkVec2> consumer)Passes thecursor_sizefield to the specifiedConsumer.NkStyleSlidercursor_size(NkVec2 value)Copies the specifiedNkVec2to thecursor_sizefield.NkStyleButtondec_button()Returns aNkStyleButtonview of thedec_buttonfield.NkStyleSliderdec_button(java.util.function.Consumer<NkStyleButton> consumer)Passes thedec_buttonfield to the specifiedConsumer.NkStyleSliderdec_button(NkStyleButton value)Copies the specifiedNkStyleButtonto thedec_buttonfield.intdec_symbol()Returns the value of thedec_symbolfield.NkStyleSliderdec_symbol(int value)Sets the specified value to thedec_symbolfield.NkDrawBeginCallbackdraw_begin()Returns the value of thedraw_beginfield.NkStyleSliderdraw_begin(NkDrawBeginCallbackI value)Sets the specified value to thedraw_beginfield.NkDrawEndCallbackdraw_end()Returns the value of thedraw_endfield.NkStyleSliderdraw_end(NkDrawEndCallbackI value)Sets the specified value to thedraw_endfield.NkStyleItemhover()Returns aNkStyleItemview of thehoverfield.NkStyleSliderhover(java.util.function.Consumer<NkStyleItem> consumer)Passes thehoverfield to the specifiedConsumer.NkStyleSliderhover(NkStyleItem value)Copies the specifiedNkStyleItemto thehoverfield.NkStyleButtoninc_button()Returns aNkStyleButtonview of theinc_buttonfield.NkStyleSliderinc_button(java.util.function.Consumer<NkStyleButton> consumer)Passes theinc_buttonfield to the specifiedConsumer.NkStyleSliderinc_button(NkStyleButton value)Copies the specifiedNkStyleButtonto theinc_buttonfield.intinc_symbol()Returns the value of theinc_symbolfield.NkStyleSliderinc_symbol(int value)Sets the specified value to theinc_symbolfield.static NkStyleSlidermalloc()Returns a newNkStyleSliderinstance allocated withmemAlloc.static NkStyleSlider.Buffermalloc(int capacity)Returns a newNkStyleSlider.Bufferinstance allocated withmemAlloc.static NkStyleSlidermallocStack()Returns a newNkStyleSliderinstance allocated on the thread-localMemoryStack.static NkStyleSlider.BuffermallocStack(int capacity)Returns a newNkStyleSlider.Bufferinstance allocated on the thread-localMemoryStack.static NkStyleSlider.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkStyleSlider.Bufferinstance allocated on the specifiedMemoryStack.static NkStyleSlidermallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNkStyleSliderinstance allocated on the specifiedMemoryStack.static NkStyleItemnactive(long struct)Unsafe version ofactive().static voidnactive(long struct, NkStyleItem value)Unsafe version ofactive.static NkColornbar_active(long struct)Unsafe version ofbar_active().static voidnbar_active(long struct, NkColor value)Unsafe version ofbar_active.static NkColornbar_filled(long struct)Unsafe version ofbar_filled().static voidnbar_filled(long struct, NkColor value)Unsafe version ofbar_filled.static floatnbar_height(long struct)Unsafe version ofbar_height().static voidnbar_height(long struct, float value)Unsafe version ofbar_height.static NkColornbar_hover(long struct)Unsafe version ofbar_hover().static voidnbar_hover(long struct, NkColor value)Unsafe version ofbar_hover.static NkColornbar_normal(long struct)Unsafe version ofbar_normal().static voidnbar_normal(long struct, NkColor value)Unsafe version ofbar_normal.static floatnborder(long struct)Unsafe version ofborder().static voidnborder(long struct, float value)Unsafe version ofborder.static NkColornborder_color(long struct)Unsafe version ofborder_color().static voidnborder_color(long struct, NkColor value)Unsafe version ofborder_color.static NkStyleItemncursor_active(long struct)Unsafe version ofcursor_active().static voidncursor_active(long struct, NkStyleItem value)Unsafe version ofcursor_active.static NkStyleItemncursor_hover(long struct)Unsafe version ofcursor_hover().static voidncursor_hover(long struct, NkStyleItem value)Unsafe version ofcursor_hover.static NkStyleItemncursor_normal(long struct)Unsafe version ofcursor_normal().static voidncursor_normal(long struct, NkStyleItem value)Unsafe version ofcursor_normal.static NkVec2ncursor_size(long struct)Unsafe version ofcursor_size().static voidncursor_size(long struct, NkVec2 value)Unsafe version ofcursor_size.static NkStyleButtonndec_button(long struct)Unsafe version ofdec_button().static voidndec_button(long struct, NkStyleButton value)Unsafe version ofdec_button.static intndec_symbol(long struct)Unsafe version ofdec_symbol().static voidndec_symbol(long struct, int value)Unsafe version ofdec_symbol.static NkDrawBeginCallbackndraw_begin(long struct)Unsafe version ofdraw_begin().static voidndraw_begin(long struct, NkDrawBeginCallbackI value)Unsafe version ofdraw_begin.static NkDrawEndCallbackndraw_end(long struct)Unsafe version ofdraw_end().static voidndraw_end(long struct, NkDrawEndCallbackI value)Unsafe version ofdraw_end.static NkStyleItemnhover(long struct)Unsafe version ofhover().static voidnhover(long struct, NkStyleItem value)Unsafe version ofhover.static NkStyleButtonninc_button(long struct)Unsafe version ofinc_button().static voidninc_button(long struct, NkStyleButton value)Unsafe version ofinc_button.static intninc_symbol(long struct)Unsafe version ofinc_symbol().static voidninc_symbol(long struct, int value)Unsafe version ofinc_symbol.static NkStyleItemnnormal(long struct)Unsafe version ofnormal().static voidnnormal(long struct, NkStyleItem value)Unsafe version ofnormal.NkStyleItemnormal()Returns aNkStyleItemview of thenormalfield.NkStyleSlidernormal(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormalfield to the specifiedConsumer.NkStyleSlidernormal(NkStyleItem value)Copies the specifiedNkStyleItemto thenormalfield.static NkVec2npadding(long struct)Unsafe version ofpadding().static voidnpadding(long struct, NkVec2 value)Unsafe version ofpadding.static floatnrounding(long struct)Unsafe version ofrounding().static voidnrounding(long struct, float value)Unsafe version ofrounding.static intnshow_buttons(long struct)Unsafe version ofshow_buttons().static voidnshow_buttons(long struct, int value)Unsafe version ofshow_buttons.static NkVec2nspacing(long struct)Unsafe version ofspacing().static voidnspacing(long struct, NkVec2 value)Unsafe version ofspacing.static NkHandlenuserdata(long struct)Unsafe version ofuserdata().static voidnuserdata(long struct, NkHandle value)Unsafe version ofuserdata.NkVec2padding()Returns aNkVec2view of thepaddingfield.NkStyleSliderpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleSliderpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.floatrounding()Returns the value of theroundingfield.NkStyleSliderrounding(float value)Sets the specified value to theroundingfield.NkStyleSliderset(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.NkStyleSliderset(NkStyleSlider src)Copies the specified struct data to this struct.intshow_buttons()Returns the value of theshow_buttonsfield.NkStyleSlidershow_buttons(int value)Sets the specified value to theshow_buttonsfield.intsizeof()NkVec2spacing()Returns aNkVec2view of thespacingfield.NkStyleSliderspacing(java.util.function.Consumer<NkVec2> consumer)Passes thespacingfield to the specifiedConsumer.NkStyleSliderspacing(NkVec2 value)Copies the specifiedNkVec2to thespacingfield.NkHandleuserdata()Returns aNkHandleview of theuserdatafield.NkStyleSlideruserdata(java.util.function.Consumer<NkHandle> consumer)Passes theuserdatafield to the specifiedConsumer.NkStyleSlideruserdata(NkHandle value)Copies the specifiedNkHandleto theuserdatafield.
-
-
-
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 aNkStyleSliderinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
normal
public NkStyleItem normal()
Returns aNkStyleItemview of thenormalfield.
-
normal
public NkStyleSlider normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormalfield to the specifiedConsumer.
-
hover
public NkStyleItem hover()
Returns aNkStyleItemview of thehoverfield.
-
hover
public NkStyleSlider hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehoverfield to the specifiedConsumer.
-
active
public NkStyleItem active()
Returns aNkStyleItemview of theactivefield.
-
active
public NkStyleSlider active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactivefield to the specifiedConsumer.
-
border_color
public NkStyleSlider border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_colorfield to the specifiedConsumer.
-
bar_normal
public NkStyleSlider bar_normal(java.util.function.Consumer<NkColor> consumer)
Passes thebar_normalfield to the specifiedConsumer.
-
bar_hover
public NkStyleSlider bar_hover(java.util.function.Consumer<NkColor> consumer)
Passes thebar_hoverfield to the specifiedConsumer.
-
bar_active
public NkStyleSlider bar_active(java.util.function.Consumer<NkColor> consumer)
Passes thebar_activefield to the specifiedConsumer.
-
bar_filled
public NkStyleSlider bar_filled(java.util.function.Consumer<NkColor> consumer)
Passes thebar_filledfield to the specifiedConsumer.
-
cursor_normal
public NkStyleItem cursor_normal()
Returns aNkStyleItemview of thecursor_normalfield.
-
cursor_normal
public NkStyleSlider cursor_normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_normalfield to the specifiedConsumer.
-
cursor_hover
public NkStyleItem cursor_hover()
Returns aNkStyleItemview of thecursor_hoverfield.
-
cursor_hover
public NkStyleSlider cursor_hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_hoverfield to the specifiedConsumer.
-
cursor_active
public NkStyleItem cursor_active()
Returns aNkStyleItemview of thecursor_activefield.
-
cursor_active
public NkStyleSlider cursor_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_activefield to the specifiedConsumer.
-
border
public float border()
Returns the value of theborderfield.
-
rounding
public float rounding()
Returns the value of theroundingfield.
-
bar_height
public float bar_height()
Returns the value of thebar_heightfield.
-
padding
public NkStyleSlider padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
spacing
public NkStyleSlider spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacingfield to the specifiedConsumer.
-
cursor_size
public NkStyleSlider cursor_size(java.util.function.Consumer<NkVec2> consumer)
Passes thecursor_sizefield to the specifiedConsumer.
-
show_buttons
public int show_buttons()
Returns the value of theshow_buttonsfield.
-
inc_button
public NkStyleButton inc_button()
Returns aNkStyleButtonview of theinc_buttonfield.
-
inc_button
public NkStyleSlider inc_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theinc_buttonfield to the specifiedConsumer.
-
dec_button
public NkStyleButton dec_button()
Returns aNkStyleButtonview of thedec_buttonfield.
-
dec_button
public NkStyleSlider dec_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thedec_buttonfield to the specifiedConsumer.
-
inc_symbol
public int inc_symbol()
Returns the value of theinc_symbolfield.
-
dec_symbol
public int dec_symbol()
Returns the value of thedec_symbolfield.
-
userdata
public NkStyleSlider userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdatafield to the specifiedConsumer.
-
draw_begin
@Nullable public NkDrawBeginCallback draw_begin()
Returns the value of thedraw_beginfield.
-
draw_end
@Nullable public NkDrawEndCallback draw_end()
Returns the value of thedraw_endfield.
-
normal
public NkStyleSlider normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormalfield.
-
hover
public NkStyleSlider hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thehoverfield.
-
active
public NkStyleSlider active(NkStyleItem value)
Copies the specifiedNkStyleItemto theactivefield.
-
border_color
public NkStyleSlider border_color(NkColor value)
Copies the specifiedNkColorto theborder_colorfield.
-
bar_normal
public NkStyleSlider bar_normal(NkColor value)
Copies the specifiedNkColorto thebar_normalfield.
-
bar_hover
public NkStyleSlider bar_hover(NkColor value)
Copies the specifiedNkColorto thebar_hoverfield.
-
bar_active
public NkStyleSlider bar_active(NkColor value)
Copies the specifiedNkColorto thebar_activefield.
-
bar_filled
public NkStyleSlider bar_filled(NkColor value)
Copies the specifiedNkColorto thebar_filledfield.
-
cursor_normal
public NkStyleSlider cursor_normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_normalfield.
-
cursor_hover
public NkStyleSlider cursor_hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_hoverfield.
-
cursor_active
public NkStyleSlider cursor_active(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_activefield.
-
border
public NkStyleSlider border(float value)
Sets the specified value to theborderfield.
-
rounding
public NkStyleSlider rounding(float value)
Sets the specified value to theroundingfield.
-
bar_height
public NkStyleSlider bar_height(float value)
Sets the specified value to thebar_heightfield.
-
padding
public NkStyleSlider padding(NkVec2 value)
Copies the specifiedNkVec2to thepaddingfield.
-
spacing
public NkStyleSlider spacing(NkVec2 value)
Copies the specifiedNkVec2to thespacingfield.
-
cursor_size
public NkStyleSlider cursor_size(NkVec2 value)
Copies the specifiedNkVec2to thecursor_sizefield.
-
show_buttons
public NkStyleSlider show_buttons(int value)
Sets the specified value to theshow_buttonsfield.
-
inc_button
public NkStyleSlider inc_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto theinc_buttonfield.
-
dec_button
public NkStyleSlider dec_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thedec_buttonfield.
-
inc_symbol
public NkStyleSlider inc_symbol(int value)
Sets the specified value to theinc_symbolfield.
-
dec_symbol
public NkStyleSlider dec_symbol(int value)
Sets the specified value to thedec_symbolfield.
-
userdata
public NkStyleSlider userdata(NkHandle value)
Copies the specifiedNkHandleto theuserdatafield.
-
draw_begin
public NkStyleSlider draw_begin(@Nullable NkDrawBeginCallbackI value)
Sets the specified value to thedraw_beginfield.
-
draw_end
public NkStyleSlider draw_end(@Nullable NkDrawEndCallbackI value)
Sets the specified value to thedraw_endfield.
-
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 newNkStyleSliderinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static NkStyleSlider calloc()
Returns a newNkStyleSliderinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static NkStyleSlider create()
Returns a newNkStyleSliderinstance allocated withBufferUtils.
-
create
public static NkStyleSlider create(long address)
Returns a newNkStyleSliderinstance for the specified memory address.
-
createSafe
@Nullable public static NkStyleSlider createSafe(long address)
-
malloc
public static NkStyleSlider.Buffer malloc(int capacity)
Returns a newNkStyleSlider.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static NkStyleSlider.Buffer calloc(int capacity)
Returns a newNkStyleSlider.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static NkStyleSlider.Buffer create(int capacity)
Returns a newNkStyleSlider.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static NkStyleSlider.Buffer create(long address, int capacity)
Create aNkStyleSlider.Bufferinstance 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 newNkStyleSliderinstance allocated on the thread-localMemoryStack.
-
callocStack
public static NkStyleSlider callocStack()
Returns a newNkStyleSliderinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static NkStyleSlider mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleSliderinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static NkStyleSlider callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleSliderinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static NkStyleSlider.Buffer callocStack(int capacity)
Returns a newNkStyleSlider.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-