public class NkStyle
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkStyle.Buffer
An array of
NkStyle structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BUTTON
The struct member offsets.
|
static int |
CHART
The struct member offsets.
|
static int |
CHECKBOX
The struct member offsets.
|
static int |
COMBO
The struct member offsets.
|
static int |
CONTEXTUAL_BUTTON
The struct member offsets.
|
static int |
CURSOR_ACTIVE
The struct member offsets.
|
static int |
CURSOR_LAST
The struct member offsets.
|
static int |
CURSOR_VISIBLE
The struct member offsets.
|
static int |
CURSORS
The struct member offsets.
|
static int |
EDIT
The struct member offsets.
|
static int |
FONT
The struct member offsets.
|
static int |
MENU_BUTTON
The struct member offsets.
|
static int |
OPTION
The struct member offsets.
|
static int |
PROGRESS
The struct member offsets.
|
static int |
PROPERTY
The struct member offsets.
|
static int |
SCROLLH
The struct member offsets.
|
static int |
SCROLLV
The struct member offsets.
|
static int |
SELECTABLE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SLIDER
The struct member offsets.
|
static int |
TAB
The struct member offsets.
|
static int |
TEXT
The struct member offsets.
|
static int |
WINDOW
The struct member offsets.
|
| Constructor and Description |
|---|
NkStyle(java.nio.ByteBuffer container)
Creates a
NkStyle instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
NkStyleButton |
button()
Returns a
NkStyleButton view of the button field. |
NkStyle |
button(java.util.function.Consumer<NkStyleButton> consumer)
Passes the
button field to the specified Consumer. |
NkStyle |
button(NkStyleButton value)
Copies the specified
NkStyleButton to the button field. |
static NkStyle |
calloc()
Returns a new
NkStyle instance allocated with memCalloc. |
static NkStyle.Buffer |
calloc(int capacity)
Returns a new
NkStyle.Buffer instance allocated with memCalloc. |
static NkStyle |
callocStack()
Returns a new
NkStyle instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkStyle.Buffer |
callocStack(int capacity)
Returns a new
NkStyle.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkStyle.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyle.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NkStyle |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyle instance allocated on the specified MemoryStack and initializes all its bits to zero. |
NkStyleChart |
chart()
Returns a
NkStyleChart view of the chart field. |
NkStyle |
chart(java.util.function.Consumer<NkStyleChart> consumer)
Passes the
chart field to the specified Consumer. |
NkStyle |
chart(NkStyleChart value)
Copies the specified
NkStyleChart to the chart field. |
NkStyleToggle |
checkbox()
Returns a
NkStyleToggle view of the checkbox field. |
NkStyle |
checkbox(java.util.function.Consumer<NkStyleToggle> consumer)
Passes the
checkbox field to the specified Consumer. |
NkStyle |
checkbox(NkStyleToggle value)
Copies the specified
NkStyleToggle to the checkbox field. |
NkStyleCombo |
combo()
Returns a
NkStyleCombo view of the combo field. |
NkStyle |
combo(java.util.function.Consumer<NkStyleCombo> consumer)
Passes the
combo field to the specified Consumer. |
NkStyle |
combo(NkStyleCombo value)
Copies the specified
NkStyleCombo to the combo field. |
NkStyleButton |
contextual_button()
Returns a
NkStyleButton view of the contextual_button field. |
NkStyle |
contextual_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes the
contextual_button field to the specified Consumer. |
NkStyle |
contextual_button(NkStyleButton value)
Copies the specified
NkStyleButton to the contextual_button field. |
static NkStyle |
create()
Returns a new
NkStyle instance allocated with BufferUtils. |
static NkStyle.Buffer |
create(int capacity)
Returns a new
NkStyle.Buffer instance allocated with BufferUtils. |
static NkStyle |
create(long address)
Returns a new
NkStyle instance for the specified memory address. |
static NkStyle.Buffer |
create(long address,
int capacity)
Create a
NkStyle.Buffer instance at the specified memory. |
static NkStyle |
createSafe(long address)
|
static NkStyle.Buffer |
createSafe(long address,
int capacity)
|
NkCursor |
cursor_active()
Returns a
NkCursor view of the struct pointed to by the cursor_active field. |
NkStyle |
cursor_active(NkCursor value)
Sets the address of the specified
NkCursor to the cursor_active field. |
NkCursor |
cursor_last()
Returns a
NkCursor view of the struct pointed to by the cursor_last field. |
NkStyle |
cursor_last(NkCursor value)
Sets the address of the specified
NkCursor to the cursor_last field. |
boolean |
cursor_visible()
Returns the value of the
cursor_visible field. |
NkStyle |
cursor_visible(boolean value)
Sets the specified value to the
cursor_visible field. |
org.lwjgl.PointerBuffer |
cursors()
Returns a
PointerBuffer view of the cursors field. |
NkCursor |
cursors(int index)
Returns a
NkCursor view of the pointer at the specified index of the cursors field. |
NkStyle |
cursors(int index,
java.util.function.Consumer<NkCursor> consumer)
Passes the element at
index of the cursors field to the specified Consumer. |
NkStyle |
cursors(int index,
NkCursor value)
Copies the address of the specified
NkCursor at the specified index of the cursors field. |
NkStyle |
cursors(org.lwjgl.PointerBuffer value)
Copies the specified
PointerBuffer to the cursors field. |
NkStyleEdit |
edit()
Returns a
NkStyleEdit view of the edit field. |
NkStyle |
edit(java.util.function.Consumer<NkStyleEdit> consumer)
Passes the
edit field to the specified Consumer. |
NkStyle |
edit(NkStyleEdit value)
Copies the specified
NkStyleEdit to the edit field. |
NkUserFont |
font()
Returns a
NkUserFont view of the struct pointed to by the font field. |
NkStyle |
font(NkUserFont value)
Sets the address of the specified
NkUserFont to the font field. |
static NkStyle |
malloc()
Returns a new
NkStyle instance allocated with memAlloc. |
static NkStyle.Buffer |
malloc(int capacity)
Returns a new
NkStyle.Buffer instance allocated with memAlloc. |
static NkStyle |
mallocStack()
Returns a new
NkStyle instance allocated on the thread-local MemoryStack. |
static NkStyle.Buffer |
mallocStack(int capacity)
Returns a new
NkStyle.Buffer instance allocated on the thread-local MemoryStack. |
static NkStyle.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyle.Buffer instance allocated on the specified MemoryStack. |
static NkStyle |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyle instance allocated on the specified MemoryStack. |
NkStyleButton |
menu_button()
Returns a
NkStyleButton view of the menu_button field. |
NkStyle |
menu_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes the
menu_button field to the specified Consumer. |
NkStyle |
menu_button(NkStyleButton value)
Copies the specified
NkStyleButton to the menu_button field. |
static NkStyleButton |
nbutton(long struct)
Unsafe version of
button(). |
static void |
nbutton(long struct,
NkStyleButton value)
Unsafe version of
button. |
static NkStyleChart |
nchart(long struct)
Unsafe version of
chart(). |
static void |
nchart(long struct,
NkStyleChart value)
Unsafe version of
chart. |
static NkStyleToggle |
ncheckbox(long struct)
Unsafe version of
checkbox(). |
static void |
ncheckbox(long struct,
NkStyleToggle value)
Unsafe version of
checkbox. |
static NkStyleCombo |
ncombo(long struct)
Unsafe version of
combo(). |
static void |
ncombo(long struct,
NkStyleCombo value)
Unsafe version of
combo. |
static NkStyleButton |
ncontextual_button(long struct)
Unsafe version of
contextual_button(). |
static void |
ncontextual_button(long struct,
NkStyleButton value)
Unsafe version of
contextual_button. |
static NkCursor |
ncursor_active(long struct)
Unsafe version of
cursor_active(). |
static void |
ncursor_active(long struct,
NkCursor value)
Unsafe version of
cursor_active. |
static NkCursor |
ncursor_last(long struct)
Unsafe version of
cursor_last(). |
static void |
ncursor_last(long struct,
NkCursor value)
Unsafe version of
cursor_last. |
static int |
ncursor_visible(long struct)
Unsafe version of
cursor_visible(). |
static void |
ncursor_visible(long struct,
int value)
Unsafe version of
cursor_visible. |
static org.lwjgl.PointerBuffer |
ncursors(long struct)
Unsafe version of
cursors(). |
static NkCursor |
ncursors(long struct,
int index)
Unsafe version of
cursors. |
static void |
ncursors(long struct,
int index,
NkCursor value)
Unsafe version of
cursors. |
static void |
ncursors(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
cursors. |
static NkStyleEdit |
nedit(long struct)
Unsafe version of
edit(). |
static void |
nedit(long struct,
NkStyleEdit value)
Unsafe version of
edit. |
static NkUserFont |
nfont(long struct)
Unsafe version of
font(). |
static void |
nfont(long struct,
NkUserFont value)
Unsafe version of
font. |
static NkStyleButton |
nmenu_button(long struct)
Unsafe version of
menu_button(). |
static void |
nmenu_button(long struct,
NkStyleButton value)
Unsafe version of
menu_button. |
static NkStyleToggle |
noption(long struct)
Unsafe version of
option(). |
static void |
noption(long struct,
NkStyleToggle value)
Unsafe version of
option. |
static NkStyleProgress |
nprogress(long struct)
Unsafe version of
progress(). |
static void |
nprogress(long struct,
NkStyleProgress value)
Unsafe version of
progress. |
static NkStyleProperty |
nproperty(long struct)
Unsafe version of
property(). |
static void |
nproperty(long struct,
NkStyleProperty value)
Unsafe version of
property. |
static NkStyleScrollbar |
nscrollh(long struct)
Unsafe version of
scrollh(). |
static void |
nscrollh(long struct,
NkStyleScrollbar value)
Unsafe version of
scrollh. |
static NkStyleScrollbar |
nscrollv(long struct)
Unsafe version of
scrollv(). |
static void |
nscrollv(long struct,
NkStyleScrollbar value)
Unsafe version of
scrollv. |
static NkStyleSelectable |
nselectable(long struct)
Unsafe version of
selectable(). |
static void |
nselectable(long struct,
NkStyleSelectable value)
Unsafe version of
selectable. |
static NkStyleSlider |
nslider(long struct)
Unsafe version of
slider(). |
static void |
nslider(long struct,
NkStyleSlider value)
Unsafe version of
slider. |
static NkStyleTab |
ntab(long struct)
Unsafe version of
tab(). |
static void |
ntab(long struct,
NkStyleTab value)
Unsafe version of
tab. |
static NkStyleText |
ntext(long struct)
Unsafe version of
text(). |
static void |
ntext(long struct,
NkStyleText value)
Unsafe version of
text. |
static NkStyleWindow |
nwindow(long struct)
Unsafe version of
window(). |
static void |
nwindow(long struct,
NkStyleWindow value)
Unsafe version of
window. |
NkStyleToggle |
option()
Returns a
NkStyleToggle view of the option field. |
NkStyle |
option(java.util.function.Consumer<NkStyleToggle> consumer)
Passes the
option field to the specified Consumer. |
NkStyle |
option(NkStyleToggle value)
Copies the specified
NkStyleToggle to the option field. |
NkStyleProgress |
progress()
Returns a
NkStyleProgress view of the progress field. |
NkStyle |
progress(java.util.function.Consumer<NkStyleProgress> consumer)
Passes the
progress field to the specified Consumer. |
NkStyle |
progress(NkStyleProgress value)
Copies the specified
NkStyleProgress to the progress field. |
NkStyleProperty |
property()
Returns a
NkStyleProperty view of the property field. |
NkStyle |
property(java.util.function.Consumer<NkStyleProperty> consumer)
Passes the
property field to the specified Consumer. |
NkStyle |
property(NkStyleProperty value)
Copies the specified
NkStyleProperty to the property field. |
NkStyleScrollbar |
scrollh()
Returns a
NkStyleScrollbar view of the scrollh field. |
NkStyle |
scrollh(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes the
scrollh field to the specified Consumer. |
NkStyle |
scrollh(NkStyleScrollbar value)
Copies the specified
NkStyleScrollbar to the scrollh field. |
NkStyleScrollbar |
scrollv()
Returns a
NkStyleScrollbar view of the scrollv field. |
NkStyle |
scrollv(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes the
scrollv field to the specified Consumer. |
NkStyle |
scrollv(NkStyleScrollbar value)
Copies the specified
NkStyleScrollbar to the scrollv field. |
NkStyleSelectable |
selectable()
Returns a
NkStyleSelectable view of the selectable field. |
NkStyle |
selectable(java.util.function.Consumer<NkStyleSelectable> consumer)
Passes the
selectable field to the specified Consumer. |
NkStyle |
selectable(NkStyleSelectable value)
Copies the specified
NkStyleSelectable to the selectable field. |
NkStyle |
set(NkStyle src)
Copies the specified struct data to this struct.
|
NkStyle |
set(NkUserFont font,
org.lwjgl.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.
|
int |
sizeof() |
NkStyleSlider |
slider()
Returns a
NkStyleSlider view of the slider field. |
NkStyle |
slider(java.util.function.Consumer<NkStyleSlider> consumer)
Passes the
slider field to the specified Consumer. |
NkStyle |
slider(NkStyleSlider value)
Copies the specified
NkStyleSlider to the slider field. |
NkStyleTab |
tab()
Returns a
NkStyleTab view of the tab field. |
NkStyle |
tab(java.util.function.Consumer<NkStyleTab> consumer)
Passes the
tab field to the specified Consumer. |
NkStyle |
tab(NkStyleTab value)
Copies the specified
NkStyleTab to the tab field. |
NkStyleText |
text()
Returns a
NkStyleText view of the text field. |
NkStyle |
text(java.util.function.Consumer<NkStyleText> consumer)
Passes the
text field to the specified Consumer. |
NkStyle |
text(NkStyleText value)
Copies the specified
NkStyleText to the text field. |
NkStyleWindow |
window()
Returns a
NkStyleWindow view of the window field. |
NkStyle |
window(java.util.function.Consumer<NkStyleWindow> consumer)
Passes the
window field to the specified Consumer. |
NkStyle |
window(NkStyleWindow value)
Copies the specified
NkStyleWindow to the window field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int FONT
public static final int CURSORS
public static final int CURSOR_ACTIVE
public static final int CURSOR_LAST
public static final int CURSOR_VISIBLE
public static final int TEXT
public static final int BUTTON
public static final int CONTEXTUAL_BUTTON
public static final int MENU_BUTTON
public static final int OPTION
public static final int CHECKBOX
public static final int SELECTABLE
public static final int SLIDER
public static final int PROGRESS
public static final int PROPERTY
public static final int EDIT
public static final int CHART
public static final int SCROLLH
public static final int SCROLLV
public static final int TAB
public static final int COMBO
public static final int WINDOW
public NkStyle(java.nio.ByteBuffer container)
NkStyle instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Struct@Nullable public NkUserFont font()
NkUserFont view of the struct pointed to by the font field.public org.lwjgl.PointerBuffer cursors()
PointerBuffer view of the cursors field.@Nullable public NkCursor cursors(int index)
NkCursor view of the pointer at the specified index of the cursors field.@Nullable public NkCursor cursor_active()
NkCursor view of the struct pointed to by the cursor_active field.@Nullable public NkCursor cursor_last()
NkCursor view of the struct pointed to by the cursor_last field.public boolean cursor_visible()
cursor_visible field.public NkStyleText text()
NkStyleText view of the text field.public NkStyleButton button()
NkStyleButton view of the button field.public NkStyleButton contextual_button()
NkStyleButton view of the contextual_button field.public NkStyleButton menu_button()
NkStyleButton view of the menu_button field.public NkStyleToggle option()
NkStyleToggle view of the option field.public NkStyleToggle checkbox()
NkStyleToggle view of the checkbox field.public NkStyleSelectable selectable()
NkStyleSelectable view of the selectable field.public NkStyleSlider slider()
NkStyleSlider view of the slider field.public NkStyleProgress progress()
NkStyleProgress view of the progress field.public NkStyleProperty property()
NkStyleProperty view of the property field.public NkStyleEdit edit()
NkStyleEdit view of the edit field.public NkStyleChart chart()
NkStyleChart view of the chart field.public NkStyleScrollbar scrollh()
NkStyleScrollbar view of the scrollh field.public NkStyleScrollbar scrollv()
NkStyleScrollbar view of the scrollv field.public NkStyleTab tab()
NkStyleTab view of the tab field.public NkStyleCombo combo()
NkStyleCombo view of the combo field.public NkStyleWindow window()
NkStyleWindow view of the window field.public NkStyle font(@Nullable NkUserFont value)
NkUserFont to the font field.public NkStyle cursors(org.lwjgl.PointerBuffer value)
PointerBuffer to the cursors field.public NkStyle cursors(int index, @Nullable NkCursor value)
NkCursor at the specified index of the cursors field.public NkStyle cursors(int index, java.util.function.Consumer<NkCursor> consumer)
index of the cursors field to the specified Consumer.public NkStyle cursor_active(@Nullable NkCursor value)
NkCursor to the cursor_active field.public NkStyle cursor_last(@Nullable NkCursor value)
NkCursor to the cursor_last field.public NkStyle cursor_visible(boolean value)
cursor_visible field.public NkStyle text(NkStyleText value)
NkStyleText to the text field.public NkStyle text(java.util.function.Consumer<NkStyleText> consumer)
text field to the specified Consumer.public NkStyle button(NkStyleButton value)
NkStyleButton to the button field.public NkStyle button(java.util.function.Consumer<NkStyleButton> consumer)
button field to the specified Consumer.public NkStyle contextual_button(NkStyleButton value)
NkStyleButton to the contextual_button field.public NkStyle contextual_button(java.util.function.Consumer<NkStyleButton> consumer)
contextual_button field to the specified Consumer.public NkStyle menu_button(NkStyleButton value)
NkStyleButton to the menu_button field.public NkStyle menu_button(java.util.function.Consumer<NkStyleButton> consumer)
menu_button field to the specified Consumer.public NkStyle option(NkStyleToggle value)
NkStyleToggle to the option field.public NkStyle option(java.util.function.Consumer<NkStyleToggle> consumer)
option field to the specified Consumer.public NkStyle checkbox(NkStyleToggle value)
NkStyleToggle to the checkbox field.public NkStyle checkbox(java.util.function.Consumer<NkStyleToggle> consumer)
checkbox field to the specified Consumer.public NkStyle selectable(NkStyleSelectable value)
NkStyleSelectable to the selectable field.public NkStyle selectable(java.util.function.Consumer<NkStyleSelectable> consumer)
selectable field to the specified Consumer.public NkStyle slider(NkStyleSlider value)
NkStyleSlider to the slider field.public NkStyle slider(java.util.function.Consumer<NkStyleSlider> consumer)
slider field to the specified Consumer.public NkStyle progress(NkStyleProgress value)
NkStyleProgress to the progress field.public NkStyle progress(java.util.function.Consumer<NkStyleProgress> consumer)
progress field to the specified Consumer.public NkStyle property(NkStyleProperty value)
NkStyleProperty to the property field.public NkStyle property(java.util.function.Consumer<NkStyleProperty> consumer)
property field to the specified Consumer.public NkStyle edit(NkStyleEdit value)
NkStyleEdit to the edit field.public NkStyle edit(java.util.function.Consumer<NkStyleEdit> consumer)
edit field to the specified Consumer.public NkStyle chart(NkStyleChart value)
NkStyleChart to the chart field.public NkStyle chart(java.util.function.Consumer<NkStyleChart> consumer)
chart field to the specified Consumer.public NkStyle scrollh(NkStyleScrollbar value)
NkStyleScrollbar to the scrollh field.public NkStyle scrollh(java.util.function.Consumer<NkStyleScrollbar> consumer)
scrollh field to the specified Consumer.public NkStyle scrollv(NkStyleScrollbar value)
NkStyleScrollbar to the scrollv field.public NkStyle scrollv(java.util.function.Consumer<NkStyleScrollbar> consumer)
scrollv field to the specified Consumer.public NkStyle tab(NkStyleTab value)
NkStyleTab to the tab field.public NkStyle tab(java.util.function.Consumer<NkStyleTab> consumer)
tab field to the specified Consumer.public NkStyle combo(NkStyleCombo value)
NkStyleCombo to the combo field.public NkStyle combo(java.util.function.Consumer<NkStyleCombo> consumer)
combo field to the specified Consumer.public NkStyle window(NkStyleWindow value)
NkStyleWindow to the window field.public NkStyle window(java.util.function.Consumer<NkStyleWindow> consumer)
window field to the specified Consumer.public NkStyle set(@Nullable NkUserFont font, org.lwjgl.PointerBuffer cursors, @Nullable NkCursor cursor_active, @Nullable 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)
public NkStyle set(NkStyle src)
src - the source structpublic static NkStyle malloc()
NkStyle instance allocated with memAlloc. The instance must be explicitly freed.public static NkStyle calloc()
NkStyle instance allocated with memCalloc. The instance must be explicitly freed.public static NkStyle create()
NkStyle instance allocated with BufferUtils.public static NkStyle create(long address)
NkStyle instance for the specified memory address.@Nullable public static NkStyle createSafe(long address)
public static NkStyle.Buffer malloc(int capacity)
NkStyle.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkStyle.Buffer calloc(int capacity)
NkStyle.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkStyle.Buffer create(int capacity)
NkStyle.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static NkStyle.Buffer create(long address, int capacity)
NkStyle.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkStyle.Buffer createSafe(long address, int capacity)
public static NkStyle mallocStack()
NkStyle instance allocated on the thread-local MemoryStack.public static NkStyle callocStack()
NkStyle instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static NkStyle mallocStack(org.lwjgl.system.MemoryStack stack)
NkStyle instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static NkStyle callocStack(org.lwjgl.system.MemoryStack stack)
NkStyle instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static NkStyle.Buffer mallocStack(int capacity)
NkStyle.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static NkStyle.Buffer callocStack(int capacity)
NkStyle.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static NkStyle.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkStyle.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NkStyle.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkStyle.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacity@Nullable public static NkUserFont nfont(long struct)
font().public static org.lwjgl.PointerBuffer ncursors(long struct)
cursors().@Nullable public static NkCursor ncursors(long struct, int index)
cursors.@Nullable public static NkCursor ncursor_active(long struct)
cursor_active().@Nullable public static NkCursor ncursor_last(long struct)
cursor_last().public static int ncursor_visible(long struct)
cursor_visible().public static NkStyleText ntext(long struct)
text().public static NkStyleButton nbutton(long struct)
button().public static NkStyleButton ncontextual_button(long struct)
contextual_button().public static NkStyleButton nmenu_button(long struct)
menu_button().public static NkStyleToggle noption(long struct)
option().public static NkStyleToggle ncheckbox(long struct)
checkbox().public static NkStyleSelectable nselectable(long struct)
selectable().public static NkStyleSlider nslider(long struct)
slider().public static NkStyleProgress nprogress(long struct)
progress().public static NkStyleProperty nproperty(long struct)
property().public static NkStyleEdit nedit(long struct)
edit().public static NkStyleChart nchart(long struct)
chart().public static NkStyleScrollbar nscrollh(long struct)
scrollh().public static NkStyleScrollbar nscrollv(long struct)
scrollv().public static NkStyleTab ntab(long struct)
tab().public static NkStyleCombo ncombo(long struct)
combo().public static NkStyleWindow nwindow(long struct)
window().public static void nfont(long struct,
@Nullable
NkUserFont value)
font.public static void ncursors(long struct,
org.lwjgl.PointerBuffer value)
cursors.public static void ncursors(long struct,
int index,
@Nullable
NkCursor value)
cursors.public static void ncursor_active(long struct,
@Nullable
NkCursor value)
cursor_active.public static void ncursor_last(long struct,
@Nullable
NkCursor value)
cursor_last.public static void ncursor_visible(long struct,
int value)
cursor_visible.public static void ntext(long struct,
NkStyleText value)
text.public static void nbutton(long struct,
NkStyleButton value)
button.public static void ncontextual_button(long struct,
NkStyleButton value)
contextual_button.public static void nmenu_button(long struct,
NkStyleButton value)
menu_button.public static void noption(long struct,
NkStyleToggle value)
option.public static void ncheckbox(long struct,
NkStyleToggle value)
checkbox.public static void nselectable(long struct,
NkStyleSelectable value)
selectable.public static void nslider(long struct,
NkStyleSlider value)
slider.public static void nprogress(long struct,
NkStyleProgress value)
progress.public static void nproperty(long struct,
NkStyleProperty value)
property.public static void nedit(long struct,
NkStyleEdit value)
edit.public static void nchart(long struct,
NkStyleChart value)
chart.public static void nscrollh(long struct,
NkStyleScrollbar value)
scrollh.public static void nscrollv(long struct,
NkStyleScrollbar value)
scrollv.public static void ntab(long struct,
NkStyleTab value)
tab.public static void ncombo(long struct,
NkStyleCombo value)
combo.public static void nwindow(long struct,
NkStyleWindow value)
window.Copyright LWJGL. All Rights Reserved. License terms.