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.NativeResourceLayout
struct nk_style_chart {struct nk_style_itembackground;struct nk_colorborder_color;struct nk_colorselected_color;struct nk_colorcolor; float border; float rounding;struct nk_vec2padding; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkStyleChart.BufferAn array ofNkStyleChartstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBACKGROUND
BORDER
BORDER_COLOR
COLOR
PADDING
ROUNDING
SELECTED_COLORThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description NkStyleChart(java.nio.ByteBuffer container)Creates aNkStyleChartinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItembackground()Returns aNkStyleItemview of thebackgroundfield.NkStyleChartbackground(java.util.function.Consumer<NkStyleItem> consumer)Passes thebackgroundfield to the specifiedConsumer.NkStyleChartbackground(NkStyleItem value)Copies the specifiedNkStyleItemto thebackgroundfield.floatborder()Returns the value of theborderfield.NkStyleChartborder(float value)Sets the specified value to theborderfield.NkColorborder_color()Returns aNkColorview of theborder_colorfield.NkStyleChartborder_color(java.util.function.Consumer<NkColor> consumer)Passes theborder_colorfield to the specifiedConsumer.NkStyleChartborder_color(NkColor value)Copies the specifiedNkColorto theborder_colorfield.static NkStyleChartcalloc()Returns a newNkStyleChartinstance allocated withmemCalloc.static NkStyleChart.Buffercalloc(int capacity)Returns a newNkStyleChart.Bufferinstance allocated withmemCalloc.static NkStyleChartcallocStack()Returns a newNkStyleChartinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NkStyleChart.BuffercallocStack(int capacity)Returns a newNkStyleChart.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NkStyleChart.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkStyleChart.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkStyleChartcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNkStyleChartinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.NkColorcolor()Returns aNkColorview of thecolorfield.NkStyleChartcolor(java.util.function.Consumer<NkColor> consumer)Passes thecolorfield to the specifiedConsumer.NkStyleChartcolor(NkColor value)Copies the specifiedNkColorto thecolorfield.static NkStyleChartcreate()Returns a newNkStyleChartinstance allocated withBufferUtils.static NkStyleChart.Buffercreate(int capacity)Returns a newNkStyleChart.Bufferinstance allocated withBufferUtils.static NkStyleChartcreate(long address)Returns a newNkStyleChartinstance for the specified memory address.static NkStyleChart.Buffercreate(long address, int capacity)Create aNkStyleChart.Bufferinstance at the specified memory.static NkStyleChartcreateSafe(long address)static NkStyleChart.BuffercreateSafe(long address, int capacity)static NkStyleChartmalloc()Returns a newNkStyleChartinstance allocated withmemAlloc.static NkStyleChart.Buffermalloc(int capacity)Returns a newNkStyleChart.Bufferinstance allocated withmemAlloc.static NkStyleChartmallocStack()Returns a newNkStyleChartinstance allocated on the thread-localMemoryStack.static NkStyleChart.BuffermallocStack(int capacity)Returns a newNkStyleChart.Bufferinstance allocated on the thread-localMemoryStack.static NkStyleChart.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkStyleChart.Bufferinstance allocated on the specifiedMemoryStack.static NkStyleChartmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNkStyleChartinstance allocated on the specifiedMemoryStack.static NkStyleItemnbackground(long struct)Unsafe version ofbackground().static voidnbackground(long struct, NkStyleItem value)Unsafe version ofbackground.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 NkColorncolor(long struct)Unsafe version ofcolor().static voidncolor(long struct, NkColor value)Unsafe version ofcolor.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 NkColornselected_color(long struct)Unsafe version ofselected_color().static voidnselected_color(long struct, NkColor value)Unsafe version ofselected_color.NkVec2padding()Returns aNkVec2view of thepaddingfield.NkStyleChartpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleChartpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.floatrounding()Returns the value of theroundingfield.NkStyleChartrounding(float value)Sets the specified value to theroundingfield.NkColorselected_color()Returns aNkColorview of theselected_colorfield.NkStyleChartselected_color(java.util.function.Consumer<NkColor> consumer)Passes theselected_colorfield to the specifiedConsumer.NkStyleChartselected_color(NkColor value)Copies the specifiedNkColorto theselected_colorfield.NkStyleChartset(NkStyleChart src)Copies the specified struct data to this struct.NkStyleChartset(NkStyleItem background, NkColor border_color, NkColor selected_color, NkColor color, float border, float rounding, NkVec2 padding)Initializes this struct with the specified values.intsizeof()
-
-
-
Constructor Detail
-
NkStyleChart
public NkStyleChart(java.nio.ByteBuffer container)
Creates aNkStyleChartinstance 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
-
background
public NkStyleItem background()
Returns aNkStyleItemview of thebackgroundfield.
-
background
public NkStyleChart background(java.util.function.Consumer<NkStyleItem> consumer)
Passes thebackgroundfield to the specifiedConsumer.
-
border_color
public NkStyleChart border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_colorfield to the specifiedConsumer.
-
selected_color
public NkStyleChart selected_color(java.util.function.Consumer<NkColor> consumer)
Passes theselected_colorfield to the specifiedConsumer.
-
color
public NkStyleChart color(java.util.function.Consumer<NkColor> consumer)
Passes thecolorfield to the specifiedConsumer.
-
border
public float border()
Returns the value of theborderfield.
-
rounding
public float rounding()
Returns the value of theroundingfield.
-
padding
public NkStyleChart padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
background
public NkStyleChart background(NkStyleItem value)
Copies the specifiedNkStyleItemto thebackgroundfield.
-
border_color
public NkStyleChart border_color(NkColor value)
Copies the specifiedNkColorto theborder_colorfield.
-
selected_color
public NkStyleChart selected_color(NkColor value)
Copies the specifiedNkColorto theselected_colorfield.
-
color
public NkStyleChart color(NkColor value)
Copies the specifiedNkColorto thecolorfield.
-
border
public NkStyleChart border(float value)
Sets the specified value to theborderfield.
-
rounding
public NkStyleChart rounding(float value)
Sets the specified value to theroundingfield.
-
padding
public NkStyleChart padding(NkVec2 value)
Copies the specifiedNkVec2to thepaddingfield.
-
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 newNkStyleChartinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static NkStyleChart calloc()
Returns a newNkStyleChartinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static NkStyleChart create()
Returns a newNkStyleChartinstance allocated withBufferUtils.
-
create
public static NkStyleChart create(long address)
Returns a newNkStyleChartinstance for the specified memory address.
-
createSafe
@Nullable public static NkStyleChart createSafe(long address)
-
malloc
public static NkStyleChart.Buffer malloc(int capacity)
Returns a newNkStyleChart.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static NkStyleChart.Buffer calloc(int capacity)
Returns a newNkStyleChart.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static NkStyleChart.Buffer create(int capacity)
Returns a newNkStyleChart.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static NkStyleChart.Buffer create(long address, int capacity)
Create aNkStyleChart.Bufferinstance 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 newNkStyleChartinstance allocated on the thread-localMemoryStack.
-
callocStack
public static NkStyleChart callocStack()
Returns a newNkStyleChartinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static NkStyleChart mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleChartinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static NkStyleChart callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleChartinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static NkStyleChart.Buffer callocStack(int capacity)
Returns a newNkStyleChart.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-