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.NativeResourceLayout
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_texttext;struct nk_style_buttonbutton;struct nk_style_buttoncontextual_button;struct nk_style_buttonmenu_button;struct nk_style_toggleoption;struct nk_style_togglecheckbox;struct nk_style_selectableselectable;struct nk_style_sliderslider;struct nk_style_progressprogress;struct nk_style_propertyproperty;struct nk_style_editedit;struct nk_style_chartchart;struct nk_style_scrollbarscrollh;struct nk_style_scrollbarscrollv;struct nk_style_tabtab;struct nk_style_combocombo;struct nk_style_windowwindow; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkStyle.BufferAn array ofNkStylestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBUTTON
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 intSIZEOFThe struct size in bytes.static intSLIDER
TAB
TEXT
WINDOWThe struct member offsets.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleButtonbutton()Returns aNkStyleButtonview of thebuttonfield.NkStylebutton(java.util.function.Consumer<NkStyleButton> consumer)Passes thebuttonfield to the specifiedConsumer.NkStylebutton(NkStyleButton value)Copies the specifiedNkStyleButtonto thebuttonfield.static NkStylecalloc()Returns a newNkStyleinstance allocated withmemCalloc.static NkStyle.Buffercalloc(int capacity)Returns a newNkStyle.Bufferinstance allocated withmemCalloc.static NkStylecallocStack()Returns a newNkStyleinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NkStyle.BuffercallocStack(int capacity)Returns a newNkStyle.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NkStyle.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkStyle.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkStylecallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNkStyleinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.NkStyleChartchart()Returns aNkStyleChartview of thechartfield.NkStylechart(java.util.function.Consumer<NkStyleChart> consumer)Passes thechartfield to the specifiedConsumer.NkStylechart(NkStyleChart value)Copies the specifiedNkStyleChartto thechartfield.NkStyleTogglecheckbox()Returns aNkStyleToggleview of thecheckboxfield.NkStylecheckbox(java.util.function.Consumer<NkStyleToggle> consumer)Passes thecheckboxfield to the specifiedConsumer.NkStylecheckbox(NkStyleToggle value)Copies the specifiedNkStyleToggleto thecheckboxfield.NkStyleCombocombo()Returns aNkStyleComboview of thecombofield.NkStylecombo(java.util.function.Consumer<NkStyleCombo> consumer)Passes thecombofield to the specifiedConsumer.NkStylecombo(NkStyleCombo value)Copies the specifiedNkStyleComboto thecombofield.NkStyleButtoncontextual_button()Returns aNkStyleButtonview of thecontextual_buttonfield.NkStylecontextual_button(java.util.function.Consumer<NkStyleButton> consumer)Passes thecontextual_buttonfield to the specifiedConsumer.NkStylecontextual_button(NkStyleButton value)Copies the specifiedNkStyleButtonto thecontextual_buttonfield.static NkStylecreate()Returns a newNkStyleinstance allocated withBufferUtils.static NkStyle.Buffercreate(int capacity)Returns a newNkStyle.Bufferinstance allocated withBufferUtils.static NkStylecreate(long address)Returns a newNkStyleinstance for the specified memory address.static NkStyle.Buffercreate(long address, int capacity)Create aNkStyle.Bufferinstance at the specified memory.static NkStylecreateSafe(long address)static NkStyle.BuffercreateSafe(long address, int capacity)NkCursorcursor_active()Returns aNkCursorview of the struct pointed to by thecursor_activefield.NkStylecursor_active(NkCursor value)Sets the address of the specifiedNkCursorto thecursor_activefield.NkCursorcursor_last()Returns aNkCursorview of the struct pointed to by thecursor_lastfield.NkStylecursor_last(NkCursor value)Sets the address of the specifiedNkCursorto thecursor_lastfield.booleancursor_visible()Returns the value of thecursor_visiblefield.NkStylecursor_visible(boolean value)Sets the specified value to thecursor_visiblefield.org.lwjgl.PointerBuffercursors()Returns aPointerBufferview of thecursorsfield.NkCursorcursors(int index)Returns aNkCursorview of the pointer at the specified index of thecursorsfield.NkStylecursors(int index, NkCursor value)Copies the address of the specifiedNkCursorat the specified index of thecursorsfield.NkStylecursors(org.lwjgl.PointerBuffer value)Copies the specifiedPointerBufferto thecursorsfield.NkStyleEditedit()Returns aNkStyleEditview of theeditfield.NkStyleedit(java.util.function.Consumer<NkStyleEdit> consumer)Passes theeditfield to the specifiedConsumer.NkStyleedit(NkStyleEdit value)Copies the specifiedNkStyleEditto theeditfield.NkUserFontfont()Returns aNkUserFontview of the struct pointed to by thefontfield.NkStylefont(NkUserFont value)Sets the address of the specifiedNkUserFontto thefontfield.static NkStylemalloc()Returns a newNkStyleinstance allocated withmemAlloc.static NkStyle.Buffermalloc(int capacity)Returns a newNkStyle.Bufferinstance allocated withmemAlloc.static NkStylemallocStack()Returns a newNkStyleinstance allocated on the thread-localMemoryStack.static NkStyle.BuffermallocStack(int capacity)Returns a newNkStyle.Bufferinstance allocated on the thread-localMemoryStack.static NkStyle.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkStyle.Bufferinstance allocated on the specifiedMemoryStack.static NkStylemallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNkStyleinstance allocated on the specifiedMemoryStack.NkStyleButtonmenu_button()Returns aNkStyleButtonview of themenu_buttonfield.NkStylemenu_button(java.util.function.Consumer<NkStyleButton> consumer)Passes themenu_buttonfield to the specifiedConsumer.NkStylemenu_button(NkStyleButton value)Copies the specifiedNkStyleButtonto themenu_buttonfield.static NkStyleButtonnbutton(long struct)Unsafe version ofbutton().static voidnbutton(long struct, NkStyleButton value)Unsafe version ofbutton.static NkStyleChartnchart(long struct)Unsafe version ofchart().static voidnchart(long struct, NkStyleChart value)Unsafe version ofchart.static NkStyleTogglencheckbox(long struct)Unsafe version ofcheckbox().static voidncheckbox(long struct, NkStyleToggle value)Unsafe version ofcheckbox.static NkStyleComboncombo(long struct)Unsafe version ofcombo().static voidncombo(long struct, NkStyleCombo value)Unsafe version ofcombo.static NkStyleButtonncontextual_button(long struct)Unsafe version ofcontextual_button().static voidncontextual_button(long struct, NkStyleButton value)Unsafe version ofcontextual_button.static NkCursorncursor_active(long struct)Unsafe version ofcursor_active().static voidncursor_active(long struct, NkCursor value)Unsafe version ofcursor_active.static NkCursorncursor_last(long struct)Unsafe version ofcursor_last().static voidncursor_last(long struct, NkCursor value)Unsafe version ofcursor_last.static intncursor_visible(long struct)Unsafe version ofcursor_visible().static voidncursor_visible(long struct, int value)Unsafe version ofcursor_visible.static org.lwjgl.PointerBufferncursors(long struct)Unsafe version ofcursors().static NkCursorncursors(long struct, int index)Unsafe version ofcursors.static voidncursors(long struct, int index, NkCursor value)Unsafe version ofcursors.static voidncursors(long struct, org.lwjgl.PointerBuffer value)Unsafe version ofcursors.static NkStyleEditnedit(long struct)Unsafe version ofedit().static voidnedit(long struct, NkStyleEdit value)Unsafe version ofedit.static NkUserFontnfont(long struct)Unsafe version offont().static voidnfont(long struct, NkUserFont value)Unsafe version offont.static NkStyleButtonnmenu_button(long struct)Unsafe version ofmenu_button().static voidnmenu_button(long struct, NkStyleButton value)Unsafe version ofmenu_button.static NkStyleTogglenoption(long struct)Unsafe version ofoption().static voidnoption(long struct, NkStyleToggle value)Unsafe version ofoption.static NkStyleProgressnprogress(long struct)Unsafe version ofprogress().static voidnprogress(long struct, NkStyleProgress value)Unsafe version ofprogress.static NkStylePropertynproperty(long struct)Unsafe version ofproperty().static voidnproperty(long struct, NkStyleProperty value)Unsafe version ofproperty.static NkStyleScrollbarnscrollh(long struct)Unsafe version ofscrollh().static voidnscrollh(long struct, NkStyleScrollbar value)Unsafe version ofscrollh.static NkStyleScrollbarnscrollv(long struct)Unsafe version ofscrollv().static voidnscrollv(long struct, NkStyleScrollbar value)Unsafe version ofscrollv.static NkStyleSelectablenselectable(long struct)Unsafe version ofselectable().static voidnselectable(long struct, NkStyleSelectable value)Unsafe version ofselectable.static NkStyleSlidernslider(long struct)Unsafe version ofslider().static voidnslider(long struct, NkStyleSlider value)Unsafe version ofslider.static NkStyleTabntab(long struct)Unsafe version oftab().static voidntab(long struct, NkStyleTab value)Unsafe version oftab.static NkStyleTextntext(long struct)Unsafe version oftext().static voidntext(long struct, NkStyleText value)Unsafe version oftext.static NkStyleWindownwindow(long struct)Unsafe version ofwindow().static voidnwindow(long struct, NkStyleWindow value)Unsafe version ofwindow.NkStyleToggleoption()Returns aNkStyleToggleview of theoptionfield.NkStyleoption(java.util.function.Consumer<NkStyleToggle> consumer)Passes theoptionfield to the specifiedConsumer.NkStyleoption(NkStyleToggle value)Copies the specifiedNkStyleToggleto theoptionfield.NkStyleProgressprogress()Returns aNkStyleProgressview of theprogressfield.NkStyleprogress(java.util.function.Consumer<NkStyleProgress> consumer)Passes theprogressfield to the specifiedConsumer.NkStyleprogress(NkStyleProgress value)Copies the specifiedNkStyleProgressto theprogressfield.NkStylePropertyproperty()Returns aNkStylePropertyview of thepropertyfield.NkStyleproperty(java.util.function.Consumer<NkStyleProperty> consumer)Passes thepropertyfield to the specifiedConsumer.NkStyleproperty(NkStyleProperty value)Copies the specifiedNkStylePropertyto thepropertyfield.NkStyleScrollbarscrollh()Returns aNkStyleScrollbarview of thescrollhfield.NkStylescrollh(java.util.function.Consumer<NkStyleScrollbar> consumer)Passes thescrollhfield to the specifiedConsumer.NkStylescrollh(NkStyleScrollbar value)Copies the specifiedNkStyleScrollbarto thescrollhfield.NkStyleScrollbarscrollv()Returns aNkStyleScrollbarview of thescrollvfield.NkStylescrollv(java.util.function.Consumer<NkStyleScrollbar> consumer)Passes thescrollvfield to the specifiedConsumer.NkStylescrollv(NkStyleScrollbar value)Copies the specifiedNkStyleScrollbarto thescrollvfield.NkStyleSelectableselectable()Returns aNkStyleSelectableview of theselectablefield.NkStyleselectable(java.util.function.Consumer<NkStyleSelectable> consumer)Passes theselectablefield to the specifiedConsumer.NkStyleselectable(NkStyleSelectable value)Copies the specifiedNkStyleSelectableto theselectablefield.NkStyleset(NkStyle src)Copies the specified struct data to this struct.NkStyleset(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.intsizeof()NkStyleSliderslider()Returns aNkStyleSliderview of thesliderfield.NkStyleslider(java.util.function.Consumer<NkStyleSlider> consumer)Passes thesliderfield to the specifiedConsumer.NkStyleslider(NkStyleSlider value)Copies the specifiedNkStyleSliderto thesliderfield.NkStyleTabtab()Returns aNkStyleTabview of thetabfield.NkStyletab(java.util.function.Consumer<NkStyleTab> consumer)Passes thetabfield to the specifiedConsumer.NkStyletab(NkStyleTab value)Copies the specifiedNkStyleTabto thetabfield.NkStyleTexttext()Returns aNkStyleTextview of thetextfield.NkStyletext(java.util.function.Consumer<NkStyleText> consumer)Passes thetextfield to the specifiedConsumer.NkStyletext(NkStyleText value)Copies the specifiedNkStyleTextto thetextfield.NkStyleWindowwindow()Returns aNkStyleWindowview of thewindowfield.NkStylewindow(java.util.function.Consumer<NkStyleWindow> consumer)Passes thewindowfield to the specifiedConsumer.NkStylewindow(NkStyleWindow value)Copies the specifiedNkStyleWindowto thewindowfield.
-
-
-
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 aNkStyleinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
font
@Nullable public NkUserFont font()
Returns aNkUserFontview of the struct pointed to by thefontfield.
-
cursors
public org.lwjgl.PointerBuffer cursors()
Returns aPointerBufferview of thecursorsfield.
-
cursors
@Nullable public NkCursor cursors(int index)
Returns aNkCursorview of the pointer at the specified index of thecursorsfield.
-
cursor_active
@Nullable public NkCursor cursor_active()
Returns aNkCursorview of the struct pointed to by thecursor_activefield.
-
cursor_last
@Nullable public NkCursor cursor_last()
Returns aNkCursorview of the struct pointed to by thecursor_lastfield.
-
cursor_visible
public boolean cursor_visible()
Returns the value of thecursor_visiblefield.
-
text
public NkStyleText text()
Returns aNkStyleTextview of thetextfield.
-
text
public NkStyle text(java.util.function.Consumer<NkStyleText> consumer)
Passes thetextfield to the specifiedConsumer.
-
button
public NkStyleButton button()
Returns aNkStyleButtonview of thebuttonfield.
-
button
public NkStyle button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thebuttonfield to the specifiedConsumer.
-
contextual_button
public NkStyleButton contextual_button()
Returns aNkStyleButtonview of thecontextual_buttonfield.
-
contextual_button
public NkStyle contextual_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thecontextual_buttonfield to the specifiedConsumer.
-
menu_button
public NkStyleButton menu_button()
Returns aNkStyleButtonview of themenu_buttonfield.
-
menu_button
public NkStyle menu_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes themenu_buttonfield to the specifiedConsumer.
-
option
public NkStyleToggle option()
Returns aNkStyleToggleview of theoptionfield.
-
option
public NkStyle option(java.util.function.Consumer<NkStyleToggle> consumer)
Passes theoptionfield to the specifiedConsumer.
-
checkbox
public NkStyleToggle checkbox()
Returns aNkStyleToggleview of thecheckboxfield.
-
checkbox
public NkStyle checkbox(java.util.function.Consumer<NkStyleToggle> consumer)
Passes thecheckboxfield to the specifiedConsumer.
-
selectable
public NkStyleSelectable selectable()
Returns aNkStyleSelectableview of theselectablefield.
-
selectable
public NkStyle selectable(java.util.function.Consumer<NkStyleSelectable> consumer)
Passes theselectablefield to the specifiedConsumer.
-
slider
public NkStyleSlider slider()
Returns aNkStyleSliderview of thesliderfield.
-
slider
public NkStyle slider(java.util.function.Consumer<NkStyleSlider> consumer)
Passes thesliderfield to the specifiedConsumer.
-
progress
public NkStyleProgress progress()
Returns aNkStyleProgressview of theprogressfield.
-
progress
public NkStyle progress(java.util.function.Consumer<NkStyleProgress> consumer)
Passes theprogressfield to the specifiedConsumer.
-
property
public NkStyleProperty property()
Returns aNkStylePropertyview of thepropertyfield.
-
property
public NkStyle property(java.util.function.Consumer<NkStyleProperty> consumer)
Passes thepropertyfield to the specifiedConsumer.
-
edit
public NkStyleEdit edit()
Returns aNkStyleEditview of theeditfield.
-
edit
public NkStyle edit(java.util.function.Consumer<NkStyleEdit> consumer)
Passes theeditfield to the specifiedConsumer.
-
chart
public NkStyleChart chart()
Returns aNkStyleChartview of thechartfield.
-
chart
public NkStyle chart(java.util.function.Consumer<NkStyleChart> consumer)
Passes thechartfield to the specifiedConsumer.
-
scrollh
public NkStyleScrollbar scrollh()
Returns aNkStyleScrollbarview of thescrollhfield.
-
scrollh
public NkStyle scrollh(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes thescrollhfield to the specifiedConsumer.
-
scrollv
public NkStyleScrollbar scrollv()
Returns aNkStyleScrollbarview of thescrollvfield.
-
scrollv
public NkStyle scrollv(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes thescrollvfield to the specifiedConsumer.
-
tab
public NkStyleTab tab()
Returns aNkStyleTabview of thetabfield.
-
tab
public NkStyle tab(java.util.function.Consumer<NkStyleTab> consumer)
Passes thetabfield to the specifiedConsumer.
-
combo
public NkStyleCombo combo()
Returns aNkStyleComboview of thecombofield.
-
combo
public NkStyle combo(java.util.function.Consumer<NkStyleCombo> consumer)
Passes thecombofield to the specifiedConsumer.
-
window
public NkStyleWindow window()
Returns aNkStyleWindowview of thewindowfield.
-
window
public NkStyle window(java.util.function.Consumer<NkStyleWindow> consumer)
Passes thewindowfield to the specifiedConsumer.
-
font
public NkStyle font(@Nullable NkUserFont value)
Sets the address of the specifiedNkUserFontto thefontfield.
-
cursors
public NkStyle cursors(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBufferto thecursorsfield.
-
cursors
public NkStyle cursors(int index, @Nullable NkCursor value)
Copies the address of the specifiedNkCursorat the specified index of thecursorsfield.
-
cursor_active
public NkStyle cursor_active(@Nullable NkCursor value)
Sets the address of the specifiedNkCursorto thecursor_activefield.
-
cursor_last
public NkStyle cursor_last(@Nullable NkCursor value)
Sets the address of the specifiedNkCursorto thecursor_lastfield.
-
cursor_visible
public NkStyle cursor_visible(boolean value)
Sets the specified value to thecursor_visiblefield.
-
text
public NkStyle text(NkStyleText value)
Copies the specifiedNkStyleTextto thetextfield.
-
button
public NkStyle button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thebuttonfield.
-
contextual_button
public NkStyle contextual_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thecontextual_buttonfield.
-
menu_button
public NkStyle menu_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto themenu_buttonfield.
-
option
public NkStyle option(NkStyleToggle value)
Copies the specifiedNkStyleToggleto theoptionfield.
-
checkbox
public NkStyle checkbox(NkStyleToggle value)
Copies the specifiedNkStyleToggleto thecheckboxfield.
-
selectable
public NkStyle selectable(NkStyleSelectable value)
Copies the specifiedNkStyleSelectableto theselectablefield.
-
slider
public NkStyle slider(NkStyleSlider value)
Copies the specifiedNkStyleSliderto thesliderfield.
-
progress
public NkStyle progress(NkStyleProgress value)
Copies the specifiedNkStyleProgressto theprogressfield.
-
property
public NkStyle property(NkStyleProperty value)
Copies the specifiedNkStylePropertyto thepropertyfield.
-
edit
public NkStyle edit(NkStyleEdit value)
Copies the specifiedNkStyleEditto theeditfield.
-
chart
public NkStyle chart(NkStyleChart value)
Copies the specifiedNkStyleChartto thechartfield.
-
scrollh
public NkStyle scrollh(NkStyleScrollbar value)
Copies the specifiedNkStyleScrollbarto thescrollhfield.
-
scrollv
public NkStyle scrollv(NkStyleScrollbar value)
Copies the specifiedNkStyleScrollbarto thescrollvfield.
-
tab
public NkStyle tab(NkStyleTab value)
Copies the specifiedNkStyleTabto thetabfield.
-
combo
public NkStyle combo(NkStyleCombo value)
Copies the specifiedNkStyleComboto thecombofield.
-
window
public NkStyle window(NkStyleWindow value)
Copies the specifiedNkStyleWindowto thewindowfield.
-
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 newNkStyleinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static NkStyle calloc()
Returns a newNkStyleinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static NkStyle create(long address)
Returns a newNkStyleinstance for the specified memory address.
-
createSafe
@Nullable public static NkStyle createSafe(long address)
-
malloc
public static NkStyle.Buffer malloc(int capacity)
Returns a newNkStyle.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static NkStyle.Buffer calloc(int capacity)
Returns a newNkStyle.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static NkStyle.Buffer create(int capacity)
Returns a newNkStyle.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static NkStyle.Buffer create(long address, int capacity)
Create aNkStyle.Bufferinstance 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 newNkStyleinstance allocated on the thread-localMemoryStack.
-
callocStack
public static NkStyle callocStack()
Returns a newNkStyleinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static NkStyle mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static NkStyle callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static NkStyle.Buffer callocStack(int capacity)
Returns a newNkStyle.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-