Top Description Inners Fields Constructors Methods
org.lwjgl.nuklear

public Class NkStyleSlider

extends Struct<NkStyleSlider>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Annotations
@NativeType:struct nk_style_slider
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

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 and Inner Type Summary

Modifier and TypeClass and Description
public static class
NkStyleSlider.Buffer

An array of NkStyleSlider structs.

Field Summary

Modifier and TypeField and Description
public static final int
ACTIVE

The struct member offsets.

public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BAR_ACTIVE

The struct member offsets.

public static final int
BAR_FILLED

The struct member offsets.

public static final int
BAR_HEIGHT

The struct member offsets.

public static final int
BAR_HOVER

The struct member offsets.

public static final int
BAR_NORMAL

The struct member offsets.

public static final int
BORDER

The struct member offsets.

public static final int
BORDER_COLOR

The struct member offsets.

public static final int
CURSOR_ACTIVE

The struct member offsets.

public static final int
CURSOR_HOVER

The struct member offsets.

public static final int
CURSOR_NORMAL

The struct member offsets.

public static final int
CURSOR_SIZE

The struct member offsets.

public static final int
DEC_BUTTON

The struct member offsets.

public static final int
DEC_SYMBOL

The struct member offsets.

public static final int
DRAW_BEGIN

The struct member offsets.

public static final int
DRAW_END

The struct member offsets.

public static final int
HOVER

The struct member offsets.

public static final int
INC_BUTTON

The struct member offsets.

public static final int
INC_SYMBOL

The struct member offsets.

public static final int
NORMAL

The struct member offsets.

public static final int
PADDING

The struct member offsets.

public static final int
ROUNDING

The struct member offsets.

public static final int
SHOW_BUTTONS

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SPACING

The struct member offsets.

public static final int
USERDATA

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
NkStyleSlider(long address, ByteBuffer container)

public
NkStyleSlider(ByteBuffer container)

Creates a NkStyleSlider instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public NkStyleItem

Returns:

a NkStyleItem view of the active field.
active
()

public NkStyleSlider
active(NkStyleItem value)

Copies the specified NkStyleItem to the active field.

public NkStyleSlider
active(Consumer<NkStyleItem> consumer)

Passes the active field to the specified Consumer.

public NkColor

Returns:

a NkColor view of the bar_active field.
bar_active
()

public NkStyleSlider
bar_active(NkColor value)

Copies the specified NkColor to the bar_active field.

public NkStyleSlider
bar_active(Consumer<NkColor> consumer)

Passes the bar_active field to the specified Consumer.

public NkColor

Returns:

a NkColor view of the bar_filled field.
bar_filled
()

public NkStyleSlider
bar_filled(NkColor value)

Copies the specified NkColor to the bar_filled field.

public NkStyleSlider
bar_filled(Consumer<NkColor> consumer)

Passes the bar_filled field to the specified Consumer.

public float

Returns:

the value of the bar_height field.
bar_height
()

public NkStyleSlider
bar_height(float value)

Sets the specified value to the bar_height field.

public NkColor

Returns:

a NkColor view of the bar_hover field.
bar_hover
()

public NkStyleSlider
bar_hover(NkColor value)

Copies the specified NkColor to the bar_hover field.

public NkStyleSlider
bar_hover(Consumer<NkColor> consumer)

Passes the bar_hover field to the specified Consumer.

public NkColor

Returns:

a NkColor view of the bar_normal field.
bar_normal
()

public NkStyleSlider
bar_normal(NkColor value)

Copies the specified NkColor to the bar_normal field.

public NkStyleSlider
bar_normal(Consumer<NkColor> consumer)

Passes the bar_normal field to the specified Consumer.

public float

Returns:

the value of the border field.
border
()

public NkStyleSlider
border(float value)

Sets the specified value to the border field.

public NkColor

Returns:

a NkColor view of the border_color field.
border_color
()

public NkStyleSlider
border_color(NkColor value)

Copies the specified NkColor to the border_color field.

public NkStyleSlider
border_color(Consumer<NkColor> consumer)

Passes the border_color field to the specified Consumer.

public static NkStyleSlider
calloc()

Returns a new NkStyleSlider instance allocated with memCalloc.

public static NkStyleSlider.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new NkStyleSlider.Buffer instance allocated with memCalloc.

public static NkStyleSlider
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new NkStyleSlider instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static NkStyleSlider.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new NkStyleSlider.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static NkStyleSlider
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static NkStyleSlider
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static NkStyleSlider.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static NkStyleSlider.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected NkStyleSlider
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static NkStyleSlider
create()

Returns a new NkStyleSlider instance allocated with BufferUtils.

public static NkStyleSlider
create(long address)

Returns a new NkStyleSlider instance for the specified memory address.

public static NkStyleSlider.Buffer
create(int
the buffer capacity
capacity
)

Returns a new NkStyleSlider.Buffer instance allocated with BufferUtils.

public static NkStyleSlider.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a NkStyleSlider.Buffer instance at the specified memory.

public static NkStyleSlider
createSafe(long address)

Like create, but returns null if address is NULL.

public static NkStyleSlider.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public NkStyleItem

Returns:

a NkStyleItem view of the cursor_active field.
cursor_active
()

public NkStyleSlider
cursor_active(NkStyleItem value)

Copies the specified NkStyleItem to the cursor_active field.

public NkStyleSlider
cursor_active(Consumer<NkStyleItem> consumer)

Passes the cursor_active field to the specified Consumer.

public NkStyleItem

Returns:

a NkStyleItem view of the cursor_hover field.
cursor_hover
()

public NkStyleSlider
cursor_hover(NkStyleItem value)

Copies the specified NkStyleItem to the cursor_hover field.

public NkStyleSlider
cursor_hover(Consumer<NkStyleItem> consumer)

Passes the cursor_hover field to the specified Consumer.

public NkStyleItem

Returns:

a NkStyleItem view of the cursor_normal field.
cursor_normal
()

public NkStyleSlider
cursor_normal(NkStyleItem value)

Copies the specified NkStyleItem to the cursor_normal field.

public NkStyleSlider
cursor_normal(Consumer<NkStyleItem> consumer)

Passes the cursor_normal field to the specified Consumer.

public NkVec2

Returns:

a NkVec2 view of the cursor_size field.
cursor_size
()

public NkStyleSlider
cursor_size(NkVec2 value)

Copies the specified NkVec2 to the cursor_size field.

public NkStyleSlider
cursor_size(Consumer<NkVec2> consumer)

Passes the cursor_size field to the specified Consumer.

public NkStyleButton

Returns:

a NkStyleButton view of the dec_button field.
dec_button
()

public NkStyleSlider
dec_button(NkStyleButton value)

Copies the specified NkStyleButton to the dec_button field.

public NkStyleSlider
dec_button(Consumer<NkStyleButton> consumer)

Passes the dec_button field to the specified Consumer.

public int
dec_symbol()

see inc_symbol

public NkStyleSlider
dec_symbol(int value)

Sets the specified value to the dec_symbol field.

public NkDrawBeginCallback

Returns:

the value of the draw_begin field.
draw_begin
()

public NkStyleSlider
draw_begin(NkDrawBeginCallbackI value)

Sets the specified value to the draw_begin field.

public NkDrawEndCallback

Returns:

the value of the draw_end field.
draw_end
()

public NkStyleSlider
draw_end(NkDrawEndCallbackI value)

Sets the specified value to the draw_end field.

public NkStyleItem

Returns:

a NkStyleItem view of the hover field.
hover
()

public NkStyleSlider
hover(NkStyleItem value)

Copies the specified NkStyleItem to the hover field.

public NkStyleSlider
hover(Consumer<NkStyleItem> consumer)

Passes the hover field to the specified Consumer.

public NkStyleButton

Returns:

a NkStyleButton view of the inc_button field.
inc_button
()

public NkStyleSlider
inc_button(NkStyleButton value)

Copies the specified NkStyleButton to the inc_button field.

public NkStyleSlider
inc_button(Consumer<NkStyleButton> consumer)

Passes the inc_button field to the specified Consumer.

public int
public NkStyleSlider
inc_symbol(int value)

Sets the specified value to the inc_symbol field.

public static NkStyleSlider
malloc()

Returns a new NkStyleSlider instance allocated with memAlloc.

public static NkStyleSlider.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new NkStyleSlider.Buffer instance allocated with memAlloc.

public static NkStyleSlider
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new NkStyleSlider instance allocated on the specified MemoryStack.

public static NkStyleSlider.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new NkStyleSlider.Buffer instance allocated on the specified MemoryStack.

public static NkStyleSlider
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static NkStyleSlider
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static NkStyleSlider.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static NkStyleSlider.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static NkStyleItem
nactive(long struct)

Unsafe version of active.

public static void
nactive(long struct, NkStyleItem value)

Unsafe version of active.

public static NkColor
nbar_active(long struct)

Unsafe version of bar_active.

public static void
nbar_active(long struct, NkColor value)

Unsafe version of bar_active.

public static NkColor
nbar_filled(long struct)

Unsafe version of bar_filled.

public static void
nbar_filled(long struct, NkColor value)

Unsafe version of bar_filled.

public static float
nbar_height(long struct)

Unsafe version of bar_height.

public static void
nbar_height(long struct, float value)

Unsafe version of bar_height.

public static NkColor
nbar_hover(long struct)

Unsafe version of bar_hover.

public static void
nbar_hover(long struct, NkColor value)

Unsafe version of bar_hover.

public static NkColor
nbar_normal(long struct)

Unsafe version of bar_normal.

public static void
nbar_normal(long struct, NkColor value)

Unsafe version of bar_normal.

public static float
nborder(long struct)

Unsafe version of border.

public static void
nborder(long struct, float value)

Unsafe version of border.

public static NkColor
nborder_color(long struct)

Unsafe version of border_color.

public static void
nborder_color(long struct, NkColor value)

Unsafe version of border_color.

public static NkStyleItem
ncursor_active(long struct)

Unsafe version of cursor_active.

public static void
ncursor_active(long struct, NkStyleItem value)

Unsafe version of cursor_active.

public static NkStyleItem
ncursor_hover(long struct)

Unsafe version of cursor_hover.

public static void
ncursor_hover(long struct, NkStyleItem value)

Unsafe version of cursor_hover.

public static NkStyleItem
ncursor_normal(long struct)

Unsafe version of cursor_normal.

public static void
ncursor_normal(long struct, NkStyleItem value)

Unsafe version of cursor_normal.

public static NkVec2
ncursor_size(long struct)

Unsafe version of cursor_size.

public static void
ncursor_size(long struct, NkVec2 value)

Unsafe version of cursor_size.

public static NkStyleButton
ndec_button(long struct)

Unsafe version of dec_button.

public static void
ndec_button(long struct, NkStyleButton value)

Unsafe version of dec_button.

public static int
ndec_symbol(long struct)

Unsafe version of dec_symbol.

public static void
ndec_symbol(long struct, int value)

Unsafe version of dec_symbol.

public static NkDrawBeginCallback
ndraw_begin(long struct)

Unsafe version of draw_begin.

public static void
ndraw_begin(long struct, NkDrawBeginCallbackI value)

Unsafe version of draw_begin.

public static NkDrawEndCallback
ndraw_end(long struct)

Unsafe version of draw_end.

public static void
ndraw_end(long struct, NkDrawEndCallbackI value)

Unsafe version of draw_end.

public static NkStyleItem
nhover(long struct)

Unsafe version of hover.

public static void
nhover(long struct, NkStyleItem value)

Unsafe version of hover.

public static NkStyleButton
ninc_button(long struct)

Unsafe version of inc_button.

public static void
ninc_button(long struct, NkStyleButton value)

Unsafe version of inc_button.

public static int
ninc_symbol(long struct)

Unsafe version of inc_symbol.

public static void
ninc_symbol(long struct, int value)

Unsafe version of inc_symbol.

public static NkStyleItem
nnormal(long struct)

Unsafe version of normal.

public static void
nnormal(long struct, NkStyleItem value)

Unsafe version of normal.

public NkStyleItem

Returns:

a NkStyleItem view of the normal field.
normal
()

public NkStyleSlider
normal(NkStyleItem value)

Copies the specified NkStyleItem to the normal field.

public NkStyleSlider
normal(Consumer<NkStyleItem> consumer)

Passes the normal field to the specified Consumer.

public static NkVec2
npadding(long struct)

Unsafe version of padding.

public static void
npadding(long struct, NkVec2 value)

Unsafe version of padding.

public static float
nrounding(long struct)

Unsafe version of rounding.

public static void
nrounding(long struct, float value)

Unsafe version of rounding.

public static int
nshow_buttons(long struct)

Unsafe version of show_buttons.

public static void
nshow_buttons(long struct, int value)

Unsafe version of show_buttons.

public static NkVec2
nspacing(long struct)

Unsafe version of spacing.

public static void
nspacing(long struct, NkVec2 value)

Unsafe version of spacing.

public static NkHandle
nuserdata(long struct)

Unsafe version of userdata.

public static void
nuserdata(long struct, NkHandle value)

Unsafe version of userdata.

public NkVec2

Returns:

a NkVec2 view of the padding field.
padding
()

public NkStyleSlider
padding(NkVec2 value)

Copies the specified NkVec2 to the padding field.

public NkStyleSlider
padding(Consumer<NkVec2> consumer)

Passes the padding field to the specified Consumer.

public float

Returns:

the value of the rounding field.
rounding
()

public NkStyleSlider
rounding(float value)

Sets the specified value to the rounding field.

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.

public NkStyleSlider

Returns:

this struct
set
(NkStyleSlider
the source struct
src
)

Copies the specified struct data to this struct.

public int

Returns:

the value of the show_buttons field.
show_buttons
()

public NkStyleSlider
show_buttons(int value)

Sets the specified value to the show_buttons field.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public NkVec2

Returns:

a NkVec2 view of the spacing field.
spacing
()

public NkStyleSlider
spacing(NkVec2 value)

Copies the specified NkVec2 to the spacing field.

public NkStyleSlider
spacing(Consumer<NkVec2> consumer)

Passes the spacing field to the specified Consumer.

public NkHandle

Returns:

a NkHandle view of the userdata field.
userdata
()

public NkStyleSlider
userdata(NkHandle value)

Copies the specified NkHandle to the userdata field.

public NkStyleSlider
userdata(Consumer<NkHandle> consumer)

Passes the userdata field to the specified Consumer.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate