Top Description Inners Fields Constructors Methods
org.lwjgl.nuklear

public Class NkStyleSelectable

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

Layout


struct nk_style_selectable {
    struct nk_style_item normal;
    struct nk_style_item hover;
    struct nk_style_item pressed;
    struct nk_style_item normal_active;
    struct nk_style_item hover_active;
    struct nk_style_item pressed_active;
    struct nk_color text_normal;
    struct nk_color text_hover;
    struct nk_color text_pressed;
    struct nk_color text_normal_active;
    struct nk_color text_hover_active;
    struct nk_color text_pressed_active;
    struct nk_color text_background;
    nk_flags text_alignment;
    float rounding;
    struct nk_vec2 padding;
    struct nk_vec2 touch_padding;
    struct nk_vec2 image_padding;
    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

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

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
HOVER_ACTIVE

The struct member offsets.

public static final int
IMAGE_PADDING

The struct member offsets.

public static final int
NORMAL

The struct member offsets.

public static final int
NORMAL_ACTIVE

The struct member offsets.

public static final int
PADDING

The struct member offsets.

public static final int
PRESSED

The struct member offsets.

public static final int
PRESSED_ACTIVE

The struct member offsets.

public static final int
ROUNDING

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
TEXT_ALIGNMENT

The struct member offsets.

public static final int
TEXT_BACKGROUND

The struct member offsets.

public static final int
TEXT_HOVER

The struct member offsets.

public static final int
TEXT_HOVER_ACTIVE

The struct member offsets.

public static final int
TEXT_NORMAL

The struct member offsets.

public static final int
TEXT_NORMAL_ACTIVE

The struct member offsets.

public static final int
TEXT_PRESSED

The struct member offsets.

public static final int
TEXT_PRESSED_ACTIVE

The struct member offsets.

public static final int
TOUCH_PADDING

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
NkStyleSelectable(long address, ByteBuffer container)

public
NkStyleSelectable(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public static NkStyleSelectable
calloc()

Returns a new NkStyleSelectable instance allocated with memCalloc.

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

Returns a new NkStyleSelectable.Buffer instance allocated with memCalloc.

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

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

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

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

public static NkStyleSelectable
callocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
protected NkStyleSelectable
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 NkStyleSelectable
create()

Returns a new NkStyleSelectable instance allocated with BufferUtils.

public static NkStyleSelectable
create(long address)

Returns a new NkStyleSelectable instance for the specified memory address.

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

Returns a new NkStyleSelectable.Buffer instance allocated with BufferUtils.

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

Create a NkStyleSelectable.Buffer instance at the specified memory.

public static NkStyleSelectable
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public NkDrawBeginCallback

Returns:

the value of the draw_begin field.
draw_begin
()

public NkStyleSelectable
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 NkStyleSelectable
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 NkStyleSelectable
hover(NkStyleItem value)

Copies the specified NkStyleItem to the hover field.

public NkStyleSelectable
hover(Consumer<NkStyleItem> consumer)

Passes the hover field to the specified Consumer.

public NkStyleItem

Returns:

a NkStyleItem view of the hover_active field.
hover_active
()

public NkStyleSelectable
hover_active(NkStyleItem value)

Copies the specified NkStyleItem to the hover_active field.

public NkStyleSelectable
hover_active(Consumer<NkStyleItem> consumer)

Passes the hover_active field to the specified Consumer.

public NkVec2

Returns:

a NkVec2 view of the image_padding field.
image_padding
()

public NkStyleSelectable
image_padding(NkVec2 value)

Copies the specified NkVec2 to the image_padding field.

public NkStyleSelectable
image_padding(Consumer<NkVec2> consumer)

Passes the image_padding field to the specified Consumer.

public static NkStyleSelectable
malloc()

Returns a new NkStyleSelectable instance allocated with memAlloc.

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

Returns a new NkStyleSelectable.Buffer instance allocated with memAlloc.

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

Returns a new NkStyleSelectable instance allocated on the specified MemoryStack.

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

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

public static NkStyleSelectable
mallocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
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 NkStyleItem
nhover_active(long struct)

Unsafe version of hover_active.

public static void
nhover_active(long struct, NkStyleItem value)

Unsafe version of hover_active.

public static NkVec2
nimage_padding(long struct)

Unsafe version of image_padding.

public static void
nimage_padding(long struct, NkVec2 value)

Unsafe version of image_padding.

public static NkStyleItem
nnormal(long struct)

Unsafe version of normal.

public static void
nnormal(long struct, NkStyleItem value)

Unsafe version of normal.

public static NkStyleItem
nnormal_active(long struct)

Unsafe version of normal_active.

public static void
nnormal_active(long struct, NkStyleItem value)

Unsafe version of normal_active.

public NkStyleItem

Returns:

a NkStyleItem view of the normal field.
normal
()

public NkStyleSelectable
normal(NkStyleItem value)

Copies the specified NkStyleItem to the normal field.

public NkStyleSelectable
normal(Consumer<NkStyleItem> consumer)

Passes the normal field to the specified Consumer.

public NkStyleItem

Returns:

a NkStyleItem view of the normal_active field.
normal_active
()

public NkStyleSelectable
normal_active(NkStyleItem value)

Copies the specified NkStyleItem to the normal_active field.

public NkStyleSelectable
normal_active(Consumer<NkStyleItem> consumer)

Passes the normal_active 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 NkStyleItem
npressed(long struct)

Unsafe version of pressed.

public static void
npressed(long struct, NkStyleItem value)

Unsafe version of pressed.

public static NkStyleItem
npressed_active(long struct)

Unsafe version of pressed_active.

public static void
npressed_active(long struct, NkStyleItem value)

Unsafe version of pressed_active.

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
ntext_alignment(long struct)

Unsafe version of text_alignment.

public static void
ntext_alignment(long struct, int value)

Unsafe version of text_alignment.

public static NkColor
ntext_background(long struct)

Unsafe version of text_background.

public static void
ntext_background(long struct, NkColor value)

Unsafe version of text_background.

public static NkColor
ntext_hover(long struct)

Unsafe version of text_hover.

public static void
ntext_hover(long struct, NkColor value)

Unsafe version of text_hover.

public static NkColor
ntext_hover_active(long struct)

Unsafe version of text_hover_active.

public static void
ntext_hover_active(long struct, NkColor value)

Unsafe version of text_hover_active.

public static NkColor
ntext_normal(long struct)

Unsafe version of text_normal.

public static void
ntext_normal(long struct, NkColor value)

Unsafe version of text_normal.

public static NkColor
ntext_normal_active(long struct)

Unsafe version of text_normal_active.

public static void
ntext_normal_active(long struct, NkColor value)

Unsafe version of text_normal_active.

public static NkColor
ntext_pressed(long struct)

Unsafe version of text_pressed.

public static void
ntext_pressed(long struct, NkColor value)

Unsafe version of text_pressed.

public static NkColor
ntext_pressed_active(long struct)

Unsafe version of text_pressed_active.

public static void
ntext_pressed_active(long struct, NkColor value)

Unsafe version of text_pressed_active.

public static NkVec2
ntouch_padding(long struct)

Unsafe version of touch_padding.

public static void
ntouch_padding(long struct, NkVec2 value)

Unsafe version of touch_padding.

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 NkStyleSelectable
padding(NkVec2 value)

Copies the specified NkVec2 to the padding field.

public NkStyleSelectable
padding(Consumer<NkVec2> consumer)

Passes the padding field to the specified Consumer.

public NkStyleItem

Returns:

a NkStyleItem view of the pressed field.
pressed
()

public NkStyleSelectable
pressed(NkStyleItem value)

Copies the specified NkStyleItem to the pressed field.

public NkStyleSelectable
pressed(Consumer<NkStyleItem> consumer)

Passes the pressed field to the specified Consumer.

public NkStyleItem

Returns:

a NkStyleItem view of the pressed_active field.
pressed_active
()

public NkStyleSelectable
pressed_active(NkStyleItem value)

Copies the specified NkStyleItem to the pressed_active field.

public NkStyleSelectable
pressed_active(Consumer<NkStyleItem> consumer)

Passes the pressed_active field to the specified Consumer.

public float

Returns:

the value of the rounding field.
rounding
()

public NkStyleSelectable
rounding(float value)

Sets the specified value to the rounding field.

public NkStyleSelectable
set(NkStyleItem normal, NkStyleItem hover, NkStyleItem pressed, NkStyleItem normal_active, NkStyleItem hover_active, NkStyleItem pressed_active, NkColor text_normal, NkColor text_hover, NkColor text_pressed, NkColor text_normal_active, NkColor text_hover_active, NkColor text_pressed_active, NkColor text_background, int text_alignment, float rounding, NkVec2 padding, NkVec2 touch_padding, NkVec2 image_padding, NkHandle userdata, NkDrawBeginCallbackI draw_begin, NkDrawEndCallbackI draw_end)

Initializes this struct with the specified values.

public NkStyleSelectable

Returns:

this struct
set
(NkStyleSelectable
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

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

Returns sizeof(struct).
public int

Returns:

the value of the text_alignment field.
text_alignment
()

public NkStyleSelectable
text_alignment(int value)

Sets the specified value to the text_alignment field.

public NkColor

Returns:

a NkColor view of the text_background field.
text_background
()

public NkStyleSelectable
text_background(NkColor value)

Copies the specified NkColor to the text_background field.

public NkStyleSelectable
text_background(Consumer<NkColor> consumer)

Passes the text_background field to the specified Consumer.

public NkColor

Returns:

a NkColor view of the text_hover field.
text_hover
()

public NkStyleSelectable
text_hover(NkColor value)

Copies the specified NkColor to the text_hover field.

public NkStyleSelectable
text_hover(Consumer<NkColor> consumer)

Passes the text_hover field to the specified Consumer.

public NkColor

Returns:

a NkColor view of the text_hover_active field.
text_hover_active
()

public NkStyleSelectable
text_hover_active(NkColor value)

Copies the specified NkColor to the text_hover_active field.

public NkStyleSelectable
text_hover_active(Consumer<NkColor> consumer)

Passes the text_hover_active field to the specified Consumer.

public NkColor

Returns:

a NkColor view of the text_normal field.
text_normal
()

public NkStyleSelectable
text_normal(NkColor value)

Copies the specified NkColor to the text_normal field.

public NkStyleSelectable
text_normal(Consumer<NkColor> consumer)

Passes the text_normal field to the specified Consumer.

public NkColor

Returns:

a NkColor view of the text_normal_active field.
text_normal_active
()

public NkStyleSelectable
text_normal_active(NkColor value)

Copies the specified NkColor to the text_normal_active field.

public NkStyleSelectable
text_normal_active(Consumer<NkColor> consumer)

Passes the text_normal_active field to the specified Consumer.

public NkColor

Returns:

a NkColor view of the text_pressed field.
text_pressed
()

public NkStyleSelectable
text_pressed(NkColor value)

Copies the specified NkColor to the text_pressed field.

public NkStyleSelectable
text_pressed(Consumer<NkColor> consumer)

Passes the text_pressed field to the specified Consumer.

public NkColor

Returns:

a NkColor view of the text_pressed_active field.
text_pressed_active
()

public NkStyleSelectable
text_pressed_active(NkColor value)

Copies the specified NkColor to the text_pressed_active field.

public NkStyleSelectable
text_pressed_active(Consumer<NkColor> consumer)

Passes the text_pressed_active field to the specified Consumer.

public NkVec2

Returns:

a NkVec2 view of the touch_padding field.
touch_padding
()

public NkStyleSelectable
touch_padding(NkVec2 value)

Copies the specified NkVec2 to the touch_padding field.

public NkStyleSelectable
touch_padding(Consumer<NkVec2> consumer)

Passes the touch_padding field to the specified Consumer.

public NkHandle

Returns:

a NkHandle view of the userdata field.
userdata
()

public NkStyleSelectable
userdata(NkHandle value)

Copies the specified NkHandle to the userdata field.

public NkStyleSelectable
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