Package org.lwjgl.nuklear
Class NkStyle
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkStyle
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class NkStyle extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
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 Class Summary
Nested Classes Modifier and Type Class Description static class
NkStyle.Buffer
An array ofNkStyle
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
BUTTON
CHART
CHECKBOX
COMBO
CONTEXTUAL_BUTTON
CURSOR_ACTIVE
CURSOR_LAST
CURSOR_VISIBLE
CURSORS
EDIT
FONT
MENU_BUTTON
OPTION
PROGRESS
PROPERTY
SCROLLH
SCROLLV
SELECTABLEThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
SLIDER
TAB
TEXT
WINDOWThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkStyle(java.nio.ByteBuffer container)
Creates aNkStyle
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleButton
button()
Returns aNkStyleButton
view of thebutton
field.NkStyle
button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thebutton
field to the specifiedConsumer
.NkStyle
button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thebutton
field.static NkStyle
calloc()
Returns a newNkStyle
instance allocated withmemCalloc
.static NkStyle.Buffer
calloc(int capacity)
Returns a newNkStyle.Buffer
instance allocated withmemCalloc
.static NkStyle
callocStack()
Returns a newNkStyle
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static NkStyle.Buffer
callocStack(int capacity)
Returns a newNkStyle.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static NkStyle.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyle.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkStyle
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyle
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.NkStyleChart
chart()
Returns aNkStyleChart
view of thechart
field.NkStyle
chart(java.util.function.Consumer<NkStyleChart> consumer)
Passes thechart
field to the specifiedConsumer
.NkStyle
chart(NkStyleChart value)
Copies the specifiedNkStyleChart
to thechart
field.NkStyleToggle
checkbox()
Returns aNkStyleToggle
view of thecheckbox
field.NkStyle
checkbox(java.util.function.Consumer<NkStyleToggle> consumer)
Passes thecheckbox
field to the specifiedConsumer
.NkStyle
checkbox(NkStyleToggle value)
Copies the specifiedNkStyleToggle
to thecheckbox
field.NkStyleCombo
combo()
Returns aNkStyleCombo
view of thecombo
field.NkStyle
combo(java.util.function.Consumer<NkStyleCombo> consumer)
Passes thecombo
field to the specifiedConsumer
.NkStyle
combo(NkStyleCombo value)
Copies the specifiedNkStyleCombo
to thecombo
field.NkStyleButton
contextual_button()
Returns aNkStyleButton
view of thecontextual_button
field.NkStyle
contextual_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thecontextual_button
field to the specifiedConsumer
.NkStyle
contextual_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thecontextual_button
field.static NkStyle
create()
Returns a newNkStyle
instance allocated withBufferUtils
.static NkStyle.Buffer
create(int capacity)
Returns a newNkStyle.Buffer
instance allocated withBufferUtils
.static NkStyle
create(long address)
Returns a newNkStyle
instance for the specified memory address.static NkStyle.Buffer
create(long address, int capacity)
Create aNkStyle.Buffer
instance at the specified memory.static NkStyle
createSafe(long address)
static NkStyle.Buffer
createSafe(long address, int capacity)
NkCursor
cursor_active()
Returns aNkCursor
view of the struct pointed to by thecursor_active
field.NkStyle
cursor_active(NkCursor value)
Sets the address of the specifiedNkCursor
to thecursor_active
field.NkCursor
cursor_last()
Returns aNkCursor
view of the struct pointed to by thecursor_last
field.NkStyle
cursor_last(NkCursor value)
Sets the address of the specifiedNkCursor
to thecursor_last
field.boolean
cursor_visible()
Returns the value of thecursor_visible
field.NkStyle
cursor_visible(boolean value)
Sets the specified value to thecursor_visible
field.org.lwjgl.PointerBuffer
cursors()
Returns aPointerBuffer
view of thecursors
field.NkCursor
cursors(int index)
Returns aNkCursor
view of the pointer at the specified index of thecursors
field.NkStyle
cursors(int index, java.util.function.Consumer<NkCursor> consumer)
Passes the element atindex
of thecursors
field to the specifiedConsumer
.NkStyle
cursors(int index, NkCursor value)
Copies the address of the specifiedNkCursor
at the specified index of thecursors
field.NkStyle
cursors(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBuffer
to thecursors
field.NkStyleEdit
edit()
Returns aNkStyleEdit
view of theedit
field.NkStyle
edit(java.util.function.Consumer<NkStyleEdit> consumer)
Passes theedit
field to the specifiedConsumer
.NkStyle
edit(NkStyleEdit value)
Copies the specifiedNkStyleEdit
to theedit
field.NkUserFont
font()
Returns aNkUserFont
view of the struct pointed to by thefont
field.NkStyle
font(NkUserFont value)
Sets the address of the specifiedNkUserFont
to thefont
field.static NkStyle
malloc()
Returns a newNkStyle
instance allocated withmemAlloc
.static NkStyle.Buffer
malloc(int capacity)
Returns a newNkStyle.Buffer
instance allocated withmemAlloc
.static NkStyle
mallocStack()
Returns a newNkStyle
instance allocated on the thread-localMemoryStack
.static NkStyle.Buffer
mallocStack(int capacity)
Returns a newNkStyle.Buffer
instance allocated on the thread-localMemoryStack
.static NkStyle.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyle.Buffer
instance allocated on the specifiedMemoryStack
.static NkStyle
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyle
instance allocated on the specifiedMemoryStack
.NkStyleButton
menu_button()
Returns aNkStyleButton
view of themenu_button
field.NkStyle
menu_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes themenu_button
field to the specifiedConsumer
.NkStyle
menu_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to themenu_button
field.static NkStyleButton
nbutton(long struct)
Unsafe version ofbutton()
.static void
nbutton(long struct, NkStyleButton value)
Unsafe version ofbutton
.static NkStyleChart
nchart(long struct)
Unsafe version ofchart()
.static void
nchart(long struct, NkStyleChart value)
Unsafe version ofchart
.static NkStyleToggle
ncheckbox(long struct)
Unsafe version ofcheckbox()
.static void
ncheckbox(long struct, NkStyleToggle value)
Unsafe version ofcheckbox
.static NkStyleCombo
ncombo(long struct)
Unsafe version ofcombo()
.static void
ncombo(long struct, NkStyleCombo value)
Unsafe version ofcombo
.static NkStyleButton
ncontextual_button(long struct)
Unsafe version ofcontextual_button()
.static void
ncontextual_button(long struct, NkStyleButton value)
Unsafe version ofcontextual_button
.static NkCursor
ncursor_active(long struct)
Unsafe version ofcursor_active()
.static void
ncursor_active(long struct, NkCursor value)
Unsafe version ofcursor_active
.static NkCursor
ncursor_last(long struct)
Unsafe version ofcursor_last()
.static void
ncursor_last(long struct, NkCursor value)
Unsafe version ofcursor_last
.static int
ncursor_visible(long struct)
Unsafe version ofcursor_visible()
.static void
ncursor_visible(long struct, int value)
Unsafe version ofcursor_visible
.static org.lwjgl.PointerBuffer
ncursors(long struct)
Unsafe version ofcursors()
.static NkCursor
ncursors(long struct, int index)
Unsafe version ofcursors
.static void
ncursors(long struct, int index, NkCursor value)
Unsafe version ofcursors
.static void
ncursors(long struct, org.lwjgl.PointerBuffer value)
Unsafe version ofcursors
.static NkStyleEdit
nedit(long struct)
Unsafe version ofedit()
.static void
nedit(long struct, NkStyleEdit value)
Unsafe version ofedit
.static NkUserFont
nfont(long struct)
Unsafe version offont()
.static void
nfont(long struct, NkUserFont value)
Unsafe version offont
.static NkStyleButton
nmenu_button(long struct)
Unsafe version ofmenu_button()
.static void
nmenu_button(long struct, NkStyleButton value)
Unsafe version ofmenu_button
.static NkStyleToggle
noption(long struct)
Unsafe version ofoption()
.static void
noption(long struct, NkStyleToggle value)
Unsafe version ofoption
.static NkStyleProgress
nprogress(long struct)
Unsafe version ofprogress()
.static void
nprogress(long struct, NkStyleProgress value)
Unsafe version ofprogress
.static NkStyleProperty
nproperty(long struct)
Unsafe version ofproperty()
.static void
nproperty(long struct, NkStyleProperty value)
Unsafe version ofproperty
.static NkStyleScrollbar
nscrollh(long struct)
Unsafe version ofscrollh()
.static void
nscrollh(long struct, NkStyleScrollbar value)
Unsafe version ofscrollh
.static NkStyleScrollbar
nscrollv(long struct)
Unsafe version ofscrollv()
.static void
nscrollv(long struct, NkStyleScrollbar value)
Unsafe version ofscrollv
.static NkStyleSelectable
nselectable(long struct)
Unsafe version ofselectable()
.static void
nselectable(long struct, NkStyleSelectable value)
Unsafe version ofselectable
.static NkStyleSlider
nslider(long struct)
Unsafe version ofslider()
.static void
nslider(long struct, NkStyleSlider value)
Unsafe version ofslider
.static NkStyleTab
ntab(long struct)
Unsafe version oftab()
.static void
ntab(long struct, NkStyleTab value)
Unsafe version oftab
.static NkStyleText
ntext(long struct)
Unsafe version oftext()
.static void
ntext(long struct, NkStyleText value)
Unsafe version oftext
.static NkStyleWindow
nwindow(long struct)
Unsafe version ofwindow()
.static void
nwindow(long struct, NkStyleWindow value)
Unsafe version ofwindow
.NkStyleToggle
option()
Returns aNkStyleToggle
view of theoption
field.NkStyle
option(java.util.function.Consumer<NkStyleToggle> consumer)
Passes theoption
field to the specifiedConsumer
.NkStyle
option(NkStyleToggle value)
Copies the specifiedNkStyleToggle
to theoption
field.NkStyleProgress
progress()
Returns aNkStyleProgress
view of theprogress
field.NkStyle
progress(java.util.function.Consumer<NkStyleProgress> consumer)
Passes theprogress
field to the specifiedConsumer
.NkStyle
progress(NkStyleProgress value)
Copies the specifiedNkStyleProgress
to theprogress
field.NkStyleProperty
property()
Returns aNkStyleProperty
view of theproperty
field.NkStyle
property(java.util.function.Consumer<NkStyleProperty> consumer)
Passes theproperty
field to the specifiedConsumer
.NkStyle
property(NkStyleProperty value)
Copies the specifiedNkStyleProperty
to theproperty
field.NkStyleScrollbar
scrollh()
Returns aNkStyleScrollbar
view of thescrollh
field.NkStyle
scrollh(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes thescrollh
field to the specifiedConsumer
.NkStyle
scrollh(NkStyleScrollbar value)
Copies the specifiedNkStyleScrollbar
to thescrollh
field.NkStyleScrollbar
scrollv()
Returns aNkStyleScrollbar
view of thescrollv
field.NkStyle
scrollv(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes thescrollv
field to the specifiedConsumer
.NkStyle
scrollv(NkStyleScrollbar value)
Copies the specifiedNkStyleScrollbar
to thescrollv
field.NkStyleSelectable
selectable()
Returns aNkStyleSelectable
view of theselectable
field.NkStyle
selectable(java.util.function.Consumer<NkStyleSelectable> consumer)
Passes theselectable
field to the specifiedConsumer
.NkStyle
selectable(NkStyleSelectable value)
Copies the specifiedNkStyleSelectable
to theselectable
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 aNkStyleSlider
view of theslider
field.NkStyle
slider(java.util.function.Consumer<NkStyleSlider> consumer)
Passes theslider
field to the specifiedConsumer
.NkStyle
slider(NkStyleSlider value)
Copies the specifiedNkStyleSlider
to theslider
field.NkStyleTab
tab()
Returns aNkStyleTab
view of thetab
field.NkStyle
tab(java.util.function.Consumer<NkStyleTab> consumer)
Passes thetab
field to the specifiedConsumer
.NkStyle
tab(NkStyleTab value)
Copies the specifiedNkStyleTab
to thetab
field.NkStyleText
text()
Returns aNkStyleText
view of thetext
field.NkStyle
text(java.util.function.Consumer<NkStyleText> consumer)
Passes thetext
field to the specifiedConsumer
.NkStyle
text(NkStyleText value)
Copies the specifiedNkStyleText
to thetext
field.NkStyleWindow
window()
Returns aNkStyleWindow
view of thewindow
field.NkStyle
window(java.util.function.Consumer<NkStyleWindow> consumer)
Passes thewindow
field to the specifiedConsumer
.NkStyle
window(NkStyleWindow value)
Copies the specifiedNkStyleWindow
to thewindow
field.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
FONT, CURSORS, CURSOR_ACTIVE, CURSOR_LAST, CURSOR_VISIBLE, TEXT, BUTTON, CONTEXTUAL_BUTTON, MENU_BUTTON, OPTION, CHECKBOX, SELECTABLE, SLIDER, PROGRESS, PROPERTY, EDIT, CHART, SCROLLH, SCROLLV, TAB, COMBO, WINDOW
The struct member offsets.
-
-
Constructor Detail
-
NkStyle
public NkStyle(java.nio.ByteBuffer container)
Creates aNkStyle
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
font
@Nullable public NkUserFont font()
Returns aNkUserFont
view of the struct pointed to by thefont
field.
-
cursors
public org.lwjgl.PointerBuffer cursors()
Returns aPointerBuffer
view of thecursors
field.
-
cursors
@Nullable public NkCursor cursors(int index)
Returns aNkCursor
view of the pointer at the specified index of thecursors
field.
-
cursor_active
@Nullable public NkCursor cursor_active()
Returns aNkCursor
view of the struct pointed to by thecursor_active
field.
-
cursor_last
@Nullable public NkCursor cursor_last()
Returns aNkCursor
view of the struct pointed to by thecursor_last
field.
-
cursor_visible
public boolean cursor_visible()
Returns the value of thecursor_visible
field.
-
text
public NkStyleText text()
Returns aNkStyleText
view of thetext
field.
-
button
public NkStyleButton button()
Returns aNkStyleButton
view of thebutton
field.
-
contextual_button
public NkStyleButton contextual_button()
Returns aNkStyleButton
view of thecontextual_button
field.
-
menu_button
public NkStyleButton menu_button()
Returns aNkStyleButton
view of themenu_button
field.
-
option
public NkStyleToggle option()
Returns aNkStyleToggle
view of theoption
field.
-
checkbox
public NkStyleToggle checkbox()
Returns aNkStyleToggle
view of thecheckbox
field.
-
selectable
public NkStyleSelectable selectable()
Returns aNkStyleSelectable
view of theselectable
field.
-
slider
public NkStyleSlider slider()
Returns aNkStyleSlider
view of theslider
field.
-
progress
public NkStyleProgress progress()
Returns aNkStyleProgress
view of theprogress
field.
-
property
public NkStyleProperty property()
Returns aNkStyleProperty
view of theproperty
field.
-
edit
public NkStyleEdit edit()
Returns aNkStyleEdit
view of theedit
field.
-
chart
public NkStyleChart chart()
Returns aNkStyleChart
view of thechart
field.
-
scrollh
public NkStyleScrollbar scrollh()
Returns aNkStyleScrollbar
view of thescrollh
field.
-
scrollv
public NkStyleScrollbar scrollv()
Returns aNkStyleScrollbar
view of thescrollv
field.
-
tab
public NkStyleTab tab()
Returns aNkStyleTab
view of thetab
field.
-
combo
public NkStyleCombo combo()
Returns aNkStyleCombo
view of thecombo
field.
-
window
public NkStyleWindow window()
Returns aNkStyleWindow
view of thewindow
field.
-
font
public NkStyle font(@Nullable NkUserFont value)
Sets the address of the specifiedNkUserFont
to thefont
field.
-
cursors
public NkStyle cursors(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBuffer
to thecursors
field.
-
cursors
public NkStyle cursors(int index, @Nullable NkCursor value)
Copies the address of the specifiedNkCursor
at the specified index of thecursors
field.
-
cursors
public NkStyle cursors(int index, java.util.function.Consumer<NkCursor> consumer)
Passes the element atindex
of thecursors
field to the specifiedConsumer
.
-
cursor_active
public NkStyle cursor_active(@Nullable NkCursor value)
Sets the address of the specifiedNkCursor
to thecursor_active
field.
-
cursor_last
public NkStyle cursor_last(@Nullable NkCursor value)
Sets the address of the specifiedNkCursor
to thecursor_last
field.
-
cursor_visible
public NkStyle cursor_visible(boolean value)
Sets the specified value to thecursor_visible
field.
-
text
public NkStyle text(NkStyleText value)
Copies the specifiedNkStyleText
to thetext
field.
-
text
public NkStyle text(java.util.function.Consumer<NkStyleText> consumer)
Passes thetext
field to the specifiedConsumer
.
-
button
public NkStyle button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thebutton
field.
-
button
public NkStyle button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thebutton
field to the specifiedConsumer
.
-
contextual_button
public NkStyle contextual_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thecontextual_button
field.
-
contextual_button
public NkStyle contextual_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thecontextual_button
field to the specifiedConsumer
.
-
menu_button
public NkStyle menu_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to themenu_button
field.
-
menu_button
public NkStyle menu_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes themenu_button
field to the specifiedConsumer
.
-
option
public NkStyle option(NkStyleToggle value)
Copies the specifiedNkStyleToggle
to theoption
field.
-
option
public NkStyle option(java.util.function.Consumer<NkStyleToggle> consumer)
Passes theoption
field to the specifiedConsumer
.
-
checkbox
public NkStyle checkbox(NkStyleToggle value)
Copies the specifiedNkStyleToggle
to thecheckbox
field.
-
checkbox
public NkStyle checkbox(java.util.function.Consumer<NkStyleToggle> consumer)
Passes thecheckbox
field to the specifiedConsumer
.
-
selectable
public NkStyle selectable(NkStyleSelectable value)
Copies the specifiedNkStyleSelectable
to theselectable
field.
-
selectable
public NkStyle selectable(java.util.function.Consumer<NkStyleSelectable> consumer)
Passes theselectable
field to the specifiedConsumer
.
-
slider
public NkStyle slider(NkStyleSlider value)
Copies the specifiedNkStyleSlider
to theslider
field.
-
slider
public NkStyle slider(java.util.function.Consumer<NkStyleSlider> consumer)
Passes theslider
field to the specifiedConsumer
.
-
progress
public NkStyle progress(NkStyleProgress value)
Copies the specifiedNkStyleProgress
to theprogress
field.
-
progress
public NkStyle progress(java.util.function.Consumer<NkStyleProgress> consumer)
Passes theprogress
field to the specifiedConsumer
.
-
property
public NkStyle property(NkStyleProperty value)
Copies the specifiedNkStyleProperty
to theproperty
field.
-
property
public NkStyle property(java.util.function.Consumer<NkStyleProperty> consumer)
Passes theproperty
field to the specifiedConsumer
.
-
edit
public NkStyle edit(NkStyleEdit value)
Copies the specifiedNkStyleEdit
to theedit
field.
-
edit
public NkStyle edit(java.util.function.Consumer<NkStyleEdit> consumer)
Passes theedit
field to the specifiedConsumer
.
-
chart
public NkStyle chart(NkStyleChart value)
Copies the specifiedNkStyleChart
to thechart
field.
-
chart
public NkStyle chart(java.util.function.Consumer<NkStyleChart> consumer)
Passes thechart
field to the specifiedConsumer
.
-
scrollh
public NkStyle scrollh(NkStyleScrollbar value)
Copies the specifiedNkStyleScrollbar
to thescrollh
field.
-
scrollh
public NkStyle scrollh(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes thescrollh
field to the specifiedConsumer
.
-
scrollv
public NkStyle scrollv(NkStyleScrollbar value)
Copies the specifiedNkStyleScrollbar
to thescrollv
field.
-
scrollv
public NkStyle scrollv(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes thescrollv
field to the specifiedConsumer
.
-
tab
public NkStyle tab(NkStyleTab value)
Copies the specifiedNkStyleTab
to thetab
field.
-
tab
public NkStyle tab(java.util.function.Consumer<NkStyleTab> consumer)
Passes thetab
field to the specifiedConsumer
.
-
combo
public NkStyle combo(NkStyleCombo value)
Copies the specifiedNkStyleCombo
to thecombo
field.
-
combo
public NkStyle combo(java.util.function.Consumer<NkStyleCombo> consumer)
Passes thecombo
field to the specifiedConsumer
.
-
window
public NkStyle window(NkStyleWindow value)
Copies the specifiedNkStyleWindow
to thewindow
field.
-
window
public NkStyle window(java.util.function.Consumer<NkStyleWindow> consumer)
Passes thewindow
field to the specifiedConsumer
.
-
set
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)
Initializes this struct with the specified values.
-
set
public NkStyle set(NkStyle src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static NkStyle malloc()
Returns a newNkStyle
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static NkStyle calloc()
Returns a newNkStyle
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static NkStyle create()
Returns a newNkStyle
instance allocated withBufferUtils
.
-
create
public static NkStyle create(long address)
Returns a newNkStyle
instance for the specified memory address.
-
createSafe
@Nullable public static NkStyle createSafe(long address)
-
malloc
public static NkStyle.Buffer malloc(int capacity)
Returns a newNkStyle.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static NkStyle.Buffer calloc(int capacity)
Returns a newNkStyle.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static NkStyle.Buffer create(int capacity)
Returns a newNkStyle.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static NkStyle.Buffer create(long address, int capacity)
Create aNkStyle.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static NkStyle.Buffer createSafe(long address, int capacity)
-
mallocStack
public static NkStyle mallocStack()
Returns a newNkStyle
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static NkStyle callocStack()
Returns a newNkStyle
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static NkStyle mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyle
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static NkStyle callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyle
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static NkStyle.Buffer mallocStack(int capacity)
Returns a newNkStyle.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static NkStyle.Buffer callocStack(int capacity)
Returns a newNkStyle.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static NkStyle.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyle.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static NkStyle.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyle.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nfont
@Nullable public static NkUserFont nfont(long struct)
Unsafe version offont()
.
-
ncursors
public static org.lwjgl.PointerBuffer ncursors(long struct)
Unsafe version ofcursors()
.
-
ncursors
@Nullable public static NkCursor ncursors(long struct, int index)
Unsafe version ofcursors
.
-
ncursor_active
@Nullable public static NkCursor ncursor_active(long struct)
Unsafe version ofcursor_active()
.
-
ncursor_last
@Nullable public static NkCursor ncursor_last(long struct)
Unsafe version ofcursor_last()
.
-
ncursor_visible
public static int ncursor_visible(long struct)
Unsafe version ofcursor_visible()
.
-
ntext
public static NkStyleText ntext(long struct)
Unsafe version oftext()
.
-
nbutton
public static NkStyleButton nbutton(long struct)
Unsafe version ofbutton()
.
-
ncontextual_button
public static NkStyleButton ncontextual_button(long struct)
Unsafe version ofcontextual_button()
.
-
nmenu_button
public static NkStyleButton nmenu_button(long struct)
Unsafe version ofmenu_button()
.
-
noption
public static NkStyleToggle noption(long struct)
Unsafe version ofoption()
.
-
ncheckbox
public static NkStyleToggle ncheckbox(long struct)
Unsafe version ofcheckbox()
.
-
nselectable
public static NkStyleSelectable nselectable(long struct)
Unsafe version ofselectable()
.
-
nslider
public static NkStyleSlider nslider(long struct)
Unsafe version ofslider()
.
-
nprogress
public static NkStyleProgress nprogress(long struct)
Unsafe version ofprogress()
.
-
nproperty
public static NkStyleProperty nproperty(long struct)
Unsafe version ofproperty()
.
-
nedit
public static NkStyleEdit nedit(long struct)
Unsafe version ofedit()
.
-
nchart
public static NkStyleChart nchart(long struct)
Unsafe version ofchart()
.
-
nscrollh
public static NkStyleScrollbar nscrollh(long struct)
Unsafe version ofscrollh()
.
-
nscrollv
public static NkStyleScrollbar nscrollv(long struct)
Unsafe version ofscrollv()
.
-
ntab
public static NkStyleTab ntab(long struct)
Unsafe version oftab()
.
-
ncombo
public static NkStyleCombo ncombo(long struct)
Unsafe version ofcombo()
.
-
nwindow
public static NkStyleWindow nwindow(long struct)
Unsafe version ofwindow()
.
-
nfont
public static void nfont(long struct, @Nullable NkUserFont value)
Unsafe version offont
.
-
ncursors
public static void ncursors(long struct, org.lwjgl.PointerBuffer value)
Unsafe version ofcursors
.
-
ncursors
public static void ncursors(long struct, int index, @Nullable NkCursor value)
Unsafe version ofcursors
.
-
ncursor_active
public static void ncursor_active(long struct, @Nullable NkCursor value)
Unsafe version ofcursor_active
.
-
ncursor_last
public static void ncursor_last(long struct, @Nullable NkCursor value)
Unsafe version ofcursor_last
.
-
ncursor_visible
public static void ncursor_visible(long struct, int value)
Unsafe version ofcursor_visible
.
-
ntext
public static void ntext(long struct, NkStyleText value)
Unsafe version oftext
.
-
nbutton
public static void nbutton(long struct, NkStyleButton value)
Unsafe version ofbutton
.
-
ncontextual_button
public static void ncontextual_button(long struct, NkStyleButton value)
Unsafe version ofcontextual_button
.
-
nmenu_button
public static void nmenu_button(long struct, NkStyleButton value)
Unsafe version ofmenu_button
.
-
noption
public static void noption(long struct, NkStyleToggle value)
Unsafe version ofoption
.
-
ncheckbox
public static void ncheckbox(long struct, NkStyleToggle value)
Unsafe version ofcheckbox
.
-
nselectable
public static void nselectable(long struct, NkStyleSelectable value)
Unsafe version ofselectable
.
-
nslider
public static void nslider(long struct, NkStyleSlider value)
Unsafe version ofslider
.
-
nprogress
public static void nprogress(long struct, NkStyleProgress value)
Unsafe version ofprogress
.
-
nproperty
public static void nproperty(long struct, NkStyleProperty value)
Unsafe version ofproperty
.
-
nedit
public static void nedit(long struct, NkStyleEdit value)
Unsafe version ofedit
.
-
nchart
public static void nchart(long struct, NkStyleChart value)
Unsafe version ofchart
.
-
nscrollh
public static void nscrollh(long struct, NkStyleScrollbar value)
Unsafe version ofscrollh
.
-
nscrollv
public static void nscrollv(long struct, NkStyleScrollbar value)
Unsafe version ofscrollv
.
-
ntab
public static void ntab(long struct, NkStyleTab value)
Unsafe version oftab
.
-
ncombo
public static void ncombo(long struct, NkStyleCombo value)
Unsafe version ofcombo
.
-
nwindow
public static void nwindow(long struct, NkStyleWindow value)
Unsafe version ofwindow
.
-
-