Package org.lwjgl.nuklear
Class NkStyleChart
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkStyleChart
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class NkStyleChart extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
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 Modifier and Type Class Description static class
NkStyleChart.Buffer
An array ofNkStyleChart
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
BACKGROUND
BORDER
BORDER_COLOR
COLOR
PADDING
ROUNDING
SELECTED_COLORThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description NkStyleChart(java.nio.ByteBuffer container)
Creates aNkStyleChart
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
background()
Returns aNkStyleItem
view of thebackground
field.NkStyleChart
background(java.util.function.Consumer<NkStyleItem> consumer)
Passes thebackground
field to the specifiedConsumer
.NkStyleChart
background(NkStyleItem value)
Copies the specifiedNkStyleItem
to thebackground
field.float
border()
Returns the value of theborder
field.NkStyleChart
border(float value)
Sets the specified value to theborder
field.NkColor
border_color()
Returns aNkColor
view of theborder_color
field.NkStyleChart
border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.NkStyleChart
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
callocStack()
Returns a newNkStyleChart
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static NkStyleChart.Buffer
callocStack(int capacity)
Returns a newNkStyleChart.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static NkStyleChart.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleChart.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkStyleChart
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleChart
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.NkColor
color()
Returns aNkColor
view of thecolor
field.NkStyleChart
color(java.util.function.Consumer<NkColor> consumer)
Passes thecolor
field to the specifiedConsumer
.NkStyleChart
color(NkColor value)
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
mallocStack()
Returns a newNkStyleChart
instance allocated on the thread-localMemoryStack
.static NkStyleChart.Buffer
mallocStack(int capacity)
Returns a newNkStyleChart.Buffer
instance allocated on the thread-localMemoryStack
.static NkStyleChart.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleChart.Buffer
instance allocated on the specifiedMemoryStack
.static NkStyleChart
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleChart
instance allocated on the specifiedMemoryStack
.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
ncolor(long struct, NkColor value)
Unsafe version ofcolor
.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 NkColor
nselected_color(long struct)
Unsafe version ofselected_color()
.static void
nselected_color(long struct, NkColor value)
Unsafe version ofselected_color
.NkVec2
padding()
Returns aNkVec2
view of thepadding
field.NkStyleChart
padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.NkStyleChart
padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.float
rounding()
Returns the value of therounding
field.NkStyleChart
rounding(float value)
Sets the specified value to therounding
field.NkColor
selected_color()
Returns aNkColor
view of theselected_color
field.NkStyleChart
selected_color(java.util.function.Consumer<NkColor> consumer)
Passes theselected_color
field to the specifiedConsumer
.NkStyleChart
selected_color(NkColor value)
Copies the specifiedNkColor
to theselected_color
field.NkStyleChart
set(NkStyleChart src)
Copies the specified struct data to this struct.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.int
sizeof()
-
-
-
Constructor Detail
-
NkStyleChart
public NkStyleChart(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
background
public NkStyleItem background()
Returns aNkStyleItem
view of thebackground
field.
-
border
public float border()
Returns the value of theborder
field.
-
rounding
public float rounding()
Returns the value of therounding
field.
-
background
public NkStyleChart background(NkStyleItem value)
Copies the specifiedNkStyleItem
to thebackground
field.
-
background
public NkStyleChart background(java.util.function.Consumer<NkStyleItem> consumer)
Passes thebackground
field to the specifiedConsumer
.
-
border_color
public NkStyleChart border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.
-
border_color
public NkStyleChart border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.
-
selected_color
public NkStyleChart selected_color(NkColor value)
Copies the specifiedNkColor
to theselected_color
field.
-
selected_color
public NkStyleChart selected_color(java.util.function.Consumer<NkColor> consumer)
Passes theselected_color
field to the specifiedConsumer
.
-
color
public NkStyleChart color(NkColor value)
Copies the specifiedNkColor
to thecolor
field.
-
color
public NkStyleChart color(java.util.function.Consumer<NkColor> consumer)
Passes thecolor
field to the specifiedConsumer
.
-
border
public NkStyleChart border(float value)
Sets the specified value to theborder
field.
-
rounding
public NkStyleChart rounding(float value)
Sets the specified value to therounding
field.
-
padding
public NkStyleChart padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.
-
padding
public NkStyleChart padding(java.util.function.Consumer<NkVec2> consumer)
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
public NkStyleChart set(NkStyleChart src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static NkStyleChart malloc()
Returns a newNkStyleChart
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static NkStyleChart calloc()
Returns a newNkStyleChart
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static NkStyleChart create()
Returns a newNkStyleChart
instance allocated withBufferUtils
.
-
create
public static NkStyleChart create(long address)
Returns a newNkStyleChart
instance for the specified memory address.
-
createSafe
@Nullable public static NkStyleChart createSafe(long address)
-
malloc
public static NkStyleChart.Buffer malloc(int capacity)
Returns a newNkStyleChart.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static NkStyleChart.Buffer calloc(int capacity)
Returns a newNkStyleChart.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static NkStyleChart.Buffer create(int capacity)
Returns a newNkStyleChart.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static NkStyleChart.Buffer create(long address, int capacity)
Create aNkStyleChart.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static NkStyleChart.Buffer createSafe(long address, int capacity)
-
mallocStack
public static NkStyleChart mallocStack()
Returns a newNkStyleChart
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static NkStyleChart callocStack()
Returns a newNkStyleChart
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static NkStyleChart mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleChart
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static NkStyleChart callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleChart
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static NkStyleChart.Buffer mallocStack(int capacity)
Returns a newNkStyleChart.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static NkStyleChart.Buffer callocStack(int capacity)
Returns a newNkStyleChart.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static NkStyleChart.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleChart.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static NkStyleChart.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleChart.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nbackground
public static NkStyleItem nbackground(long struct)
Unsafe version ofbackground()
.
-
nborder_color
public static NkColor nborder_color(long struct)
Unsafe version ofborder_color()
.
-
nselected_color
public static NkColor nselected_color(long struct)
Unsafe version ofselected_color()
.
-
nborder
public static float nborder(long struct)
Unsafe version ofborder()
.
-
nrounding
public static float nrounding(long struct)
Unsafe version ofrounding()
.
-
nbackground
public static void nbackground(long struct, NkStyleItem value)
Unsafe version ofbackground
.
-
nborder_color
public static void nborder_color(long struct, NkColor value)
Unsafe version ofborder_color
.
-
nselected_color
public static void nselected_color(long struct, NkColor value)
Unsafe version ofselected_color
.
-
nborder
public static void nborder(long struct, float value)
Unsafe version ofborder
.
-
nrounding
public static void nrounding(long struct, float value)
Unsafe version ofrounding
.
-
-