Package org.lwjgl.nuklear
Class NkStyleTab
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct nk_style_tab {
{@link NkStyleItem struct nk_style_item} background;
{@link NkColor struct nk_color} border_color;
{@link NkColor struct nk_color} text;
{@link NkStyleButton struct nk_style_button} tab_maximize_button;
{@link NkStyleButton struct nk_style_button} tab_minimize_button;
{@link NkStyleButton struct nk_style_button} node_maximize_button;
{@link NkStyleButton struct nk_style_button} node_minimize_button;
enum nk_symbol_type sym_minimize;
enum nk_symbol_type sym_maximize;
float border;
float rounding;
float indent;
{@link NkVec2 struct nk_vec2} padding;
{@link NkVec2 struct nk_vec2} spacing;
float color_factor;
float disabled_factor;
}
-
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.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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionNkStyleTab
(ByteBuffer container) Creates aNkStyleTab
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 NkStyleTab
calloc()
Returns a newNkStyleTab
instance allocated withmemCalloc
.static NkStyleTab.Buffer
calloc
(int capacity) Returns a newNkStyleTab.Buffer
instance allocated withmemCalloc
.static NkStyleTab.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newNkStyleTab.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkStyleTab
calloc
(MemoryStack stack) Returns a newNkStyleTab
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkStyleTab
Deprecated.static NkStyleTab.Buffer
callocStack
(int capacity) Deprecated.static NkStyleTab.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static NkStyleTab
callocStack
(MemoryStack stack) Deprecated.float
color_factor
(float value) Sets the specified value to thecolor_factor
field.static NkStyleTab
create()
Returns a newNkStyleTab
instance allocated withBufferUtils
.static NkStyleTab.Buffer
create
(int capacity) Returns a newNkStyleTab.Buffer
instance allocated withBufferUtils
.static NkStyleTab
create
(long address) Returns a newNkStyleTab
instance for the specified memory address.static NkStyleTab.Buffer
create
(long address, int capacity) Create aNkStyleTab.Buffer
instance at the specified memory.static @Nullable NkStyleTab
createSafe
(long address) static @Nullable NkStyleTab.Buffer
createSafe
(long address, int capacity) float
disabled_factor
(float value) Sets the specified value to thedisabled_factor
field.float
indent()
indent
(float value) Sets the specified value to theindent
field.static NkStyleTab
malloc()
Returns a newNkStyleTab
instance allocated withmemAlloc
.static NkStyleTab.Buffer
malloc
(int capacity) Returns a newNkStyleTab.Buffer
instance allocated withmemAlloc
.static NkStyleTab.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newNkStyleTab.Buffer
instance allocated on the specifiedMemoryStack
.static NkStyleTab
malloc
(MemoryStack stack) Returns a newNkStyleTab
instance allocated on the specifiedMemoryStack
.static NkStyleTab
Deprecated.static NkStyleTab.Buffer
mallocStack
(int capacity) Deprecated.static NkStyleTab.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static NkStyleTab
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 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 float
nindent
(long struct) Unsafe version ofindent()
.static void
nindent
(long struct, float value) Unsafe version ofindent
.static NkStyleButton
nnode_maximize_button
(long struct) Unsafe version ofnode_maximize_button()
.static void
nnode_maximize_button
(long struct, NkStyleButton value) Unsafe version ofnode_maximize_button
.static NkStyleButton
nnode_minimize_button
(long struct) Unsafe version ofnode_minimize_button()
.static void
nnode_minimize_button
(long struct, NkStyleButton value) Unsafe version ofnode_minimize_button
.node_maximize_button
(Consumer<NkStyleButton> consumer) Passes thenode_maximize_button
field to the specifiedConsumer
.Copies the specifiedNkStyleButton
to thenode_maximize_button
field.node_minimize_button
(Consumer<NkStyleButton> consumer) Passes thenode_minimize_button
field to the specifiedConsumer
.Copies the specifiedNkStyleButton
to thenode_minimize_button
field.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 NkVec2
nspacing
(long struct) Unsafe version ofspacing()
.static void
Unsafe version ofspacing
.static int
nsym_maximize
(long struct) Unsafe version ofsym_maximize()
.static void
nsym_maximize
(long struct, int value) Unsafe version ofsym_maximize
.static int
nsym_minimize
(long struct) Unsafe version ofsym_minimize()
.static void
nsym_minimize
(long struct, int value) Unsafe version ofsym_minimize
.static NkStyleButton
ntab_maximize_button
(long struct) Unsafe version oftab_maximize_button()
.static void
ntab_maximize_button
(long struct, NkStyleButton value) Unsafe version oftab_maximize_button
.static NkStyleButton
ntab_minimize_button
(long struct) Unsafe version oftab_minimize_button()
.static void
ntab_minimize_button
(long struct, NkStyleButton value) Unsafe version oftab_minimize_button
.static NkColor
ntext
(long struct) Unsafe version oftext()
.static void
Unsafe version oftext
.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.set
(NkStyleItem background, NkColor border_color, NkColor text, NkStyleButton tab_maximize_button, NkStyleButton tab_minimize_button, NkStyleButton node_maximize_button, NkStyleButton node_minimize_button, int sym_minimize, int sym_maximize, float border, float rounding, float indent, NkVec2 padding, NkVec2 spacing, float color_factor, float disabled_factor) Initializes this struct with the specified values.set
(NkStyleTab src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.spacing()
Passes thespacing
field to the specifiedConsumer
.Copies the specifiedNkVec2
to thespacing
field.int
sym_maximize
(int value) Sets the specified value to thesym_maximize
field.int
sym_minimize
(int value) Sets the specified value to thesym_minimize
field.tab_maximize_button
(Consumer<NkStyleButton> consumer) Passes thetab_maximize_button
field to the specifiedConsumer
.tab_maximize_button
(NkStyleButton value) Copies the specifiedNkStyleButton
to thetab_maximize_button
field.tab_minimize_button
(Consumer<NkStyleButton> consumer) Passes thetab_minimize_button
field to the specifiedConsumer
.tab_minimize_button
(NkStyleButton value) Copies the specifiedNkStyleButton
to thetab_minimize_button
field.text()
Passes thetext
field to the specifiedConsumer
.Copies the specifiedNkColor
to thetext
field.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. -
TEXT
public static final int TEXTThe struct member offsets. -
TAB_MAXIMIZE_BUTTON
public static final int TAB_MAXIMIZE_BUTTONThe struct member offsets. -
TAB_MINIMIZE_BUTTON
public static final int TAB_MINIMIZE_BUTTONThe struct member offsets. -
NODE_MAXIMIZE_BUTTON
public static final int NODE_MAXIMIZE_BUTTONThe struct member offsets. -
NODE_MINIMIZE_BUTTON
public static final int NODE_MINIMIZE_BUTTONThe struct member offsets. -
SYM_MINIMIZE
public static final int SYM_MINIMIZEThe struct member offsets. -
SYM_MAXIMIZE
public static final int SYM_MAXIMIZEThe struct member offsets. -
BORDER
public static final int BORDERThe struct member offsets. -
ROUNDING
public static final int ROUNDINGThe struct member offsets. -
INDENT
public static final int INDENTThe struct member offsets. -
PADDING
public static final int PADDINGThe struct member offsets. -
SPACING
public static final int SPACINGThe 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.
-
-
Constructor Details
-
NkStyleTab
Creates aNkStyleTab
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<NkStyleTab>
-
background
- Returns:
- a
NkStyleItem
view of thebackground
field.
-
border_color
- Returns:
- a
NkColor
view of theborder_color
field.
-
text
- Returns:
- a
NkColor
view of thetext
field.
-
tab_maximize_button
- Returns:
- a
NkStyleButton
view of thetab_maximize_button
field.
-
tab_minimize_button
- Returns:
- a
NkStyleButton
view of thetab_minimize_button
field.
-
node_maximize_button
- Returns:
- a
NkStyleButton
view of thenode_maximize_button
field.
-
node_minimize_button
- Returns:
- a
NkStyleButton
view of thenode_minimize_button
field.
-
sym_minimize
public int sym_minimize()- Returns:
- the value of the
sym_minimize
field.
-
sym_maximize
public int sym_maximize()- Returns:
- the value of the
sym_maximize
field.
-
border
public float border()- Returns:
- the value of the
border
field.
-
rounding
public float rounding()- Returns:
- the value of the
rounding
field.
-
indent
public float indent()- Returns:
- the value of the
indent
field.
-
padding
- Returns:
- a
NkVec2
view of thepadding
field.
-
spacing
- Returns:
- a
NkVec2
view of thespacing
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.
-
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
. -
text
Copies the specifiedNkColor
to thetext
field. -
text
Passes thetext
field to the specifiedConsumer
. -
tab_maximize_button
Copies the specifiedNkStyleButton
to thetab_maximize_button
field. -
tab_maximize_button
Passes thetab_maximize_button
field to the specifiedConsumer
. -
tab_minimize_button
Copies the specifiedNkStyleButton
to thetab_minimize_button
field. -
tab_minimize_button
Passes thetab_minimize_button
field to the specifiedConsumer
. -
node_maximize_button
Copies the specifiedNkStyleButton
to thenode_maximize_button
field. -
node_maximize_button
Passes thenode_maximize_button
field to the specifiedConsumer
. -
node_minimize_button
Copies the specifiedNkStyleButton
to thenode_minimize_button
field. -
node_minimize_button
Passes thenode_minimize_button
field to the specifiedConsumer
. -
sym_minimize
Sets the specified value to thesym_minimize
field. -
sym_maximize
Sets the specified value to thesym_maximize
field. -
border
Sets the specified value to theborder
field. -
rounding
Sets the specified value to therounding
field. -
indent
Sets the specified value to theindent
field. -
padding
Copies the specifiedNkVec2
to thepadding
field. -
padding
Passes thepadding
field to the specifiedConsumer
. -
spacing
Copies the specifiedNkVec2
to thespacing
field. -
spacing
Passes thespacing
field to the specifiedConsumer
. -
color_factor
Sets the specified value to thecolor_factor
field. -
disabled_factor
Sets the specified value to thedisabled_factor
field. -
set
public NkStyleTab set(NkStyleItem background, NkColor border_color, NkColor text, NkStyleButton tab_maximize_button, NkStyleButton tab_minimize_button, NkStyleButton node_maximize_button, NkStyleButton node_minimize_button, int sym_minimize, int sym_maximize, float border, float rounding, float indent, NkVec2 padding, NkVec2 spacing, float color_factor, float disabled_factor) 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 newNkStyleTab
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newNkStyleTab
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newNkStyleTab
instance allocated withBufferUtils
. -
create
Returns a newNkStyleTab
instance for the specified memory address. -
createSafe
-
malloc
Returns a newNkStyleTab.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newNkStyleTab.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newNkStyleTab.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aNkStyleTab.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 newNkStyleTab
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newNkStyleTab
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newNkStyleTab.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newNkStyleTab.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()
. -
ntext
Unsafe version oftext()
. -
ntab_maximize_button
Unsafe version oftab_maximize_button()
. -
ntab_minimize_button
Unsafe version oftab_minimize_button()
. -
nnode_maximize_button
Unsafe version ofnode_maximize_button()
. -
nnode_minimize_button
Unsafe version ofnode_minimize_button()
. -
nsym_minimize
public static int nsym_minimize(long struct) Unsafe version ofsym_minimize()
. -
nsym_maximize
public static int nsym_maximize(long struct) Unsafe version ofsym_maximize()
. -
nborder
public static float nborder(long struct) Unsafe version ofborder()
. -
nrounding
public static float nrounding(long struct) Unsafe version ofrounding()
. -
nindent
public static float nindent(long struct) Unsafe version ofindent()
. -
npadding
Unsafe version ofpadding()
. -
nspacing
Unsafe version ofspacing()
. -
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()
. -
nbackground
Unsafe version ofbackground
. -
nborder_color
Unsafe version ofborder_color
. -
ntext
Unsafe version oftext
. -
ntab_maximize_button
Unsafe version oftab_maximize_button
. -
ntab_minimize_button
Unsafe version oftab_minimize_button
. -
nnode_maximize_button
Unsafe version ofnode_maximize_button
. -
nnode_minimize_button
Unsafe version ofnode_minimize_button
. -
nsym_minimize
public static void nsym_minimize(long struct, int value) Unsafe version ofsym_minimize
. -
nsym_maximize
public static void nsym_maximize(long struct, int value) Unsafe version ofsym_maximize
. -
nborder
public static void nborder(long struct, float value) Unsafe version ofborder
. -
nrounding
public static void nrounding(long struct, float value) Unsafe version ofrounding
. -
nindent
public static void nindent(long struct, float value) Unsafe version ofindent
. -
npadding
Unsafe version ofpadding
. -
nspacing
Unsafe version ofspacing
. -
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
.
-