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 Deprecated Methods Modifier and Type Method Description NkStyleItembackground()NkStyleChartbackground(java.util.function.Consumer<NkStyleItem> consumer)Passes thebackgroundfield to the specifiedConsumer.NkStyleChartbackground(NkStyleItem value)Copies the specifiedNkStyleItemto thebackgroundfield.floatborder()NkStyleChartborder(float value)Sets the specified value to theborderfield.NkColorborder_color()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 NkStyleChart.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkStyleChart.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkStyleChartcalloc(org.lwjgl.system.MemoryStack stack)Returns a newNkStyleChartinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkStyleChartcallocStack()Deprecated.static NkStyleChart.BuffercallocStack(int capacity)Deprecated.static NkStyleChart.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static NkStyleChartcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.NkColorcolor()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 NkStyleChart.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkStyleChart.Bufferinstance allocated on the specifiedMemoryStack.static NkStyleChartmalloc(org.lwjgl.system.MemoryStack stack)Returns a newNkStyleChartinstance allocated on the specifiedMemoryStack.static NkStyleChartmallocStack()Deprecated.static NkStyleChart.BuffermallocStack(int capacity)Deprecated.static NkStyleChart.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static NkStyleChartmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()NkStyleChartpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleChartpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.floatrounding()NkStyleChartrounding(float value)Sets the specified value to theroundingfield.NkColorselected_color()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:
- a
NkStyleItemview of thebackgroundfield.
-
border
public float border()
- Returns:
- the value of the
borderfield.
-
rounding
public float rounding()
- Returns:
- the value of the
roundingfield.
-
background
public NkStyleChart background(NkStyleItem value)
Copies the specifiedNkStyleItemto thebackgroundfield.
-
background
public NkStyleChart background(java.util.function.Consumer<NkStyleItem> consumer)
Passes thebackgroundfield to the specifiedConsumer.
-
border_color
public NkStyleChart border_color(NkColor value)
Copies the specifiedNkColorto theborder_colorfield.
-
border_color
public NkStyleChart border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_colorfield to the specifiedConsumer.
-
selected_color
public NkStyleChart selected_color(NkColor value)
Copies the specifiedNkColorto theselected_colorfield.
-
selected_color
public NkStyleChart selected_color(java.util.function.Consumer<NkColor> consumer)
Passes theselected_colorfield to the specifiedConsumer.
-
color
public NkStyleChart color(NkColor value)
Copies the specifiedNkColorto thecolorfield.
-
color
public NkStyleChart color(java.util.function.Consumer<NkColor> consumer)
Passes thecolorfield to the specifiedConsumer.
-
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.
-
padding
public NkStyleChart padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield 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 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
@Deprecated public static NkStyleChart mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static NkStyleChart callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static NkStyleChart mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static NkStyleChart callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static NkStyleChart.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static NkStyleChart.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static NkStyleChart.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static NkStyleChart.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static NkStyleChart malloc(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleChartinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static NkStyleChart calloc(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
-
malloc
public static NkStyleChart.Buffer malloc(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
-
calloc
public static NkStyleChart.Buffer calloc(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.
-
-