Package org.lwjgl.nuklear
Class NkStyleTab
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkStyleTab
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class NkStyleTab extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Layout
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; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NkStyleTab.Buffer
An array ofNkStyleTab
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
BACKGROUND
BORDER
BORDER_COLOR
INDENT
NODE_MAXIMIZE_BUTTON
NODE_MINIMIZE_BUTTON
PADDING
ROUNDINGThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
SPACING
SYM_MAXIMIZE
SYM_MINIMIZE
TAB_MAXIMIZE_BUTTON
TAB_MINIMIZE_BUTTON
TEXTThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkStyleTab(java.nio.ByteBuffer container)
Creates aNkStyleTab
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItem
background()
Returns aNkStyleItem
view of thebackground
field.NkStyleTab
background(java.util.function.Consumer<NkStyleItem> consumer)
Passes thebackground
field to the specifiedConsumer
.NkStyleTab
background(NkStyleItem value)
Copies the specifiedNkStyleItem
to thebackground
field.float
border()
Returns the value of theborder
field.NkStyleTab
border(float value)
Sets the specified value to theborder
field.NkColor
border_color()
Returns aNkColor
view of theborder_color
field.NkStyleTab
border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.NkStyleTab
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
callocStack()
Returns a newNkStyleTab
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static NkStyleTab.Buffer
callocStack(int capacity)
Returns a newNkStyleTab.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static NkStyleTab.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleTab.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkStyleTab
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleTab
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.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 NkStyleTab
createSafe(long address)
static NkStyleTab.Buffer
createSafe(long address, int capacity)
float
indent()
Returns the value of theindent
field.NkStyleTab
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
mallocStack()
Returns a newNkStyleTab
instance allocated on the thread-localMemoryStack
.static NkStyleTab.Buffer
mallocStack(int capacity)
Returns a newNkStyleTab.Buffer
instance allocated on the thread-localMemoryStack
.static NkStyleTab.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleTab.Buffer
instance allocated on the specifiedMemoryStack
.static NkStyleTab
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleTab
instance allocated on the specifiedMemoryStack
.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
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
.NkStyleButton
node_maximize_button()
Returns aNkStyleButton
view of thenode_maximize_button
field.NkStyleTab
node_maximize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thenode_maximize_button
field to the specifiedConsumer
.NkStyleTab
node_maximize_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thenode_maximize_button
field.NkStyleButton
node_minimize_button()
Returns aNkStyleButton
view of thenode_minimize_button
field.NkStyleTab
node_minimize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thenode_minimize_button
field to the specifiedConsumer
.NkStyleTab
node_minimize_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thenode_minimize_button
field.static NkVec2
npadding(long struct)
Unsafe version ofpadding()
.static void
npadding(long struct, NkVec2 value)
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
nspacing(long struct, NkVec2 value)
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
ntext(long struct, NkColor value)
Unsafe version oftext
.NkVec2
padding()
Returns aNkVec2
view of thepadding
field.NkStyleTab
padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.NkStyleTab
padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.float
rounding()
Returns the value of therounding
field.NkStyleTab
rounding(float value)
Sets the specified value to therounding
field.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)
Initializes this struct with the specified values.NkStyleTab
set(NkStyleTab src)
Copies the specified struct data to this struct.int
sizeof()
NkVec2
spacing()
Returns aNkVec2
view of thespacing
field.NkStyleTab
spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacing
field to the specifiedConsumer
.NkStyleTab
spacing(NkVec2 value)
Copies the specifiedNkVec2
to thespacing
field.int
sym_maximize()
Returns the value of thesym_maximize
field.NkStyleTab
sym_maximize(int value)
Sets the specified value to thesym_maximize
field.int
sym_minimize()
Returns the value of thesym_minimize
field.NkStyleTab
sym_minimize(int value)
Sets the specified value to thesym_minimize
field.NkStyleButton
tab_maximize_button()
Returns aNkStyleButton
view of thetab_maximize_button
field.NkStyleTab
tab_maximize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thetab_maximize_button
field to the specifiedConsumer
.NkStyleTab
tab_maximize_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thetab_maximize_button
field.NkStyleButton
tab_minimize_button()
Returns aNkStyleButton
view of thetab_minimize_button
field.NkStyleTab
tab_minimize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thetab_minimize_button
field to the specifiedConsumer
.NkStyleTab
tab_minimize_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thetab_minimize_button
field.NkColor
text()
Returns aNkColor
view of thetext
field.NkStyleTab
text(java.util.function.Consumer<NkColor> consumer)
Passes thetext
field to the specifiedConsumer
.NkStyleTab
text(NkColor value)
Copies the specifiedNkColor
to thetext
field.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
BACKGROUND, BORDER_COLOR, TEXT, TAB_MAXIMIZE_BUTTON, TAB_MINIMIZE_BUTTON, NODE_MAXIMIZE_BUTTON, NODE_MINIMIZE_BUTTON, SYM_MINIMIZE, SYM_MAXIMIZE, BORDER, ROUNDING, INDENT, PADDING, SPACING
The struct member offsets.
-
-
Constructor Detail
-
NkStyleTab
public NkStyleTab(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
background
public NkStyleItem background()
Returns aNkStyleItem
view of thebackground
field.
-
tab_maximize_button
public NkStyleButton tab_maximize_button()
Returns aNkStyleButton
view of thetab_maximize_button
field.
-
tab_minimize_button
public NkStyleButton tab_minimize_button()
Returns aNkStyleButton
view of thetab_minimize_button
field.
-
node_maximize_button
public NkStyleButton node_maximize_button()
Returns aNkStyleButton
view of thenode_maximize_button
field.
-
node_minimize_button
public NkStyleButton node_minimize_button()
Returns aNkStyleButton
view of thenode_minimize_button
field.
-
sym_minimize
public int sym_minimize()
Returns the value of thesym_minimize
field.
-
sym_maximize
public int sym_maximize()
Returns the value of thesym_maximize
field.
-
border
public float border()
Returns the value of theborder
field.
-
rounding
public float rounding()
Returns the value of therounding
field.
-
indent
public float indent()
Returns the value of theindent
field.
-
background
public NkStyleTab background(NkStyleItem value)
Copies the specifiedNkStyleItem
to thebackground
field.
-
background
public NkStyleTab background(java.util.function.Consumer<NkStyleItem> consumer)
Passes thebackground
field to the specifiedConsumer
.
-
border_color
public NkStyleTab border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.
-
border_color
public NkStyleTab border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.
-
text
public NkStyleTab text(NkColor value)
Copies the specifiedNkColor
to thetext
field.
-
text
public NkStyleTab text(java.util.function.Consumer<NkColor> consumer)
Passes thetext
field to the specifiedConsumer
.
-
tab_maximize_button
public NkStyleTab tab_maximize_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thetab_maximize_button
field.
-
tab_maximize_button
public NkStyleTab tab_maximize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thetab_maximize_button
field to the specifiedConsumer
.
-
tab_minimize_button
public NkStyleTab tab_minimize_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thetab_minimize_button
field.
-
tab_minimize_button
public NkStyleTab tab_minimize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thetab_minimize_button
field to the specifiedConsumer
.
-
node_maximize_button
public NkStyleTab node_maximize_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thenode_maximize_button
field.
-
node_maximize_button
public NkStyleTab node_maximize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thenode_maximize_button
field to the specifiedConsumer
.
-
node_minimize_button
public NkStyleTab node_minimize_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thenode_minimize_button
field.
-
node_minimize_button
public NkStyleTab node_minimize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thenode_minimize_button
field to the specifiedConsumer
.
-
sym_minimize
public NkStyleTab sym_minimize(int value)
Sets the specified value to thesym_minimize
field.
-
sym_maximize
public NkStyleTab sym_maximize(int value)
Sets the specified value to thesym_maximize
field.
-
border
public NkStyleTab border(float value)
Sets the specified value to theborder
field.
-
rounding
public NkStyleTab rounding(float value)
Sets the specified value to therounding
field.
-
indent
public NkStyleTab indent(float value)
Sets the specified value to theindent
field.
-
padding
public NkStyleTab padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.
-
padding
public NkStyleTab padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.
-
spacing
public NkStyleTab spacing(NkVec2 value)
Copies the specifiedNkVec2
to thespacing
field.
-
spacing
public NkStyleTab spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacing
field to the specifiedConsumer
.
-
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)
Initializes this struct with the specified values.
-
set
public NkStyleTab set(NkStyleTab src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static NkStyleTab malloc()
Returns a newNkStyleTab
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static NkStyleTab calloc()
Returns a newNkStyleTab
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static NkStyleTab create()
Returns a newNkStyleTab
instance allocated withBufferUtils
.
-
create
public static NkStyleTab create(long address)
Returns a newNkStyleTab
instance for the specified memory address.
-
createSafe
@Nullable public static NkStyleTab createSafe(long address)
-
malloc
public static NkStyleTab.Buffer malloc(int capacity)
Returns a newNkStyleTab.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static NkStyleTab.Buffer calloc(int capacity)
Returns a newNkStyleTab.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static NkStyleTab.Buffer create(int capacity)
Returns a newNkStyleTab.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static NkStyleTab.Buffer create(long address, int capacity)
Create aNkStyleTab.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static NkStyleTab.Buffer createSafe(long address, int capacity)
-
mallocStack
public static NkStyleTab mallocStack()
Returns a newNkStyleTab
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static NkStyleTab callocStack()
Returns a newNkStyleTab
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static NkStyleTab mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleTab
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static NkStyleTab callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleTab
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static NkStyleTab.Buffer mallocStack(int capacity)
Returns a newNkStyleTab.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static NkStyleTab.Buffer callocStack(int capacity)
Returns a newNkStyleTab.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static NkStyleTab.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleTab.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static NkStyleTab.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleTab.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nbackground
public static NkStyleItem nbackground(long struct)
Unsafe version ofbackground()
.
-
nborder_color
public static NkColor nborder_color(long struct)
Unsafe version ofborder_color()
.
-
ntab_maximize_button
public static NkStyleButton ntab_maximize_button(long struct)
Unsafe version oftab_maximize_button()
.
-
ntab_minimize_button
public static NkStyleButton ntab_minimize_button(long struct)
Unsafe version oftab_minimize_button()
.
-
nnode_maximize_button
public static NkStyleButton nnode_maximize_button(long struct)
Unsafe version ofnode_maximize_button()
.
-
nnode_minimize_button
public static NkStyleButton nnode_minimize_button(long struct)
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()
.
-
nbackground
public static void nbackground(long struct, NkStyleItem value)
Unsafe version ofbackground
.
-
nborder_color
public static void nborder_color(long struct, NkColor value)
Unsafe version ofborder_color
.
-
ntab_maximize_button
public static void ntab_maximize_button(long struct, NkStyleButton value)
Unsafe version oftab_maximize_button
.
-
ntab_minimize_button
public static void ntab_minimize_button(long struct, NkStyleButton value)
Unsafe version oftab_minimize_button
.
-
nnode_maximize_button
public static void nnode_maximize_button(long struct, NkStyleButton value)
Unsafe version ofnode_maximize_button
.
-
nnode_minimize_button
public static void nnode_minimize_button(long struct, NkStyleButton value)
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
.
-
-