Package org.lwjgl.nuklear
Class NkStyleChart
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Layout
struct nk_style_chart {
struct nk_style_item
background;
struct nk_color
border_color;
struct nk_color
selected_color;
struct nk_color
color;
float border;
float rounding;
struct nk_vec2
padding;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionNkStyleChart
(ByteBuffer container) Creates aNkStyleChart
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionbackground
(Consumer<NkStyleItem> consumer) Passes thebackground
field to the specifiedConsumer
.background
(NkStyleItem value) Copies the specifiedNkStyleItem
to thebackground
field.float
border()
border
(float value) Sets the specified value to theborder
field.border_color
(Consumer<NkColor> consumer) Passes theborder_color
field to the specifiedConsumer
.border_color
(NkColor value) Copies the specifiedNkColor
to theborder_color
field.static NkStyleChart
calloc()
Returns a newNkStyleChart
instance allocated withmemCalloc
.static NkStyleChart.Buffer
calloc
(int capacity) Returns a newNkStyleChart.Buffer
instance allocated withmemCalloc
.static NkStyleChart.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newNkStyleChart.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkStyleChart
calloc
(MemoryStack stack) Returns a newNkStyleChart
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkStyleChart
Deprecated.static NkStyleChart.Buffer
callocStack
(int capacity) Deprecated.static NkStyleChart.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static NkStyleChart
callocStack
(MemoryStack stack) Deprecated.color()
Passes thecolor
field to the specifiedConsumer
.Copies the specifiedNkColor
to thecolor
field.static NkStyleChart
create()
Returns a newNkStyleChart
instance allocated withBufferUtils
.static NkStyleChart.Buffer
create
(int capacity) Returns a newNkStyleChart.Buffer
instance allocated withBufferUtils
.static NkStyleChart
create
(long address) Returns a newNkStyleChart
instance for the specified memory address.static NkStyleChart.Buffer
create
(long address, int capacity) Create aNkStyleChart.Buffer
instance at the specified memory.static NkStyleChart
createSafe
(long address) static NkStyleChart.Buffer
createSafe
(long address, int capacity) static NkStyleChart
malloc()
Returns a newNkStyleChart
instance allocated withmemAlloc
.static NkStyleChart.Buffer
malloc
(int capacity) Returns a newNkStyleChart.Buffer
instance allocated withmemAlloc
.static NkStyleChart.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newNkStyleChart.Buffer
instance allocated on the specifiedMemoryStack
.static NkStyleChart
malloc
(MemoryStack stack) Returns a newNkStyleChart
instance allocated on the specifiedMemoryStack
.static NkStyleChart
Deprecated.static NkStyleChart.Buffer
mallocStack
(int capacity) Deprecated.static NkStyleChart.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static NkStyleChart
mallocStack
(MemoryStack stack) Deprecated.static NkStyleItem
nbackground
(long struct) Unsafe version ofbackground()
.static void
nbackground
(long struct, NkStyleItem value) Unsafe version ofbackground
.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
ncolor
(long struct) Unsafe version ofcolor()
.static void
Unsafe version ofcolor
.static NkVec2
npadding
(long struct) Unsafe version ofpadding()
.static void
Unsafe version ofpadding
.static float
nrounding
(long struct) Unsafe version ofrounding()
.static void
nrounding
(long struct, float value) Unsafe version ofrounding
.static NkColor
nselected_color
(long struct) Unsafe version ofselected_color()
.static void
nselected_color
(long struct, NkColor value) Unsafe version ofselected_color
.padding()
Passes thepadding
field to the specifiedConsumer
.Copies the specifiedNkVec2
to thepadding
field.float
rounding()
rounding
(float value) Sets the specified value to therounding
field.selected_color
(Consumer<NkColor> consumer) Passes theselected_color
field to the specifiedConsumer
.selected_color
(NkColor value) Copies the specifiedNkColor
to theselected_color
field.set
(NkStyleChart src) Copies the specified struct data to this struct.set
(NkStyleItem background, NkColor border_color, NkColor selected_color, NkColor color, float border, float rounding, NkVec2 padding) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
BACKGROUND
public static final int BACKGROUNDThe struct member offsets. -
BORDER_COLOR
public static final int BORDER_COLORThe struct member offsets. -
SELECTED_COLOR
public static final int SELECTED_COLORThe struct member offsets. -
COLOR
public static final int COLORThe struct member offsets. -
BORDER
public static final int BORDERThe struct member offsets. -
ROUNDING
public static final int ROUNDINGThe struct member offsets. -
PADDING
public static final int PADDINGThe struct member offsets.
-
-
Constructor Details
-
NkStyleChart
Creates aNkStyleChart
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<NkStyleChart>
-
background
- Returns:
- a
NkStyleItem
view of thebackground
field.
-
border_color
- Returns:
- a
NkColor
view of theborder_color
field.
-
selected_color
- Returns:
- a
NkColor
view of theselected_color
field.
-
color
- Returns:
- a
NkColor
view of thecolor
field.
-
border
public float border()- Returns:
- the value of the
border
field.
-
rounding
public float rounding()- Returns:
- the value of the
rounding
field.
-
padding
- Returns:
- a
NkVec2
view of thepadding
field.
-
background
Copies the specifiedNkStyleItem
to thebackground
field. -
background
Passes thebackground
field to the specifiedConsumer
. -
border_color
Copies the specifiedNkColor
to theborder_color
field. -
border_color
Passes theborder_color
field to the specifiedConsumer
. -
selected_color
Copies the specifiedNkColor
to theselected_color
field. -
selected_color
Passes theselected_color
field to the specifiedConsumer
. -
color
Copies the specifiedNkColor
to thecolor
field. -
color
Passes thecolor
field to the specifiedConsumer
. -
border
Sets the specified value to theborder
field. -
rounding
Sets the specified value to therounding
field. -
padding
Copies the specifiedNkVec2
to thepadding
field. -
padding
Passes thepadding
field to the specifiedConsumer
. -
set
public NkStyleChart set(NkStyleItem background, NkColor border_color, NkColor selected_color, NkColor color, float border, float rounding, NkVec2 padding) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newNkStyleChart
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newNkStyleChart
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newNkStyleChart
instance allocated withBufferUtils
. -
create
Returns a newNkStyleChart
instance for the specified memory address. -
createSafe
-
malloc
Returns a newNkStyleChart.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newNkStyleChart.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newNkStyleChart.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aNkStyleChart.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newNkStyleChart
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newNkStyleChart
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newNkStyleChart.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newNkStyleChart.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nbackground
Unsafe version ofbackground()
. -
nborder_color
Unsafe version ofborder_color()
. -
nselected_color
Unsafe version ofselected_color()
. -
ncolor
Unsafe version ofcolor()
. -
nborder
public static float nborder(long struct) Unsafe version ofborder()
. -
nrounding
public static float nrounding(long struct) Unsafe version ofrounding()
. -
npadding
Unsafe version ofpadding()
. -
nbackground
Unsafe version ofbackground
. -
nborder_color
Unsafe version ofborder_color
. -
nselected_color
Unsafe version ofselected_color
. -
ncolor
Unsafe version ofcolor
. -
nborder
public static void nborder(long struct, float value) Unsafe version ofborder
. -
nrounding
public static void nrounding(long struct, float value) Unsafe version ofrounding
. -
npadding
Unsafe version ofpadding
.
-