Package org.lwjgl.nuklear
Class NkStyleTab
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct nk_style_tab {
struct nk_style_item background;
struct nk_color border_color;
struct nk_color text;
struct nk_style_button tab_maximize_button;
struct nk_style_button tab_minimize_button;
struct nk_style_button node_maximize_button;
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;
struct nk_vec2 padding;
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.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.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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionNkStyleTab(ByteBuffer container) Creates aNkStyleTabinstance 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 NkStyleTabcalloc()Returns a newNkStyleTabinstance allocated withmemCalloc.static NkStyleTab.Buffercalloc(int capacity) Returns a newNkStyleTab.Bufferinstance allocated withmemCalloc.static NkStyleTab.Buffercalloc(int capacity, MemoryStack stack) Returns a newNkStyleTab.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkStyleTabcalloc(MemoryStack stack) Returns a newNkStyleTabinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.floatcolor_factor(float value) Sets the specified value to thecolor_factorfield.static NkStyleTabcreate()Returns a newNkStyleTabinstance allocated withBufferUtils.static NkStyleTab.Buffercreate(int capacity) Returns a newNkStyleTab.Bufferinstance allocated withBufferUtils.static NkStyleTabcreate(long address) Returns a newNkStyleTabinstance for the specified memory address.static NkStyleTab.Buffercreate(long address, int capacity) Create aNkStyleTab.Bufferinstance at the specified memory.static @Nullable NkStyleTabcreateSafe(long address) static @Nullable NkStyleTab.BuffercreateSafe(long address, int capacity) floatdisabled_factor(float value) Sets the specified value to thedisabled_factorfield.floatindent()indent(float value) Sets the specified value to theindentfield.static NkStyleTabmalloc()Returns a newNkStyleTabinstance allocated withmemAlloc.static NkStyleTab.Buffermalloc(int capacity) Returns a newNkStyleTab.Bufferinstance allocated withmemAlloc.static NkStyleTab.Buffermalloc(int capacity, MemoryStack stack) Returns a newNkStyleTab.Bufferinstance allocated on the specifiedMemoryStack.static NkStyleTabmalloc(MemoryStack stack) Returns a newNkStyleTabinstance allocated on the specifiedMemoryStack.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 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 floatnindent(long struct) Unsafe version ofindent().static voidnindent(long struct, float value) Unsafe version ofindent.static NkStyleButtonnnode_maximize_button(long struct) Unsafe version ofnode_maximize_button().static voidnnode_maximize_button(long struct, NkStyleButton value) Unsafe version ofnode_maximize_button.static NkStyleButtonnnode_minimize_button(long struct) Unsafe version ofnode_minimize_button().static voidnnode_minimize_button(long struct, NkStyleButton value) Unsafe version ofnode_minimize_button.node_maximize_button(Consumer<NkStyleButton> consumer) Passes thenode_maximize_buttonfield to the specifiedConsumer.Copies the specifiedNkStyleButtonto thenode_maximize_buttonfield.node_minimize_button(Consumer<NkStyleButton> consumer) Passes thenode_minimize_buttonfield to the specifiedConsumer.Copies the specifiedNkStyleButtonto thenode_minimize_buttonfield.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 NkVec2nspacing(long struct) Unsafe version ofspacing().static voidUnsafe version ofspacing.static intnsym_maximize(long struct) Unsafe version ofsym_maximize().static voidnsym_maximize(long struct, int value) Unsafe version ofsym_maximize.static intnsym_minimize(long struct) Unsafe version ofsym_minimize().static voidnsym_minimize(long struct, int value) Unsafe version ofsym_minimize.static NkStyleButtonntab_maximize_button(long struct) Unsafe version oftab_maximize_button().static voidntab_maximize_button(long struct, NkStyleButton value) Unsafe version oftab_maximize_button.static NkStyleButtonntab_minimize_button(long struct) Unsafe version oftab_minimize_button().static voidntab_minimize_button(long struct, NkStyleButton value) Unsafe version oftab_minimize_button.static NkColorntext(long struct) Unsafe version oftext().static voidUnsafe version oftext.padding()Passes thepaddingfield to the specifiedConsumer.Copies the specifiedNkVec2to thepaddingfield.floatrounding()rounding(float value) Sets the specified value to theroundingfield.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.intsizeof()Returnssizeof(struct).spacing()Passes thespacingfield to the specifiedConsumer.Copies the specifiedNkVec2to thespacingfield.intsym_maximize(int value) Sets the specified value to thesym_maximizefield.intsym_minimize(int value) Sets the specified value to thesym_minimizefield.tab_maximize_button(Consumer<NkStyleButton> consumer) Passes thetab_maximize_buttonfield to the specifiedConsumer.tab_maximize_button(NkStyleButton value) Copies the specifiedNkStyleButtonto thetab_maximize_buttonfield.tab_minimize_button(Consumer<NkStyleButton> consumer) Passes thetab_minimize_buttonfield to the specifiedConsumer.tab_minimize_button(NkStyleButton value) Copies the specifiedNkStyleButtonto thetab_minimize_buttonfield.text()Passes thetextfield to the specifiedConsumer.Copies the specifiedNkColorto thetextfield.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. -
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 aNkStyleTabinstance 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<NkStyleTab>
-
background
- Returns:
- a
NkStyleItemview of thebackgroundfield.
-
border_color
- Returns:
- a
NkColorview of theborder_colorfield.
-
text
- Returns:
- a
NkColorview of thetextfield.
-
tab_maximize_button
- Returns:
- a
NkStyleButtonview of thetab_maximize_buttonfield.
-
tab_minimize_button
- Returns:
- a
NkStyleButtonview of thetab_minimize_buttonfield.
-
node_maximize_button
- Returns:
- a
NkStyleButtonview of thenode_maximize_buttonfield.
-
node_minimize_button
- Returns:
- a
NkStyleButtonview of thenode_minimize_buttonfield.
-
sym_minimize
public int sym_minimize()- Returns:
- the value of the
sym_minimizefield.
-
sym_maximize
public int sym_maximize()- Returns:
- the value of the
sym_maximizefield.
-
border
public float border()- Returns:
- the value of the
borderfield.
-
rounding
public float rounding()- Returns:
- the value of the
roundingfield.
-
indent
public float indent()- Returns:
- the value of the
indentfield.
-
padding
- Returns:
- a
NkVec2view of thepaddingfield.
-
spacing
- Returns:
- a
NkVec2view of thespacingfield.
-
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.
-
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. -
text
Copies the specifiedNkColorto thetextfield. -
text
Passes thetextfield to the specifiedConsumer. -
tab_maximize_button
Copies the specifiedNkStyleButtonto thetab_maximize_buttonfield. -
tab_maximize_button
Passes thetab_maximize_buttonfield to the specifiedConsumer. -
tab_minimize_button
Copies the specifiedNkStyleButtonto thetab_minimize_buttonfield. -
tab_minimize_button
Passes thetab_minimize_buttonfield to the specifiedConsumer. -
node_maximize_button
Copies the specifiedNkStyleButtonto thenode_maximize_buttonfield. -
node_maximize_button
Passes thenode_maximize_buttonfield to the specifiedConsumer. -
node_minimize_button
Copies the specifiedNkStyleButtonto thenode_minimize_buttonfield. -
node_minimize_button
Passes thenode_minimize_buttonfield to the specifiedConsumer. -
sym_minimize
Sets the specified value to thesym_minimizefield. -
sym_maximize
Sets the specified value to thesym_maximizefield. -
border
Sets the specified value to theborderfield. -
rounding
Sets the specified value to theroundingfield. -
indent
Sets the specified value to theindentfield. -
padding
Copies the specifiedNkVec2to thepaddingfield. -
padding
Passes thepaddingfield to the specifiedConsumer. -
spacing
Copies the specifiedNkVec2to thespacingfield. -
spacing
Passes thespacingfield to the specifiedConsumer. -
color_factor
Sets the specified value to thecolor_factorfield. -
disabled_factor
Sets the specified value to thedisabled_factorfield. -
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 newNkStyleTabinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newNkStyleTabinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newNkStyleTabinstance allocated withBufferUtils. -
create
Returns a newNkStyleTabinstance for the specified memory address. -
createSafe
-
malloc
Returns a newNkStyleTab.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newNkStyleTab.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newNkStyleTab.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aNkStyleTab.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newNkStyleTabinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newNkStyleTabinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newNkStyleTab.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newNkStyleTab.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(). -
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.
-