Package org.lwjgl.nuklear
Class NkStyleChart
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<NkStyleChart>
org.lwjgl.nuklear.NkStyleChart
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class NkStyleChart
extends org.lwjgl.system.Struct<NkStyleChart>
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 ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionNkStyleChart(ByteBuffer container) Creates aNkStyleChartinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbackground(Consumer<NkStyleItem> consumer) Passes thebackgroundfield to the specifiedConsumer.background(NkStyleItem value) Copies the specifiedNkStyleItemto thebackgroundfield.floatborder()border(float value) Sets the specified value to theborderfield.border_color(Consumer<NkColor> consumer) Passes theborder_colorfield to the specifiedConsumer.border_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 NkStyleChartDeprecated.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.color()Passes thecolorfield to the specifiedConsumer.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 NkStyleChartDeprecated.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 voidUnsafe version ofcolor.static NkVec2npadding(long struct) Unsafe version ofpadding().static voidUnsafe 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.padding()Passes thepaddingfield to the specifiedConsumer.Copies the specifiedNkVec2to thepaddingfield.floatrounding()rounding(float value) Sets the specified value to theroundingfield.selected_color(Consumer<NkColor> consumer) Passes theselected_colorfield to the specifiedConsumer.selected_color(NkColor value) Copies the specifiedNkColorto theselected_colorfield.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.intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<NkStyleChart>
-
background
- Returns:
- a
NkStyleItemview of thebackgroundfield.
-
border_color
- Returns:
- a
NkColorview of theborder_colorfield.
-
selected_color
- Returns:
- a
NkColorview of theselected_colorfield.
-
color
- Returns:
- a
NkColorview of thecolorfield.
-
border
public float border()- Returns:
- the value of the
borderfield.
-
rounding
public float rounding()- Returns:
- the value of the
roundingfield.
-
padding
- Returns:
- a
NkVec2view of thepaddingfield.
-
background
Copies the specifiedNkStyleItemto thebackgroundfield. -
background
Passes thebackgroundfield to the specifiedConsumer. -
border_color
Copies the specifiedNkColorto theborder_colorfield. -
border_color
Passes theborder_colorfield to the specifiedConsumer. -
selected_color
Copies the specifiedNkColorto theselected_colorfield. -
selected_color
Passes theselected_colorfield to the specifiedConsumer. -
color
Copies the specifiedNkColorto thecolorfield. -
color
Passes thecolorfield to the specifiedConsumer. -
border
Sets the specified value to theborderfield. -
rounding
Sets the specified value to theroundingfield. -
padding
Copies the specifiedNkVec2to thepaddingfield. -
padding
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
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newNkStyleChartinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newNkStyleChartinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newNkStyleChartinstance allocated withBufferUtils. -
create
Returns a newNkStyleChartinstance for the specified memory address. -
createSafe
-
malloc
Returns a newNkStyleChart.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newNkStyleChart.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newNkStyleChart.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aNkStyleChart.Bufferinstance 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 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
Returns a newNkStyleChartinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newNkStyleChartinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newNkStyleChart.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newNkStyleChart.Bufferinstance allocated on the specifiedMemoryStackand 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.
-