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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The 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 aNkStyleChart
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionbackground
(Consumer<NkStyleItem> consumer) Passes thebackground
field to the specifiedConsumer
.background
(NkStyleItem value) Copies the specifiedNkStyleItem
to thebackground
field.float
border()
border
(float value) Sets the specified value to theborder
field.border_color
(Consumer<NkColor> consumer) Passes theborder_color
field to the specifiedConsumer
.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.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newNkStyleChart.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkStyleChart
calloc
(MemoryStack stack) Returns a newNkStyleChart
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkStyleChart
Deprecated.static NkStyleChart.Buffer
callocStack
(int capacity) Deprecated.static NkStyleChart.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static NkStyleChart
callocStack
(MemoryStack stack) Deprecated.color()
Passes thecolor
field to the specifiedConsumer
.Copies the specifiedNkColor
to thecolor
field.float
color_factor
(float value) Sets the specified value to thecolor_factor
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 @Nullable NkStyleChart
createSafe
(long address) static @Nullable NkStyleChart.Buffer
createSafe
(long address, int capacity) float
disabled_factor
(float value) Sets the specified value to thedisabled_factor
field.static NkStyleChart
malloc()
Returns a newNkStyleChart
instance allocated withmemAlloc
.static NkStyleChart.Buffer
malloc
(int capacity) Returns a newNkStyleChart.Buffer
instance allocated withmemAlloc
.static NkStyleChart.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newNkStyleChart.Buffer
instance allocated on the specifiedMemoryStack
.static NkStyleChart
malloc
(MemoryStack stack) Returns a newNkStyleChart
instance allocated on the specifiedMemoryStack
.static NkStyleChart
Deprecated.static NkStyleChart.Buffer
mallocStack
(int capacity) Deprecated.static NkStyleChart.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static NkStyleChart
mallocStack
(MemoryStack stack) Deprecated.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
Unsafe version ofcolor
.static float
ncolor_factor
(long struct) Unsafe version ofcolor_factor()
.static void
ncolor_factor
(long struct, float value) Unsafe version ofcolor_factor
.static float
ndisabled_factor
(long struct) Unsafe version ofdisabled_factor()
.static void
ndisabled_factor
(long struct, float value) Unsafe version ofdisabled_factor
.static NkVec2
npadding
(long struct) Unsafe version ofpadding()
.static void
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
.static boolean
nshow_markers
(long struct) Unsafe version ofshow_markers()
.static void
nshow_markers
(long struct, boolean value) Unsafe version ofshow_markers
.padding()
Passes thepadding
field to the specifiedConsumer
.Copies the specifiedNkVec2
to thepadding
field.float
rounding()
rounding
(float value) Sets the specified value to therounding
field.selected_color
(Consumer<NkColor> consumer) Passes theselected_color
field to the specifiedConsumer
.selected_color
(NkColor value) Copies the specifiedNkColor
to theselected_color
field.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.boolean
show_markers
(boolean value) Sets the specified value to theshow_markers
field.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<NkStyleChart>
-
background
- Returns:
- a
NkStyleItem
view of thebackground
field.
-
border_color
- Returns:
- a
NkColor
view of theborder_color
field.
-
selected_color
- Returns:
- a
NkColor
view of theselected_color
field.
-
color
- Returns:
- a
NkColor
view of thecolor
field.
-
border
public float border()- Returns:
- the value of the
border
field.
-
rounding
public float rounding()- Returns:
- the value of the
rounding
field.
-
padding
- Returns:
- a
NkVec2
view of thepadding
field.
-
color_factor
public float color_factor()- Returns:
- the value of the
color_factor
field.
-
disabled_factor
public float disabled_factor()- Returns:
- the value of the
disabled_factor
field.
-
show_markers
public boolean show_markers()- Returns:
- the value of the
show_markers
field.
-
background
Copies the specifiedNkStyleItem
to thebackground
field. -
background
Passes thebackground
field to the specifiedConsumer
. -
border_color
Copies the specifiedNkColor
to theborder_color
field. -
border_color
Passes theborder_color
field to the specifiedConsumer
. -
selected_color
Copies the specifiedNkColor
to theselected_color
field. -
selected_color
Passes theselected_color
field to the specifiedConsumer
. -
color
Copies the specifiedNkColor
to thecolor
field. -
color
Passes thecolor
field to the specifiedConsumer
. -
border
Sets the specified value to theborder
field. -
rounding
Sets the specified value to therounding
field. -
padding
Copies the specifiedNkVec2
to thepadding
field. -
padding
Passes thepadding
field to the specifiedConsumer
. -
color_factor
Sets the specified value to thecolor_factor
field. -
disabled_factor
Sets the specified value to thedisabled_factor
field. -
show_markers
Sets the specified value to theshow_markers
field. -
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 newNkStyleChart
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newNkStyleChart
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newNkStyleChart
instance allocated withBufferUtils
. -
create
Returns a newNkStyleChart
instance for the specified memory address. -
createSafe
-
malloc
Returns a newNkStyleChart.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newNkStyleChart.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newNkStyleChart.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aNkStyleChart.Buffer
instance 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 newNkStyleChart
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newNkStyleChart
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newNkStyleChart.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newNkStyleChart.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-