Package org.lwjgl.nuklear
Class NkStyleChart
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct nk_style_chart {
{@link NkStyleItem struct nk_style_item} background;
{@link NkColor struct nk_color} border_color;
{@link NkColor struct nk_color} selected_color;
{@link NkColor struct nk_color} color;
float border;
float rounding;
{@link NkVec2 struct nk_vec2} padding;
float color_factor;
float disabled_factor;
nk_bool show_markers;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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 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, MemoryStack stack) Returns a newNkStyleChart.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkStyleChartcalloc(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, MemoryStack stack) Deprecated.static NkStyleChartcallocStack(MemoryStack stack) Deprecated.color()Passes thecolorfield to the specifiedConsumer.Copies the specifiedNkColorto thecolorfield.floatcolor_factor(float value) Sets the specified value to thecolor_factorfield.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 @Nullable NkStyleChartcreateSafe(long address) static @Nullable NkStyleChart.BuffercreateSafe(long address, int capacity) floatdisabled_factor(float value) Sets the specified value to thedisabled_factorfield.static NkStyleChartmalloc()Returns a newNkStyleChartinstance allocated withmemAlloc.static NkStyleChart.Buffermalloc(int capacity) Returns a newNkStyleChart.Bufferinstance allocated withmemAlloc.static NkStyleChart.Buffermalloc(int capacity, MemoryStack stack) Returns a newNkStyleChart.Bufferinstance allocated on the specifiedMemoryStack.static NkStyleChartmalloc(MemoryStack stack) Returns a newNkStyleChartinstance allocated on the specifiedMemoryStack.static NkStyleChartDeprecated.static NkStyleChart.BuffermallocStack(int capacity) Deprecated.static NkStyleChart.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static NkStyleChartmallocStack(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 floatncolor_factor(long struct) Unsafe version ofcolor_factor().static voidncolor_factor(long struct, float value) Unsafe version ofcolor_factor.static floatndisabled_factor(long struct) Unsafe version ofdisabled_factor().static voidndisabled_factor(long struct, float value) Unsafe version ofdisabled_factor.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.static booleannshow_markers(long struct) Unsafe version ofshow_markers().static voidnshow_markers(long struct, boolean value) Unsafe version ofshow_markers.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, float color_factor, float disabled_factor, boolean show_markers) Initializes this struct with the specified values.booleanshow_markers(boolean value) Sets the specified value to theshow_markersfield.intsizeof()Returnssizeof(struct).Methods 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. -
COLOR_FACTOR
public static final int COLOR_FACTORThe struct member offsets. -
DISABLED_FACTOR
public static final int DISABLED_FACTORThe struct member offsets. -
SHOW_MARKERS
public static final int SHOW_MARKERSThe 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<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.
-
color_factor
public float color_factor()- Returns:
- the value of the
color_factorfield.
-
disabled_factor
public float disabled_factor()- Returns:
- the value of the
disabled_factorfield.
-
show_markers
public boolean show_markers()- Returns:
- the value of the
show_markersfield.
-
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. -
color_factor
Sets the specified value to thecolor_factorfield. -
disabled_factor
Sets the specified value to thedisabled_factorfield. -
show_markers
Sets the specified value to theshow_markersfield. -
set
public NkStyleChart set(NkStyleItem background, NkColor border_color, NkColor selected_color, NkColor color, float border, float rounding, NkVec2 padding, float color_factor, float disabled_factor, boolean show_markers) 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.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 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(). -
ncolor_factor
public static float ncolor_factor(long struct) Unsafe version ofcolor_factor(). -
ndisabled_factor
public static float ndisabled_factor(long struct) Unsafe version ofdisabled_factor(). -
nshow_markers
public static boolean nshow_markers(long struct) Unsafe version ofshow_markers(). -
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. -
ncolor_factor
public static void ncolor_factor(long struct, float value) Unsafe version ofcolor_factor. -
ndisabled_factor
public static void ndisabled_factor(long struct, float value) Unsafe version ofdisabled_factor. -
nshow_markers
public static void nshow_markers(long struct, boolean value) Unsafe version ofshow_markers.
-