Top Description Inners Fields Constructors Methods
org.lwjgl.nuklear

public Class NkStyle

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

Layout


struct nk_style {
    struct nk_user_font * font;
    struct nk_cursor * cursors[NK_CURSOR_COUNT];
    struct nk_cursor * cursor_active;
    struct nk_cursor * cursor_last;
    int cursor_visible;
    struct nk_style_text text;
    struct nk_style_button button;
    struct nk_style_button contextual_button;
    struct nk_style_button menu_button;
    struct nk_style_toggle option;
    struct nk_style_toggle checkbox;
    struct nk_style_selectable selectable;
    struct nk_style_slider slider;
    struct nk_style_progress progress;
    struct nk_style_property property;
    struct nk_style_edit edit;
    struct nk_style_chart chart;
    struct nk_style_scrollbar scrollh;
    struct nk_style_scrollbar scrollv;
    struct nk_style_tab tab;
    struct nk_style_combo combo;
    struct nk_style_window window;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
NkStyle.Buffer

An array of NkStyle structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BUTTON

The struct member offsets.

public static final int
CHART

The struct member offsets.

public static final int
CHECKBOX

The struct member offsets.

public static final int
COMBO

The struct member offsets.

public static final int
CONTEXTUAL_BUTTON

The struct member offsets.

public static final int
CURSOR_ACTIVE

The struct member offsets.

public static final int
CURSOR_LAST

The struct member offsets.

public static final int
CURSOR_VISIBLE

The struct member offsets.

public static final int
CURSORS

The struct member offsets.

public static final int
EDIT

The struct member offsets.

public static final int
FONT

The struct member offsets.

public static final int
OPTION

The struct member offsets.

public static final int
PROGRESS

The struct member offsets.

public static final int
PROPERTY

The struct member offsets.

public static final int
SCROLLH

The struct member offsets.

public static final int
SCROLLV

The struct member offsets.

public static final int
SELECTABLE

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SLIDER

The struct member offsets.

public static final int
TAB

The struct member offsets.

public static final int
TEXT

The struct member offsets.

public static final int
WINDOW

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
NkStyle(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public NkStyleButton

Returns:

a NkStyleButton view of the button field.
button
()

public NkStyle
button(NkStyleButton value)

Copies the specified NkStyleButton to the button field.

public NkStyle
button(Consumer<NkStyleButton> consumer)

Passes the button field to the specified Consumer.

public static NkStyle
calloc()

Returns a new NkStyle instance allocated with memCalloc.

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

Returns a new NkStyle.Buffer instance allocated with memCalloc.

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

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

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

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

public static NkStyle
callocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
public NkStyleChart

Returns:

a NkStyleChart view of the chart field.
chart
()

public NkStyle
chart(NkStyleChart value)

Copies the specified NkStyleChart to the chart field.

public NkStyle
chart(Consumer<NkStyleChart> consumer)

Passes the chart field to the specified Consumer.

public NkStyleToggle

Returns:

a NkStyleToggle view of the checkbox field.
checkbox
()

public NkStyle
checkbox(NkStyleToggle value)

Copies the specified NkStyleToggle to the checkbox field.

public NkStyle
checkbox(Consumer<NkStyleToggle> consumer)

Passes the checkbox field to the specified Consumer.

public NkStyleCombo

Returns:

a NkStyleCombo view of the combo field.
combo
()

public NkStyle
combo(NkStyleCombo value)

Copies the specified NkStyleCombo to the combo field.

public NkStyle
combo(Consumer<NkStyleCombo> consumer)

Passes the combo field to the specified Consumer.

public NkStyleButton

Returns:

a NkStyleButton view of the contextual_button field.
contextual_button
()

public NkStyle
contextual_button(NkStyleButton value)

Copies the specified NkStyleButton to the contextual_button field.

public NkStyle
contextual_button(Consumer<NkStyleButton> consumer)

Passes the contextual_button field to the specified Consumer.

protected NkStyle
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 NkStyle
create()

Returns a new NkStyle instance allocated with BufferUtils.

public static NkStyle
create(long address)

Returns a new NkStyle instance for the specified memory address.

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

Returns a new NkStyle.Buffer instance allocated with BufferUtils.

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

Create a NkStyle.Buffer instance at the specified memory.

public static NkStyle
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public NkCursor

Returns:

a NkCursor view of the struct pointed to by the cursor_active field.
cursor_active
()

public NkStyle
cursor_active(NkCursor value)

Sets the address of the specified NkCursor to the cursor_active field.

public NkCursor

Returns:

a NkCursor view of the struct pointed to by the cursor_last field.
cursor_last
()

public NkStyle
cursor_last(NkCursor value)

Sets the address of the specified NkCursor to the cursor_last field.

public boolean

Returns:

the value of the cursor_visible field.
cursor_visible
()

public NkStyle
cursor_visible(boolean value)

Sets the specified value to the cursor_visible field.

public PointerBuffer

Returns:

a PointerBuffer view of the cursors field.
cursors
()

public NkCursor

Returns:

a NkCursor view of the pointer at the specified index of the cursors field.
cursors
(int index)

public NkStyle
cursors(PointerBuffer value)

Copies the specified PointerBuffer to the cursors field.

public NkStyle
cursors(int index, NkCursor value)

Copies the address of the specified NkCursor at the specified index of the cursors field.

public NkStyle
cursors(int index, Consumer<NkCursor> consumer)

Passes the element at index of the cursors field to the specified Consumer.

public NkStyleEdit

Returns:

a NkStyleEdit view of the edit field.
edit
()

public NkStyle
edit(NkStyleEdit value)

Copies the specified NkStyleEdit to the edit field.

public NkStyle
edit(Consumer<NkStyleEdit> consumer)

Passes the edit field to the specified Consumer.

public NkUserFont

Returns:

a NkUserFont view of the struct pointed to by the font field.
font
()

public NkStyle
font(NkUserFont value)

Sets the address of the specified NkUserFont to the font field.

public static NkStyle
malloc()

Returns a new NkStyle instance allocated with memAlloc.

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

Returns a new NkStyle.Buffer instance allocated with memAlloc.

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

Returns a new NkStyle instance allocated on the specified MemoryStack.

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

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

public static NkStyle
mallocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
public static NkStyleButton
nbutton(long struct)

Unsafe version of button.

public static void
nbutton(long struct, NkStyleButton value)

Unsafe version of button.

public static NkStyleChart
nchart(long struct)

Unsafe version of chart.

public static void
nchart(long struct, NkStyleChart value)

Unsafe version of chart.

public static NkStyleToggle
ncheckbox(long struct)

Unsafe version of checkbox.

public static void
ncheckbox(long struct, NkStyleToggle value)

Unsafe version of checkbox.

public static NkStyleCombo
ncombo(long struct)

Unsafe version of combo.

public static void
ncombo(long struct, NkStyleCombo value)

Unsafe version of combo.

public static NkStyleButton
ncontextual_button(long struct)

Unsafe version of contextual_button.

public static void
ncontextual_button(long struct, NkStyleButton value)

Unsafe version of contextual_button.

public static NkCursor
ncursor_active(long struct)

Unsafe version of cursor_active.

public static void
ncursor_active(long struct, NkCursor value)

Unsafe version of cursor_active.

public static NkCursor
ncursor_last(long struct)

Unsafe version of cursor_last.

public static void
ncursor_last(long struct, NkCursor value)

Unsafe version of cursor_last.

public static int
ncursor_visible(long struct)

Unsafe version of cursor_visible.

public static void
ncursor_visible(long struct, int value)

Unsafe version of cursor_visible.

public static PointerBuffer
ncursors(long struct)

Unsafe version of cursors.

public static NkCursor
ncursors(long struct, int index)

Unsafe version of cursors.

public static void
ncursors(long struct, PointerBuffer value)

Unsafe version of cursors.

public static void
ncursors(long struct, int index, NkCursor value)

Unsafe version of cursors.

public static NkStyleEdit
nedit(long struct)

Unsafe version of edit.

public static void
nedit(long struct, NkStyleEdit value)

Unsafe version of edit.

public static NkUserFont
nfont(long struct)

Unsafe version of font.

public static void
nfont(long struct, NkUserFont value)

Unsafe version of font.

public static NkStyleButton
nmenu_button(long struct)

Unsafe version of menu_button.

public static void
nmenu_button(long struct, NkStyleButton value)

Unsafe version of menu_button.

public static NkStyleToggle
noption(long struct)

Unsafe version of option.

public static void
noption(long struct, NkStyleToggle value)

Unsafe version of option.

public static NkStyleProgress
nprogress(long struct)

Unsafe version of progress.

public static void
nprogress(long struct, NkStyleProgress value)

Unsafe version of progress.

public static NkStyleProperty
nproperty(long struct)

Unsafe version of property.

public static void
nproperty(long struct, NkStyleProperty value)

Unsafe version of property.

public static NkStyleScrollbar
nscrollh(long struct)

Unsafe version of scrollh.

public static void
nscrollh(long struct, NkStyleScrollbar value)

Unsafe version of scrollh.

public static NkStyleScrollbar
nscrollv(long struct)

Unsafe version of scrollv.

public static void
nscrollv(long struct, NkStyleScrollbar value)

Unsafe version of scrollv.

public static NkStyleSelectable
nselectable(long struct)

Unsafe version of selectable.

public static void
nselectable(long struct, NkStyleSelectable value)

Unsafe version of selectable.

public static NkStyleSlider
nslider(long struct)

Unsafe version of slider.

public static void
nslider(long struct, NkStyleSlider value)

Unsafe version of slider.

public static NkStyleTab
ntab(long struct)

Unsafe version of tab.

public static void
ntab(long struct, NkStyleTab value)

Unsafe version of tab.

public static NkStyleText
ntext(long struct)

Unsafe version of text.

public static void
ntext(long struct, NkStyleText value)

Unsafe version of text.

public static NkStyleWindow
nwindow(long struct)

Unsafe version of window.

public static void
nwindow(long struct, NkStyleWindow value)

Unsafe version of window.

public NkStyleToggle

Returns:

a NkStyleToggle view of the option field.
option
()

public NkStyle
option(NkStyleToggle value)

Copies the specified NkStyleToggle to the option field.

public NkStyle
option(Consumer<NkStyleToggle> consumer)

Passes the option field to the specified Consumer.

public NkStyleProgress

Returns:

a NkStyleProgress view of the progress field.
progress
()

public NkStyle
progress(NkStyleProgress value)

Copies the specified NkStyleProgress to the progress field.

public NkStyle
progress(Consumer<NkStyleProgress> consumer)

Passes the progress field to the specified Consumer.

public NkStyleProperty

Returns:

a NkStyleProperty view of the property field.
property
()

public NkStyle
property(NkStyleProperty value)

Copies the specified NkStyleProperty to the property field.

public NkStyle
property(Consumer<NkStyleProperty> consumer)

Passes the property field to the specified Consumer.

public NkStyleScrollbar

Returns:

a NkStyleScrollbar view of the scrollh field.
scrollh
()

public NkStyle
scrollh(NkStyleScrollbar value)

Copies the specified NkStyleScrollbar to the scrollh field.

public NkStyle
scrollh(Consumer<NkStyleScrollbar> consumer)

Passes the scrollh field to the specified Consumer.

public NkStyleScrollbar

Returns:

a NkStyleScrollbar view of the scrollv field.
scrollv
()

public NkStyle
scrollv(NkStyleScrollbar value)

Copies the specified NkStyleScrollbar to the scrollv field.

public NkStyle
scrollv(Consumer<NkStyleScrollbar> consumer)

Passes the scrollv field to the specified Consumer.

public NkStyleSelectable

Returns:

a NkStyleSelectable view of the selectable field.
selectable
()

public NkStyle
selectable(NkStyleSelectable value)

Copies the specified NkStyleSelectable to the selectable field.

public NkStyle
selectable(Consumer<NkStyleSelectable> consumer)

Passes the selectable field to the specified Consumer.

public NkStyle
set(NkUserFont font, PointerBuffer cursors, NkCursor cursor_active, NkCursor cursor_last, boolean cursor_visible, NkStyleText text, NkStyleButton button, NkStyleButton contextual_button, NkStyleButton menu_button, NkStyleToggle option, NkStyleToggle checkbox, NkStyleSelectable selectable, NkStyleSlider slider, NkStyleProgress progress, NkStyleProperty property, NkStyleEdit edit, NkStyleChart chart, NkStyleScrollbar scrollh, NkStyleScrollbar scrollv, NkStyleTab tab, NkStyleCombo combo, NkStyleWindow window)

Initializes this struct with the specified values.

public NkStyle

Returns:

this struct
set
(NkStyle
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 NkStyleSlider

Returns:

a NkStyleSlider view of the slider field.
slider
()

public NkStyle
slider(NkStyleSlider value)

Copies the specified NkStyleSlider to the slider field.

public NkStyle
slider(Consumer<NkStyleSlider> consumer)

Passes the slider field to the specified Consumer.

public NkStyleTab

Returns:

a NkStyleTab view of the tab field.
tab
()

public NkStyle
tab(NkStyleTab value)

Copies the specified NkStyleTab to the tab field.

public NkStyle
tab(Consumer<NkStyleTab> consumer)

Passes the tab field to the specified Consumer.

public NkStyleText

Returns:

a NkStyleText view of the text field.
text
()

public NkStyle
text(NkStyleText value)

Copies the specified NkStyleText to the text field.

public NkStyle
text(Consumer<NkStyleText> consumer)

Passes the text field to the specified Consumer.

public NkStyleWindow

Returns:

a NkStyleWindow view of the window field.
window
()

public NkStyle
window(NkStyleWindow value)

Copies the specified NkStyleWindow to the window field.

public NkStyle
window(Consumer<NkStyleWindow> consumer)

Passes the window 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