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.NativeResource
Layout
struct nk_style_edit {
struct nk_style_item
normal;struct nk_style_item
hover;struct nk_style_item
active;struct nk_color
border_color;struct nk_style_scrollbar
scrollbar;struct nk_color
cursor_normal;struct nk_color
cursor_hover;struct nk_color
cursor_text_normal;struct nk_color
cursor_text_hover;struct nk_color
text_normal;struct nk_color
text_hover;struct nk_color
text_active;struct nk_color
selected_normal;struct nk_color
selected_hover;struct nk_color
selected_text_normal;struct nk_color
selected_text_hover; float border; float rounding; float cursor_size;struct nk_vec2
scrollbar_size;struct nk_vec2
padding; float row_padding; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NkStyleEdit.Buffer
An array ofNkStyleEdit
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ACTIVE
The struct member offsets.static int
ALIGNOF
The struct alignment in bytes.static int
BORDER
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 int
SIZEOF
The struct size in bytes.static int
TEXT_ACTIVE
TEXT_HOVER
TEXT_NORMALThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkStyleEdit(java.nio.ByteBuffer container)
Creates aNkStyleEdit
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItem
active()
Returns aNkStyleItem
view of theactive
field.NkStyleEdit
active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactive
field to the specifiedConsumer
.NkStyleEdit
active(NkStyleItem value)
Copies the specifiedNkStyleItem
to theactive
field.float
border()
Returns the value of theborder
field.NkStyleEdit
border(float value)
Sets the specified value to theborder
field.NkColor
border_color()
Returns aNkColor
view of theborder_color
field.NkStyleEdit
border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.NkStyleEdit
border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.static NkStyleEdit
calloc()
Returns a newNkStyleEdit
instance allocated withmemCalloc
.static NkStyleEdit.Buffer
calloc(int capacity)
Returns a newNkStyleEdit.Buffer
instance allocated withmemCalloc
.static NkStyleEdit
callocStack()
Returns a newNkStyleEdit
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static NkStyleEdit.Buffer
callocStack(int capacity)
Returns a newNkStyleEdit.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static NkStyleEdit.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleEdit.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkStyleEdit
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleEdit
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkStyleEdit
create()
Returns a newNkStyleEdit
instance allocated withBufferUtils
.static NkStyleEdit.Buffer
create(int capacity)
Returns a newNkStyleEdit.Buffer
instance allocated withBufferUtils
.static NkStyleEdit
create(long address)
Returns a newNkStyleEdit
instance for the specified memory address.static NkStyleEdit.Buffer
create(long address, int capacity)
Create aNkStyleEdit.Buffer
instance at the specified memory.static NkStyleEdit
createSafe(long address)
static NkStyleEdit.Buffer
createSafe(long address, int capacity)
NkColor
cursor_hover()
Returns aNkColor
view of thecursor_hover
field.NkStyleEdit
cursor_hover(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_hover
field to the specifiedConsumer
.NkStyleEdit
cursor_hover(NkColor value)
Copies the specifiedNkColor
to thecursor_hover
field.NkColor
cursor_normal()
Returns aNkColor
view of thecursor_normal
field.NkStyleEdit
cursor_normal(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_normal
field to the specifiedConsumer
.NkStyleEdit
cursor_normal(NkColor value)
Copies the specifiedNkColor
to thecursor_normal
field.float
cursor_size()
Returns the value of thecursor_size
field.NkStyleEdit
cursor_size(float value)
Sets the specified value to thecursor_size
field.NkColor
cursor_text_hover()
Returns aNkColor
view of thecursor_text_hover
field.NkStyleEdit
cursor_text_hover(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_text_hover
field to the specifiedConsumer
.NkStyleEdit
cursor_text_hover(NkColor value)
Copies the specifiedNkColor
to thecursor_text_hover
field.NkColor
cursor_text_normal()
Returns aNkColor
view of thecursor_text_normal
field.NkStyleEdit
cursor_text_normal(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_text_normal
field to the specifiedConsumer
.NkStyleEdit
cursor_text_normal(NkColor value)
Copies the specifiedNkColor
to thecursor_text_normal
field.NkStyleItem
hover()
Returns aNkStyleItem
view of thehover
field.NkStyleEdit
hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover
field to the specifiedConsumer
.NkStyleEdit
hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover
field.static NkStyleEdit
malloc()
Returns a newNkStyleEdit
instance allocated withmemAlloc
.static NkStyleEdit.Buffer
malloc(int capacity)
Returns a newNkStyleEdit.Buffer
instance allocated withmemAlloc
.static NkStyleEdit
mallocStack()
Returns a newNkStyleEdit
instance allocated on the thread-localMemoryStack
.static NkStyleEdit.Buffer
mallocStack(int capacity)
Returns a newNkStyleEdit.Buffer
instance allocated on the thread-localMemoryStack
.static NkStyleEdit.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleEdit.Buffer
instance allocated on the specifiedMemoryStack
.static NkStyleEdit
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleEdit
instance allocated on the specifiedMemoryStack
.static NkStyleItem
nactive(long struct)
Unsafe version ofactive()
.static void
nactive(long struct, NkStyleItem value)
Unsafe version ofactive
.static float
nborder(long struct)
Unsafe version ofborder()
.static void
nborder(long struct, float value)
Unsafe version ofborder
.static NkColor
nborder_color(long struct)
Unsafe version ofborder_color()
.static void
nborder_color(long struct, NkColor value)
Unsafe version ofborder_color
.static NkColor
ncursor_hover(long struct)
Unsafe version ofcursor_hover()
.static void
ncursor_hover(long struct, NkColor value)
Unsafe version ofcursor_hover
.static NkColor
ncursor_normal(long struct)
Unsafe version ofcursor_normal()
.static void
ncursor_normal(long struct, NkColor value)
Unsafe version ofcursor_normal
.static float
ncursor_size(long struct)
Unsafe version ofcursor_size()
.static void
ncursor_size(long struct, float value)
Unsafe version ofcursor_size
.static NkColor
ncursor_text_hover(long struct)
Unsafe version ofcursor_text_hover()
.static void
ncursor_text_hover(long struct, NkColor value)
Unsafe version ofcursor_text_hover
.static NkColor
ncursor_text_normal(long struct)
Unsafe version ofcursor_text_normal()
.static void
ncursor_text_normal(long struct, NkColor value)
Unsafe version ofcursor_text_normal
.static NkStyleItem
nhover(long struct)
Unsafe version ofhover()
.static void
nhover(long struct, NkStyleItem value)
Unsafe version ofhover
.static NkStyleItem
nnormal(long struct)
Unsafe version ofnormal()
.static void
nnormal(long struct, NkStyleItem value)
Unsafe version ofnormal
.NkStyleItem
normal()
Returns aNkStyleItem
view of thenormal
field.NkStyleEdit
normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal
field to the specifiedConsumer
.NkStyleEdit
normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal
field.static NkVec2
npadding(long struct)
Unsafe version ofpadding()
.static void
npadding(long struct, NkVec2 value)
Unsafe version ofpadding
.static float
nrounding(long struct)
Unsafe version ofrounding()
.static void
nrounding(long struct, float value)
Unsafe version ofrounding
.static float
nrow_padding(long struct)
Unsafe version ofrow_padding()
.static void
nrow_padding(long struct, float value)
Unsafe version ofrow_padding
.static NkStyleScrollbar
nscrollbar(long struct)
Unsafe version ofscrollbar()
.static void
nscrollbar(long struct, NkStyleScrollbar value)
Unsafe version ofscrollbar
.static NkVec2
nscrollbar_size(long struct)
Unsafe version ofscrollbar_size()
.static void
nscrollbar_size(long struct, NkVec2 value)
Unsafe version ofscrollbar_size
.static NkColor
nselected_hover(long struct)
Unsafe version ofselected_hover()
.static void
nselected_hover(long struct, NkColor value)
Unsafe version ofselected_hover
.static NkColor
nselected_normal(long struct)
Unsafe version ofselected_normal()
.static void
nselected_normal(long struct, NkColor value)
Unsafe version ofselected_normal
.static NkColor
nselected_text_hover(long struct)
Unsafe version ofselected_text_hover()
.static void
nselected_text_hover(long struct, NkColor value)
Unsafe version ofselected_text_hover
.static NkColor
nselected_text_normal(long struct)
Unsafe version ofselected_text_normal()
.static void
nselected_text_normal(long struct, NkColor value)
Unsafe version ofselected_text_normal
.static NkColor
ntext_active(long struct)
Unsafe version oftext_active()
.static void
ntext_active(long struct, NkColor value)
Unsafe version oftext_active
.static NkColor
ntext_hover(long struct)
Unsafe version oftext_hover()
.static void
ntext_hover(long struct, NkColor value)
Unsafe version oftext_hover
.static NkColor
ntext_normal(long struct)
Unsafe version oftext_normal()
.static void
ntext_normal(long struct, NkColor value)
Unsafe version oftext_normal
.NkVec2
padding()
Returns aNkVec2
view of thepadding
field.NkStyleEdit
padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.NkStyleEdit
padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.float
rounding()
Returns the value of therounding
field.NkStyleEdit
rounding(float value)
Sets the specified value to therounding
field.float
row_padding()
Returns the value of therow_padding
field.NkStyleEdit
row_padding(float value)
Sets the specified value to therow_padding
field.NkStyleScrollbar
scrollbar()
Returns aNkStyleScrollbar
view of thescrollbar
field.NkStyleEdit
scrollbar(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes thescrollbar
field to the specifiedConsumer
.NkStyleEdit
scrollbar(NkStyleScrollbar value)
Copies the specifiedNkStyleScrollbar
to thescrollbar
field.NkVec2
scrollbar_size()
Returns aNkVec2
view of thescrollbar_size
field.NkStyleEdit
scrollbar_size(java.util.function.Consumer<NkVec2> consumer)
Passes thescrollbar_size
field to the specifiedConsumer
.NkStyleEdit
scrollbar_size(NkVec2 value)
Copies the specifiedNkVec2
to thescrollbar_size
field.NkColor
selected_hover()
Returns aNkColor
view of theselected_hover
field.NkStyleEdit
selected_hover(java.util.function.Consumer<NkColor> consumer)
Passes theselected_hover
field to the specifiedConsumer
.NkStyleEdit
selected_hover(NkColor value)
Copies the specifiedNkColor
to theselected_hover
field.NkColor
selected_normal()
Returns aNkColor
view of theselected_normal
field.NkStyleEdit
selected_normal(java.util.function.Consumer<NkColor> consumer)
Passes theselected_normal
field to the specifiedConsumer
.NkStyleEdit
selected_normal(NkColor value)
Copies the specifiedNkColor
to theselected_normal
field.NkColor
selected_text_hover()
Returns aNkColor
view of theselected_text_hover
field.NkStyleEdit
selected_text_hover(java.util.function.Consumer<NkColor> consumer)
Passes theselected_text_hover
field to the specifiedConsumer
.NkStyleEdit
selected_text_hover(NkColor value)
Copies the specifiedNkColor
to theselected_text_hover
field.NkColor
selected_text_normal()
Returns aNkColor
view of theselected_text_normal
field.NkStyleEdit
selected_text_normal(java.util.function.Consumer<NkColor> consumer)
Passes theselected_text_normal
field to the specifiedConsumer
.NkStyleEdit
selected_text_normal(NkColor value)
Copies the specifiedNkColor
to theselected_text_normal
field.NkStyleEdit
set(NkStyleEdit src)
Copies the specified struct data to this struct.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.int
sizeof()
NkColor
text_active()
Returns aNkColor
view of thetext_active
field.NkStyleEdit
text_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_active
field to the specifiedConsumer
.NkStyleEdit
text_active(NkColor value)
Copies the specifiedNkColor
to thetext_active
field.NkColor
text_hover()
Returns aNkColor
view of thetext_hover
field.NkStyleEdit
text_hover(java.util.function.Consumer<NkColor> consumer)
Passes thetext_hover
field to the specifiedConsumer
.NkStyleEdit
text_hover(NkColor value)
Copies the specifiedNkColor
to thetext_hover
field.NkColor
text_normal()
Returns aNkColor
view of thetext_normal
field.NkStyleEdit
text_normal(java.util.function.Consumer<NkColor> consumer)
Passes thetext_normal
field to the specifiedConsumer
.NkStyleEdit
text_normal(NkColor value)
Copies the specifiedNkColor
to thetext_normal
field.
-
-
-
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 aNkStyleEdit
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
-
normal
public NkStyleItem normal()
Returns aNkStyleItem
view of thenormal
field.
-
hover
public NkStyleItem hover()
Returns aNkStyleItem
view of thehover
field.
-
active
public NkStyleItem active()
Returns aNkStyleItem
view of theactive
field.
-
scrollbar
public NkStyleScrollbar scrollbar()
Returns aNkStyleScrollbar
view of thescrollbar
field.
-
cursor_text_normal
public NkColor cursor_text_normal()
Returns aNkColor
view of thecursor_text_normal
field.
-
cursor_text_hover
public NkColor cursor_text_hover()
Returns aNkColor
view of thecursor_text_hover
field.
-
selected_normal
public NkColor selected_normal()
Returns aNkColor
view of theselected_normal
field.
-
selected_text_normal
public NkColor selected_text_normal()
Returns aNkColor
view of theselected_text_normal
field.
-
selected_text_hover
public NkColor selected_text_hover()
Returns aNkColor
view of theselected_text_hover
field.
-
border
public float border()
Returns the value of theborder
field.
-
rounding
public float rounding()
Returns the value of therounding
field.
-
cursor_size
public float cursor_size()
Returns the value of thecursor_size
field.
-
row_padding
public float row_padding()
Returns the value of therow_padding
field.
-
normal
public NkStyleEdit normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal
field.
-
normal
public NkStyleEdit normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal
field to the specifiedConsumer
.
-
hover
public NkStyleEdit hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover
field.
-
hover
public NkStyleEdit hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover
field to the specifiedConsumer
.
-
active
public NkStyleEdit active(NkStyleItem value)
Copies the specifiedNkStyleItem
to theactive
field.
-
active
public NkStyleEdit active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactive
field to the specifiedConsumer
.
-
border_color
public NkStyleEdit border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.
-
border_color
public NkStyleEdit border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.
-
scrollbar
public NkStyleEdit scrollbar(NkStyleScrollbar value)
Copies the specifiedNkStyleScrollbar
to thescrollbar
field.
-
scrollbar
public NkStyleEdit scrollbar(java.util.function.Consumer<NkStyleScrollbar> consumer)
Passes thescrollbar
field to the specifiedConsumer
.
-
cursor_normal
public NkStyleEdit cursor_normal(NkColor value)
Copies the specifiedNkColor
to thecursor_normal
field.
-
cursor_normal
public NkStyleEdit cursor_normal(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_normal
field to the specifiedConsumer
.
-
cursor_hover
public NkStyleEdit cursor_hover(NkColor value)
Copies the specifiedNkColor
to thecursor_hover
field.
-
cursor_hover
public NkStyleEdit cursor_hover(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_hover
field to the specifiedConsumer
.
-
cursor_text_normal
public NkStyleEdit cursor_text_normal(NkColor value)
Copies the specifiedNkColor
to thecursor_text_normal
field.
-
cursor_text_normal
public NkStyleEdit cursor_text_normal(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_text_normal
field to the specifiedConsumer
.
-
cursor_text_hover
public NkStyleEdit cursor_text_hover(NkColor value)
Copies the specifiedNkColor
to thecursor_text_hover
field.
-
cursor_text_hover
public NkStyleEdit cursor_text_hover(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_text_hover
field to the specifiedConsumer
.
-
text_normal
public NkStyleEdit text_normal(NkColor value)
Copies the specifiedNkColor
to thetext_normal
field.
-
text_normal
public NkStyleEdit text_normal(java.util.function.Consumer<NkColor> consumer)
Passes thetext_normal
field to the specifiedConsumer
.
-
text_hover
public NkStyleEdit text_hover(NkColor value)
Copies the specifiedNkColor
to thetext_hover
field.
-
text_hover
public NkStyleEdit text_hover(java.util.function.Consumer<NkColor> consumer)
Passes thetext_hover
field to the specifiedConsumer
.
-
text_active
public NkStyleEdit text_active(NkColor value)
Copies the specifiedNkColor
to thetext_active
field.
-
text_active
public NkStyleEdit text_active(java.util.function.Consumer<NkColor> consumer)
Passes thetext_active
field to the specifiedConsumer
.
-
selected_normal
public NkStyleEdit selected_normal(NkColor value)
Copies the specifiedNkColor
to theselected_normal
field.
-
selected_normal
public NkStyleEdit selected_normal(java.util.function.Consumer<NkColor> consumer)
Passes theselected_normal
field to the specifiedConsumer
.
-
selected_hover
public NkStyleEdit selected_hover(NkColor value)
Copies the specifiedNkColor
to theselected_hover
field.
-
selected_hover
public NkStyleEdit selected_hover(java.util.function.Consumer<NkColor> consumer)
Passes theselected_hover
field to the specifiedConsumer
.
-
selected_text_normal
public NkStyleEdit selected_text_normal(NkColor value)
Copies the specifiedNkColor
to theselected_text_normal
field.
-
selected_text_normal
public NkStyleEdit selected_text_normal(java.util.function.Consumer<NkColor> consumer)
Passes theselected_text_normal
field to the specifiedConsumer
.
-
selected_text_hover
public NkStyleEdit selected_text_hover(NkColor value)
Copies the specifiedNkColor
to theselected_text_hover
field.
-
selected_text_hover
public NkStyleEdit selected_text_hover(java.util.function.Consumer<NkColor> consumer)
Passes theselected_text_hover
field to the specifiedConsumer
.
-
border
public NkStyleEdit border(float value)
Sets the specified value to theborder
field.
-
rounding
public NkStyleEdit rounding(float value)
Sets the specified value to therounding
field.
-
cursor_size
public NkStyleEdit cursor_size(float value)
Sets the specified value to thecursor_size
field.
-
scrollbar_size
public NkStyleEdit scrollbar_size(NkVec2 value)
Copies the specifiedNkVec2
to thescrollbar_size
field.
-
scrollbar_size
public NkStyleEdit scrollbar_size(java.util.function.Consumer<NkVec2> consumer)
Passes thescrollbar_size
field to the specifiedConsumer
.
-
padding
public NkStyleEdit padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.
-
padding
public NkStyleEdit padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.
-
row_padding
public NkStyleEdit row_padding(float value)
Sets the specified value to therow_padding
field.
-
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 newNkStyleEdit
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static NkStyleEdit calloc()
Returns a newNkStyleEdit
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static NkStyleEdit create()
Returns a newNkStyleEdit
instance allocated withBufferUtils
.
-
create
public static NkStyleEdit create(long address)
Returns a newNkStyleEdit
instance for the specified memory address.
-
createSafe
@Nullable public static NkStyleEdit createSafe(long address)
-
malloc
public static NkStyleEdit.Buffer malloc(int capacity)
Returns a newNkStyleEdit.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static NkStyleEdit.Buffer calloc(int capacity)
Returns a newNkStyleEdit.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static NkStyleEdit.Buffer create(int capacity)
Returns a newNkStyleEdit.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static NkStyleEdit.Buffer create(long address, int capacity)
Create aNkStyleEdit.Buffer
instance 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 newNkStyleEdit
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static NkStyleEdit callocStack()
Returns a newNkStyleEdit
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static NkStyleEdit mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleEdit
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static NkStyleEdit callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleEdit
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static NkStyleEdit.Buffer callocStack(int capacity)
Returns a newNkStyleEdit.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-