Package org.lwjgl.nuklear
Class NkStyleEdit
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkStyleEdit
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class NkStyleEdit extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct nk_style_edit {struct nk_style_itemnormal;struct nk_style_itemhover;struct nk_style_itemactive;struct nk_colorborder_color;struct nk_style_scrollbarscrollbar;struct nk_colorcursor_normal;struct nk_colorcursor_hover;struct nk_colorcursor_text_normal;struct nk_colorcursor_text_hover;struct nk_colortext_normal;struct nk_colortext_hover;struct nk_colortext_active;struct nk_colorselected_normal;struct nk_colorselected_hover;struct nk_colorselected_text_normal;struct nk_colorselected_text_hover; float border; float rounding; float cursor_size;struct nk_vec2scrollbar_size;struct nk_vec2padding; float row_padding; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkStyleEdit.BufferAn array ofNkStyleEditstructs.
-
Field Summary
Fields Modifier and Type Field Description static intACTIVEThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intBORDER
BORDER_COLOR
CURSOR_HOVER
CURSOR_NORMAL
CURSOR_SIZE
CURSOR_TEXT_HOVER
CURSOR_TEXT_NORMAL
HOVER
NORMAL
PADDING
ROUNDING
ROW_PADDING
SCROLLBAR
SCROLLBAR_SIZE
SELECTED_HOVER
SELECTED_NORMAL
SELECTED_TEXT_HOVER
SELECTED_TEXT_NORMALThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTEXT_ACTIVE
TEXT_HOVER
TEXT_NORMALThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkStyleEdit(java.nio.ByteBuffer container)Creates aNkStyleEditinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItemactive()Returns aNkStyleItemview of theactivefield.NkStyleEditactive(java.util.function.Consumer<NkStyleItem> consumer)Passes theactivefield to the specifiedConsumer.NkStyleEditactive(NkStyleItem value)Copies the specifiedNkStyleItemto theactivefield.floatborder()Returns the value of theborderfield.NkStyleEditborder(float value)Sets the specified value to theborderfield.NkColorborder_color()Returns aNkColorview of theborder_colorfield.NkStyleEditborder_color(java.util.function.Consumer<NkColor> consumer)Passes theborder_colorfield to the specifiedConsumer.NkStyleEditborder_color(NkColor value)Copies the specifiedNkColorto theborder_colorfield.static NkStyleEditcalloc()Returns a newNkStyleEditinstance allocated withmemCalloc.static NkStyleEdit.Buffercalloc(int capacity)Returns a newNkStyleEdit.Bufferinstance allocated withmemCalloc.static NkStyleEditcallocStack()Returns a newNkStyleEditinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NkStyleEdit.BuffercallocStack(int capacity)Returns a newNkStyleEdit.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NkStyleEdit.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkStyleEdit.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkStyleEditcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNkStyleEditinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkStyleEditcreate()Returns a newNkStyleEditinstance allocated withBufferUtils.static NkStyleEdit.Buffercreate(int capacity)Returns a newNkStyleEdit.Bufferinstance allocated withBufferUtils.static NkStyleEditcreate(long address)Returns a newNkStyleEditinstance for the specified memory address.static NkStyleEdit.Buffercreate(long address, int capacity)Create aNkStyleEdit.Bufferinstance at the specified memory.static NkStyleEditcreateSafe(long address)static NkStyleEdit.BuffercreateSafe(long address, int capacity)NkColorcursor_hover()Returns aNkColorview of thecursor_hoverfield.NkStyleEditcursor_hover(java.util.function.Consumer<NkColor> consumer)Passes thecursor_hoverfield to the specifiedConsumer.NkStyleEditcursor_hover(NkColor value)Copies the specifiedNkColorto thecursor_hoverfield.NkColorcursor_normal()Returns aNkColorview of thecursor_normalfield.NkStyleEditcursor_normal(java.util.function.Consumer<NkColor> consumer)Passes thecursor_normalfield to the specifiedConsumer.NkStyleEditcursor_normal(NkColor value)Copies the specifiedNkColorto thecursor_normalfield.floatcursor_size()Returns the value of thecursor_sizefield.NkStyleEditcursor_size(float value)Sets the specified value to thecursor_sizefield.NkColorcursor_text_hover()Returns aNkColorview of thecursor_text_hoverfield.NkStyleEditcursor_text_hover(java.util.function.Consumer<NkColor> consumer)Passes thecursor_text_hoverfield to the specifiedConsumer.NkStyleEditcursor_text_hover(NkColor value)Copies the specifiedNkColorto thecursor_text_hoverfield.NkColorcursor_text_normal()Returns aNkColorview of thecursor_text_normalfield.NkStyleEditcursor_text_normal(java.util.function.Consumer<NkColor> consumer)Passes thecursor_text_normalfield to the specifiedConsumer.NkStyleEditcursor_text_normal(NkColor value)Copies the specifiedNkColorto thecursor_text_normalfield.NkStyleItemhover()Returns aNkStyleItemview of thehoverfield.NkStyleEdithover(java.util.function.Consumer<NkStyleItem> consumer)Passes thehoverfield to the specifiedConsumer.NkStyleEdithover(NkStyleItem value)Copies the specifiedNkStyleItemto thehoverfield.static NkStyleEditmalloc()Returns a newNkStyleEditinstance allocated withmemAlloc.static NkStyleEdit.Buffermalloc(int capacity)Returns a newNkStyleEdit.Bufferinstance allocated withmemAlloc.static NkStyleEditmallocStack()Returns a newNkStyleEditinstance allocated on the thread-localMemoryStack.static NkStyleEdit.BuffermallocStack(int capacity)Returns a newNkStyleEdit.Bufferinstance allocated on the thread-localMemoryStack.static NkStyleEdit.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkStyleEdit.Bufferinstance allocated on the specifiedMemoryStack.static NkStyleEditmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNkStyleEditinstance allocated on the specifiedMemoryStack.static NkStyleItemnactive(long struct)Unsafe version ofactive().static voidnactive(long struct, NkStyleItem value)Unsafe version ofactive.static floatnborder(long struct)Unsafe version ofborder().static voidnborder(long struct, float value)Unsafe version ofborder.static NkColornborder_color(long struct)Unsafe version ofborder_color().static voidnborder_color(long struct, NkColor value)Unsafe version ofborder_color.static NkColorncursor_hover(long struct)Unsafe version ofcursor_hover().static voidncursor_hover(long struct, NkColor value)Unsafe version ofcursor_hover.static NkColorncursor_normal(long struct)Unsafe version ofcursor_normal().static voidncursor_normal(long struct, NkColor value)Unsafe version ofcursor_normal.static floatncursor_size(long struct)Unsafe version ofcursor_size().static voidncursor_size(long struct, float value)Unsafe version ofcursor_size.static NkColorncursor_text_hover(long struct)Unsafe version ofcursor_text_hover().static voidncursor_text_hover(long struct, NkColor value)Unsafe version ofcursor_text_hover.static NkColorncursor_text_normal(long struct)Unsafe version ofcursor_text_normal().static voidncursor_text_normal(long struct, NkColor value)Unsafe version ofcursor_text_normal.static NkStyleItemnhover(long struct)Unsafe version ofhover().static voidnhover(long struct, NkStyleItem value)Unsafe version ofhover.static NkStyleItemnnormal(long struct)Unsafe version ofnormal().static voidnnormal(long struct, NkStyleItem value)Unsafe version ofnormal.NkStyleItemnormal()Returns aNkStyleItemview of thenormalfield.NkStyleEditnormal(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormalfield to the specifiedConsumer.NkStyleEditnormal(NkStyleItem value)Copies the specifiedNkStyleItemto thenormalfield.static NkVec2npadding(long struct)Unsafe version ofpadding().static voidnpadding(long struct, NkVec2 value)Unsafe version ofpadding.static floatnrounding(long struct)Unsafe version ofrounding().static voidnrounding(long struct, float value)Unsafe version ofrounding.static floatnrow_padding(long struct)Unsafe version ofrow_padding().static voidnrow_padding(long struct, float value)Unsafe version ofrow_padding.static NkStyleScrollbarnscrollbar(long struct)Unsafe version ofscrollbar().static voidnscrollbar(long struct, NkStyleScrollbar value)Unsafe version ofscrollbar.static NkVec2nscrollbar_size(long struct)Unsafe version ofscrollbar_size().static voidnscrollbar_size(long struct, NkVec2 value)Unsafe version ofscrollbar_size.static NkColornselected_hover(long struct)Unsafe version ofselected_hover().static voidnselected_hover(long struct, NkColor value)Unsafe version ofselected_hover.static NkColornselected_normal(long struct)Unsafe version ofselected_normal().static voidnselected_normal(long struct, NkColor value)Unsafe version ofselected_normal.static NkColornselected_text_hover(long struct)Unsafe version ofselected_text_hover().static voidnselected_text_hover(long struct, NkColor value)Unsafe version ofselected_text_hover.static NkColornselected_text_normal(long struct)Unsafe version ofselected_text_normal().static voidnselected_text_normal(long struct, NkColor value)Unsafe version ofselected_text_normal.static NkColorntext_active(long struct)Unsafe version oftext_active().static voidntext_active(long struct, NkColor value)Unsafe version oftext_active.static NkColorntext_hover(long struct)Unsafe version oftext_hover().static voidntext_hover(long struct, NkColor value)Unsafe version oftext_hover.static NkColorntext_normal(long struct)Unsafe version oftext_normal().static voidntext_normal(long struct, NkColor value)Unsafe version oftext_normal.NkVec2padding()Returns aNkVec2view of thepaddingfield.NkStyleEditpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleEditpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.floatrounding()Returns the value of theroundingfield.NkStyleEditrounding(float value)Sets the specified value to theroundingfield.floatrow_padding()Returns the value of therow_paddingfield.NkStyleEditrow_padding(float value)Sets the specified value to therow_paddingfield.NkStyleScrollbarscrollbar()Returns aNkStyleScrollbarview of thescrollbarfield.NkStyleEditscrollbar(java.util.function.Consumer<NkStyleScrollbar> consumer)Passes thescrollbarfield to the specifiedConsumer.NkStyleEditscrollbar(NkStyleScrollbar value)Copies the specifiedNkStyleScrollbarto thescrollbarfield.NkVec2scrollbar_size()Returns aNkVec2view of thescrollbar_sizefield.NkStyleEditscrollbar_size(java.util.function.Consumer<NkVec2> consumer)Passes thescrollbar_sizefield to the specifiedConsumer.NkStyleEditscrollbar_size(NkVec2 value)Copies the specifiedNkVec2to thescrollbar_sizefield.NkColorselected_hover()Returns aNkColorview of theselected_hoverfield.NkStyleEditselected_hover(java.util.function.Consumer<NkColor> consumer)Passes theselected_hoverfield to the specifiedConsumer.NkStyleEditselected_hover(NkColor value)Copies the specifiedNkColorto theselected_hoverfield.NkColorselected_normal()Returns aNkColorview of theselected_normalfield.NkStyleEditselected_normal(java.util.function.Consumer<NkColor> consumer)Passes theselected_normalfield to the specifiedConsumer.NkStyleEditselected_normal(NkColor value)Copies the specifiedNkColorto theselected_normalfield.NkColorselected_text_hover()Returns aNkColorview of theselected_text_hoverfield.NkStyleEditselected_text_hover(java.util.function.Consumer<NkColor> consumer)Passes theselected_text_hoverfield to the specifiedConsumer.NkStyleEditselected_text_hover(NkColor value)Copies the specifiedNkColorto theselected_text_hoverfield.NkColorselected_text_normal()Returns aNkColorview of theselected_text_normalfield.NkStyleEditselected_text_normal(java.util.function.Consumer<NkColor> consumer)Passes theselected_text_normalfield to the specifiedConsumer.NkStyleEditselected_text_normal(NkColor value)Copies the specifiedNkColorto theselected_text_normalfield.NkStyleEditset(NkStyleEdit src)Copies the specified struct data to this struct.NkStyleEditset(NkStyleItem normal, NkStyleItem hover, NkStyleItem active, NkColor border_color, NkStyleScrollbar scrollbar, NkColor cursor_normal, NkColor cursor_hover, NkColor cursor_text_normal, NkColor cursor_text_hover, NkColor text_normal, NkColor text_hover, NkColor text_active, NkColor selected_normal, NkColor selected_hover, NkColor selected_text_normal, NkColor selected_text_hover, float border, float rounding, float cursor_size, NkVec2 scrollbar_size, NkVec2 padding, float row_padding)Initializes this struct with the specified values.intsizeof()NkColortext_active()Returns aNkColorview of thetext_activefield.NkStyleEdittext_active(java.util.function.Consumer<NkColor> consumer)Passes thetext_activefield to the specifiedConsumer.NkStyleEdittext_active(NkColor value)Copies the specifiedNkColorto thetext_activefield.NkColortext_hover()Returns aNkColorview of thetext_hoverfield.NkStyleEdittext_hover(java.util.function.Consumer<NkColor> consumer)Passes thetext_hoverfield to the specifiedConsumer.NkStyleEdittext_hover(NkColor value)Copies the specifiedNkColorto thetext_hoverfield.NkColortext_normal()Returns aNkColorview of thetext_normalfield.NkStyleEdittext_normal(java.util.function.Consumer<NkColor> consumer)Passes thetext_normalfield to the specifiedConsumer.NkStyleEdittext_normal(NkColor value)Copies the specifiedNkColorto thetext_normalfield.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
NORMAL, HOVER, ACTIVE, BORDER_COLOR, SCROLLBAR, CURSOR_NORMAL, CURSOR_HOVER, CURSOR_TEXT_NORMAL, CURSOR_TEXT_HOVER, TEXT_NORMAL, TEXT_HOVER, TEXT_ACTIVE, SELECTED_NORMAL, SELECTED_HOVER, SELECTED_TEXT_NORMAL, SELECTED_TEXT_HOVER, BORDER, ROUNDING, CURSOR_SIZE, SCROLLBAR_SIZE, PADDING, ROW_PADDING
The struct member offsets.
-
-
Constructor Detail
-
NkStyleEdit
public NkStyleEdit(java.nio.ByteBuffer container)
Creates aNkStyleEditinstance 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
-
normal
public NkStyleItem normal()
Returns aNkStyleItemview of thenormalfield.
-
normal
public NkStyleEdit normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormalfield to the specifiedConsumer.
-
hover
public NkStyleItem hover()
Returns aNkStyleItemview of thehoverfield.
-
hover
public NkStyleEdit hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehoverfield to the specifiedConsumer.
-
active
public NkStyleItem active()
Returns aNkStyleItemview of theactivefield.
-
active
public NkStyleEdit active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactivefield to the specifiedConsumer.
-
border_color
public NkStyleEdit border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_colorfield to the specifiedConsumer.
-
scrollbar
public NkStyleScrollbar scrollbar()
Returns aNkStyleScrollbarview of thescrollbarfield.
-
scrollbar
public NkStyleEdit scrollbar(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes thescrollbarfield to the specifiedConsumer.
-
cursor_normal
public NkStyleEdit cursor_normal(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_normalfield to the specifiedConsumer.
-
cursor_hover
public NkStyleEdit cursor_hover(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_hoverfield to the specifiedConsumer.
-
cursor_text_normal
public NkColor cursor_text_normal()
Returns aNkColorview of thecursor_text_normalfield.
-
cursor_text_normal
public NkStyleEdit cursor_text_normal(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_text_normalfield to the specifiedConsumer.
-
cursor_text_hover
public NkColor cursor_text_hover()
Returns aNkColorview of thecursor_text_hoverfield.
-
cursor_text_hover
public NkStyleEdit cursor_text_hover(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_text_hoverfield to the specifiedConsumer.
-
text_normal
public NkStyleEdit text_normal(java.util.function.Consumer<NkColor> consumer)
Passes thetext_normalfield to the specifiedConsumer.
-
text_hover
public NkStyleEdit text_hover(java.util.function.Consumer<NkColor> consumer)
Passes thetext_hoverfield to the specifiedConsumer.
-
text_active
public NkStyleEdit text_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_activefield to the specifiedConsumer.
-
selected_normal
public NkColor selected_normal()
Returns aNkColorview of theselected_normalfield.
-
selected_normal
public NkStyleEdit selected_normal(java.util.function.Consumer<NkColor> consumer)
Passes theselected_normalfield to the specifiedConsumer.
-
selected_hover
public NkStyleEdit selected_hover(java.util.function.Consumer<NkColor> consumer)
Passes theselected_hoverfield to the specifiedConsumer.
-
selected_text_normal
public NkColor selected_text_normal()
Returns aNkColorview of theselected_text_normalfield.
-
selected_text_normal
public NkStyleEdit selected_text_normal(java.util.function.Consumer<NkColor> consumer)
Passes theselected_text_normalfield to the specifiedConsumer.
-
selected_text_hover
public NkColor selected_text_hover()
Returns aNkColorview of theselected_text_hoverfield.
-
selected_text_hover
public NkStyleEdit selected_text_hover(java.util.function.Consumer<NkColor> consumer)
Passes theselected_text_hoverfield to the specifiedConsumer.
-
border
public float border()
Returns the value of theborderfield.
-
rounding
public float rounding()
Returns the value of theroundingfield.
-
cursor_size
public float cursor_size()
Returns the value of thecursor_sizefield.
-
scrollbar_size
public NkStyleEdit scrollbar_size(java.util.function.Consumer<NkVec2> consumer)
Passes thescrollbar_sizefield to the specifiedConsumer.
-
padding
public NkStyleEdit padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
row_padding
public float row_padding()
Returns the value of therow_paddingfield.
-
normal
public NkStyleEdit normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormalfield.
-
hover
public NkStyleEdit hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thehoverfield.
-
active
public NkStyleEdit active(NkStyleItem value)
Copies the specifiedNkStyleItemto theactivefield.
-
border_color
public NkStyleEdit border_color(NkColor value)
Copies the specifiedNkColorto theborder_colorfield.
-
scrollbar
public NkStyleEdit scrollbar(NkStyleScrollbar value)
Copies the specifiedNkStyleScrollbarto thescrollbarfield.
-
cursor_normal
public NkStyleEdit cursor_normal(NkColor value)
Copies the specifiedNkColorto thecursor_normalfield.
-
cursor_hover
public NkStyleEdit cursor_hover(NkColor value)
Copies the specifiedNkColorto thecursor_hoverfield.
-
cursor_text_normal
public NkStyleEdit cursor_text_normal(NkColor value)
Copies the specifiedNkColorto thecursor_text_normalfield.
-
cursor_text_hover
public NkStyleEdit cursor_text_hover(NkColor value)
Copies the specifiedNkColorto thecursor_text_hoverfield.
-
text_normal
public NkStyleEdit text_normal(NkColor value)
Copies the specifiedNkColorto thetext_normalfield.
-
text_hover
public NkStyleEdit text_hover(NkColor value)
Copies the specifiedNkColorto thetext_hoverfield.
-
text_active
public NkStyleEdit text_active(NkColor value)
Copies the specifiedNkColorto thetext_activefield.
-
selected_normal
public NkStyleEdit selected_normal(NkColor value)
Copies the specifiedNkColorto theselected_normalfield.
-
selected_hover
public NkStyleEdit selected_hover(NkColor value)
Copies the specifiedNkColorto theselected_hoverfield.
-
selected_text_normal
public NkStyleEdit selected_text_normal(NkColor value)
Copies the specifiedNkColorto theselected_text_normalfield.
-
selected_text_hover
public NkStyleEdit selected_text_hover(NkColor value)
Copies the specifiedNkColorto theselected_text_hoverfield.
-
border
public NkStyleEdit border(float value)
Sets the specified value to theborderfield.
-
rounding
public NkStyleEdit rounding(float value)
Sets the specified value to theroundingfield.
-
cursor_size
public NkStyleEdit cursor_size(float value)
Sets the specified value to thecursor_sizefield.
-
scrollbar_size
public NkStyleEdit scrollbar_size(NkVec2 value)
Copies the specifiedNkVec2to thescrollbar_sizefield.
-
padding
public NkStyleEdit padding(NkVec2 value)
Copies the specifiedNkVec2to thepaddingfield.
-
row_padding
public NkStyleEdit row_padding(float value)
Sets the specified value to therow_paddingfield.
-
set
public NkStyleEdit set(NkStyleItem normal, NkStyleItem hover, NkStyleItem active, NkColor border_color, NkStyleScrollbar scrollbar, NkColor cursor_normal, NkColor cursor_hover, NkColor cursor_text_normal, NkColor cursor_text_hover, NkColor text_normal, NkColor text_hover, NkColor text_active, NkColor selected_normal, NkColor selected_hover, NkColor selected_text_normal, NkColor selected_text_hover, float border, float rounding, float cursor_size, NkVec2 scrollbar_size, NkVec2 padding, float row_padding)
Initializes this struct with the specified values.
-
set
public NkStyleEdit set(NkStyleEdit src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static NkStyleEdit malloc()
Returns a newNkStyleEditinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static NkStyleEdit calloc()
Returns a newNkStyleEditinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static NkStyleEdit create()
Returns a newNkStyleEditinstance allocated withBufferUtils.
-
create
public static NkStyleEdit create(long address)
Returns a newNkStyleEditinstance for the specified memory address.
-
createSafe
@Nullable public static NkStyleEdit createSafe(long address)
-
malloc
public static NkStyleEdit.Buffer malloc(int capacity)
Returns a newNkStyleEdit.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static NkStyleEdit.Buffer calloc(int capacity)
Returns a newNkStyleEdit.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static NkStyleEdit.Buffer create(int capacity)
Returns a newNkStyleEdit.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static NkStyleEdit.Buffer create(long address, int capacity)
Create aNkStyleEdit.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static NkStyleEdit.Buffer createSafe(long address, int capacity)
-
mallocStack
public static NkStyleEdit mallocStack()
Returns a newNkStyleEditinstance allocated on the thread-localMemoryStack.
-
callocStack
public static NkStyleEdit callocStack()
Returns a newNkStyleEditinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static NkStyleEdit mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleEditinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static NkStyleEdit callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleEditinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static NkStyleEdit.Buffer mallocStack(int capacity)
Returns a newNkStyleEdit.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static NkStyleEdit.Buffer callocStack(int capacity)
Returns a newNkStyleEdit.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static NkStyleEdit.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleEdit.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static NkStyleEdit.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleEdit.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nnormal
public static NkStyleItem nnormal(long struct)
Unsafe version ofnormal().
-
nhover
public static NkStyleItem nhover(long struct)
Unsafe version ofhover().
-
nactive
public static NkStyleItem nactive(long struct)
Unsafe version ofactive().
-
nborder_color
public static NkColor nborder_color(long struct)
Unsafe version ofborder_color().
-
nscrollbar
public static NkStyleScrollbar nscrollbar(long struct)
Unsafe version ofscrollbar().
-
ncursor_normal
public static NkColor ncursor_normal(long struct)
Unsafe version ofcursor_normal().
-
ncursor_hover
public static NkColor ncursor_hover(long struct)
Unsafe version ofcursor_hover().
-
ncursor_text_normal
public static NkColor ncursor_text_normal(long struct)
Unsafe version ofcursor_text_normal().
-
ncursor_text_hover
public static NkColor ncursor_text_hover(long struct)
Unsafe version ofcursor_text_hover().
-
ntext_normal
public static NkColor ntext_normal(long struct)
Unsafe version oftext_normal().
-
ntext_hover
public static NkColor ntext_hover(long struct)
Unsafe version oftext_hover().
-
ntext_active
public static NkColor ntext_active(long struct)
Unsafe version oftext_active().
-
nselected_normal
public static NkColor nselected_normal(long struct)
Unsafe version ofselected_normal().
-
nselected_hover
public static NkColor nselected_hover(long struct)
Unsafe version ofselected_hover().
-
nselected_text_normal
public static NkColor nselected_text_normal(long struct)
Unsafe version ofselected_text_normal().
-
nselected_text_hover
public static NkColor nselected_text_hover(long struct)
Unsafe version ofselected_text_hover().
-
nborder
public static float nborder(long struct)
Unsafe version ofborder().
-
nrounding
public static float nrounding(long struct)
Unsafe version ofrounding().
-
ncursor_size
public static float ncursor_size(long struct)
Unsafe version ofcursor_size().
-
nscrollbar_size
public static NkVec2 nscrollbar_size(long struct)
Unsafe version ofscrollbar_size().
-
nrow_padding
public static float nrow_padding(long struct)
Unsafe version ofrow_padding().
-
nnormal
public static void nnormal(long struct, NkStyleItem value)Unsafe version ofnormal.
-
nhover
public static void nhover(long struct, NkStyleItem value)Unsafe version ofhover.
-
nactive
public static void nactive(long struct, NkStyleItem value)Unsafe version ofactive.
-
nborder_color
public static void nborder_color(long struct, NkColor value)Unsafe version ofborder_color.
-
nscrollbar
public static void nscrollbar(long struct, NkStyleScrollbar value)Unsafe version ofscrollbar.
-
ncursor_normal
public static void ncursor_normal(long struct, NkColor value)Unsafe version ofcursor_normal.
-
ncursor_hover
public static void ncursor_hover(long struct, NkColor value)Unsafe version ofcursor_hover.
-
ncursor_text_normal
public static void ncursor_text_normal(long struct, NkColor value)Unsafe version ofcursor_text_normal.
-
ncursor_text_hover
public static void ncursor_text_hover(long struct, NkColor value)Unsafe version ofcursor_text_hover.
-
ntext_normal
public static void ntext_normal(long struct, NkColor value)Unsafe version oftext_normal.
-
ntext_hover
public static void ntext_hover(long struct, NkColor value)Unsafe version oftext_hover.
-
ntext_active
public static void ntext_active(long struct, NkColor value)Unsafe version oftext_active.
-
nselected_normal
public static void nselected_normal(long struct, NkColor value)Unsafe version ofselected_normal.
-
nselected_hover
public static void nselected_hover(long struct, NkColor value)Unsafe version ofselected_hover.
-
nselected_text_normal
public static void nselected_text_normal(long struct, NkColor value)Unsafe version ofselected_text_normal.
-
nselected_text_hover
public static void nselected_text_hover(long struct, NkColor value)Unsafe version ofselected_text_hover.
-
nborder
public static void nborder(long struct, float value)Unsafe version ofborder.
-
nrounding
public static void nrounding(long struct, float value)Unsafe version ofrounding.
-
ncursor_size
public static void ncursor_size(long struct, float value)Unsafe version ofcursor_size.
-
nscrollbar_size
public static void nscrollbar_size(long struct, NkVec2 value)Unsafe version ofscrollbar_size.
-
nrow_padding
public static void nrow_padding(long struct, float value)Unsafe version ofrow_padding.
-
-