Package org.lwjgl.nuklear
Class NkStyleCombo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Layout
struct nk_style_combo {
struct nk_style_item
normal;
struct nk_style_item
hover;
struct nk_style_item
active;
struct nk_color
border_color;
struct nk_color
label_normal;
struct nk_color
label_hover;
struct nk_color
label_active;
struct nk_color
symbol_normal;
struct nk_color
symbol_hover;
struct nk_color
symbol_active;
struct nk_style_button
button;
enum nk_symbol_type sym_normal;
enum nk_symbol_type sym_hover;
enum nk_symbol_type sym_active;
float border;
float rounding;
struct nk_vec2
content_padding;
struct nk_vec2
button_padding;
struct nk_vec2
spacing;
}
-
Nested Class Summary
Nested 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
Modifier and TypeFieldDescriptionstatic final int
The struct member offsets.static 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 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.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
ConstructorDescriptionNkStyleCombo
(ByteBuffer container) Creates aNkStyleCombo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionactive()
active
(Consumer<NkStyleItem> consumer) Passes theactive
field to the specifiedConsumer
.active
(NkStyleItem value) Copies the specifiedNkStyleItem
to theactive
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.button()
button
(Consumer<NkStyleButton> consumer) Passes thebutton
field to the specifiedConsumer
.button
(NkStyleButton value) Copies the specifiedNkStyleButton
to thebutton
field.button_padding
(Consumer<NkVec2> consumer) Passes thebutton_padding
field to the specifiedConsumer
.button_padding
(NkVec2 value) Copies the specifiedNkVec2
to thebutton_padding
field.static NkStyleCombo
calloc()
Returns a newNkStyleCombo
instance allocated withmemCalloc
.static NkStyleCombo.Buffer
calloc
(int capacity) Returns a newNkStyleCombo.Buffer
instance allocated withmemCalloc
.static NkStyleCombo.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newNkStyleCombo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkStyleCombo
calloc
(MemoryStack stack) Returns a newNkStyleCombo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkStyleCombo
Deprecated.static NkStyleCombo.Buffer
callocStack
(int capacity) Deprecated.static NkStyleCombo.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static NkStyleCombo
callocStack
(MemoryStack stack) Deprecated.content_padding
(Consumer<NkVec2> consumer) Passes thecontent_padding
field to the specifiedConsumer
.content_padding
(NkVec2 value) Copies the specifiedNkVec2
to thecontent_padding
field.static NkStyleCombo
create()
Returns a newNkStyleCombo
instance allocated withBufferUtils
.static NkStyleCombo.Buffer
create
(int capacity) Returns a newNkStyleCombo.Buffer
instance allocated withBufferUtils
.static NkStyleCombo
create
(long address) Returns a newNkStyleCombo
instance for the specified memory address.static NkStyleCombo.Buffer
create
(long address, int capacity) Create aNkStyleCombo.Buffer
instance at the specified memory.static NkStyleCombo
createSafe
(long address) static NkStyleCombo.Buffer
createSafe
(long address, int capacity) hover()
hover
(Consumer<NkStyleItem> consumer) Passes thehover
field to the specifiedConsumer
.hover
(NkStyleItem value) Copies the specifiedNkStyleItem
to thehover
field.label_active
(Consumer<NkColor> consumer) Passes thelabel_active
field to the specifiedConsumer
.label_active
(NkColor value) Copies the specifiedNkColor
to thelabel_active
field.label_hover
(Consumer<NkColor> consumer) Passes thelabel_hover
field to the specifiedConsumer
.label_hover
(NkColor value) Copies the specifiedNkColor
to thelabel_hover
field.label_normal
(Consumer<NkColor> consumer) Passes thelabel_normal
field to the specifiedConsumer
.label_normal
(NkColor value) Copies the specifiedNkColor
to thelabel_normal
field.static NkStyleCombo
malloc()
Returns a newNkStyleCombo
instance allocated withmemAlloc
.static NkStyleCombo.Buffer
malloc
(int capacity) Returns a newNkStyleCombo.Buffer
instance allocated withmemAlloc
.static NkStyleCombo.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newNkStyleCombo.Buffer
instance allocated on the specifiedMemoryStack
.static NkStyleCombo
malloc
(MemoryStack stack) Returns a newNkStyleCombo
instance allocated on the specifiedMemoryStack
.static NkStyleCombo
Deprecated.static NkStyleCombo.Buffer
mallocStack
(int capacity) Deprecated.static NkStyleCombo.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static NkStyleCombo
mallocStack
(MemoryStack stack) Deprecated.static NkStyleItem
nactive
(long struct) Unsafe version ofactive()
.static void
nactive
(long struct, NkStyleItem value) Unsafe version ofactive
.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 NkStyleButton
nbutton
(long struct) Unsafe version ofbutton()
.static void
nbutton
(long struct, NkStyleButton value) Unsafe version ofbutton
.static NkVec2
nbutton_padding
(long struct) Unsafe version ofbutton_padding()
.static void
nbutton_padding
(long struct, NkVec2 value) Unsafe version ofbutton_padding
.static NkVec2
ncontent_padding
(long struct) Unsafe version ofcontent_padding()
.static void
ncontent_padding
(long struct, NkVec2 value) Unsafe version ofcontent_padding
.static NkStyleItem
nhover
(long struct) Unsafe version ofhover()
.static void
nhover
(long struct, NkStyleItem value) Unsafe version ofhover
.static NkColor
nlabel_active
(long struct) Unsafe version oflabel_active()
.static void
nlabel_active
(long struct, NkColor value) Unsafe version oflabel_active
.static NkColor
nlabel_hover
(long struct) Unsafe version oflabel_hover()
.static void
nlabel_hover
(long struct, NkColor value) Unsafe version oflabel_hover
.static NkColor
nlabel_normal
(long struct) Unsafe version oflabel_normal()
.static void
nlabel_normal
(long struct, NkColor value) Unsafe version oflabel_normal
.static NkStyleItem
nnormal
(long struct) Unsafe version ofnormal()
.static void
nnormal
(long struct, NkStyleItem value) Unsafe version ofnormal
.normal()
normal
(Consumer<NkStyleItem> consumer) Passes thenormal
field to the specifiedConsumer
.normal
(NkStyleItem value) Copies the specifiedNkStyleItem
to thenormal
field.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_active
(long struct) Unsafe version ofsym_active()
.static void
nsym_active
(long struct, int value) Unsafe version ofsym_active
.static int
nsym_hover
(long struct) Unsafe version ofsym_hover()
.static void
nsym_hover
(long struct, int value) Unsafe version ofsym_hover
.static int
nsym_normal
(long struct) Unsafe version ofsym_normal()
.static void
nsym_normal
(long struct, int value) Unsafe version ofsym_normal
.static NkColor
nsymbol_active
(long struct) Unsafe version ofsymbol_active()
.static void
nsymbol_active
(long struct, NkColor value) Unsafe version ofsymbol_active
.static NkColor
nsymbol_hover
(long struct) Unsafe version ofsymbol_hover()
.static void
nsymbol_hover
(long struct, NkColor value) Unsafe version ofsymbol_hover
.static NkColor
nsymbol_normal
(long struct) Unsafe version ofsymbol_normal()
.static void
nsymbol_normal
(long struct, NkColor value) Unsafe version ofsymbol_normal
.float
rounding()
rounding
(float value) Sets the specified value to therounding
field.set
(NkStyleCombo src) Copies the specified struct data to this struct.set
(NkStyleItem normal, NkStyleItem hover, NkStyleItem active, NkColor border_color, NkColor label_normal, NkColor label_hover, NkColor label_active, NkColor symbol_normal, NkColor symbol_hover, NkColor symbol_active, NkStyleButton button, int sym_normal, int sym_hover, int sym_active, float border, float rounding, NkVec2 content_padding, NkVec2 button_padding, NkVec2 spacing) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.spacing()
Passes thespacing
field to the specifiedConsumer
.Copies the specifiedNkVec2
to thespacing
field.int
sym_active
(int value) Sets the specified value to thesym_active
field.int
sym_hover
(int value) Sets the specified value to thesym_hover
field.int
sym_normal
(int value) Sets the specified value to thesym_normal
field.symbol_active
(Consumer<NkColor> consumer) Passes thesymbol_active
field to the specifiedConsumer
.symbol_active
(NkColor value) Copies the specifiedNkColor
to thesymbol_active
field.symbol_hover
(Consumer<NkColor> consumer) Passes thesymbol_hover
field to the specifiedConsumer
.symbol_hover
(NkColor value) Copies the specifiedNkColor
to thesymbol_hover
field.symbol_normal
(Consumer<NkColor> consumer) Passes thesymbol_normal
field to the specifiedConsumer
.symbol_normal
(NkColor value) Copies the specifiedNkColor
to thesymbol_normal
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. -
NORMAL
public static final int NORMALThe struct member offsets. -
HOVER
public static final int HOVERThe struct member offsets. -
ACTIVE
public static final int ACTIVEThe struct member offsets. -
BORDER_COLOR
public static final int BORDER_COLORThe struct member offsets. -
LABEL_NORMAL
public static final int LABEL_NORMALThe struct member offsets. -
LABEL_HOVER
public static final int LABEL_HOVERThe struct member offsets. -
LABEL_ACTIVE
public static final int LABEL_ACTIVEThe struct member offsets. -
SYMBOL_NORMAL
public static final int SYMBOL_NORMALThe struct member offsets. -
SYMBOL_HOVER
public static final int SYMBOL_HOVERThe struct member offsets. -
SYMBOL_ACTIVE
public static final int SYMBOL_ACTIVEThe struct member offsets. -
BUTTON
public static final int BUTTONThe struct member offsets. -
SYM_NORMAL
public static final int SYM_NORMALThe struct member offsets. -
SYM_HOVER
public static final int SYM_HOVERThe struct member offsets. -
SYM_ACTIVE
public static final int SYM_ACTIVEThe struct member offsets. -
BORDER
public static final int BORDERThe struct member offsets. -
ROUNDING
public static final int ROUNDINGThe struct member offsets. -
CONTENT_PADDING
public static final int CONTENT_PADDINGThe struct member offsets. -
BUTTON_PADDING
public static final int BUTTON_PADDINGThe struct member offsets. -
SPACING
public static final int SPACINGThe struct member offsets.
-
-
Constructor Details
-
NkStyleCombo
Creates aNkStyleCombo
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<NkStyleCombo>
-
normal
- Returns:
- a
NkStyleItem
view of thenormal
field.
-
hover
- Returns:
- a
NkStyleItem
view of thehover
field.
-
active
- Returns:
- a
NkStyleItem
view of theactive
field.
-
border_color
- Returns:
- a
NkColor
view of theborder_color
field.
-
label_normal
- Returns:
- a
NkColor
view of thelabel_normal
field.
-
label_hover
- Returns:
- a
NkColor
view of thelabel_hover
field.
-
label_active
- Returns:
- a
NkColor
view of thelabel_active
field.
-
symbol_normal
- Returns:
- a
NkColor
view of thesymbol_normal
field.
-
symbol_hover
- Returns:
- a
NkColor
view of thesymbol_hover
field.
-
symbol_active
- Returns:
- a
NkColor
view of thesymbol_active
field.
-
button
- Returns:
- a
NkStyleButton
view of thebutton
field.
-
sym_normal
public int sym_normal()- Returns:
- the value of the
sym_normal
field.
-
sym_hover
public int sym_hover()- Returns:
- the value of the
sym_hover
field.
-
sym_active
public int sym_active()- Returns:
- the value of the
sym_active
field.
-
border
public float border()- Returns:
- the value of the
border
field.
-
rounding
public float rounding()- Returns:
- the value of the
rounding
field.
-
content_padding
- Returns:
- a
NkVec2
view of thecontent_padding
field.
-
button_padding
- Returns:
- a
NkVec2
view of thebutton_padding
field.
-
spacing
- Returns:
- a
NkVec2
view of thespacing
field.
-
normal
Copies the specifiedNkStyleItem
to thenormal
field. -
normal
Passes thenormal
field to the specifiedConsumer
. -
hover
Copies the specifiedNkStyleItem
to thehover
field. -
hover
Passes thehover
field to the specifiedConsumer
. -
active
Copies the specifiedNkStyleItem
to theactive
field. -
active
Passes theactive
field to the specifiedConsumer
. -
border_color
Copies the specifiedNkColor
to theborder_color
field. -
border_color
Passes theborder_color
field to the specifiedConsumer
. -
label_normal
Copies the specifiedNkColor
to thelabel_normal
field. -
label_normal
Passes thelabel_normal
field to the specifiedConsumer
. -
label_hover
Copies the specifiedNkColor
to thelabel_hover
field. -
label_hover
Passes thelabel_hover
field to the specifiedConsumer
. -
label_active
Copies the specifiedNkColor
to thelabel_active
field. -
label_active
Passes thelabel_active
field to the specifiedConsumer
. -
symbol_normal
Copies the specifiedNkColor
to thesymbol_normal
field. -
symbol_normal
Passes thesymbol_normal
field to the specifiedConsumer
. -
symbol_hover
Copies the specifiedNkColor
to thesymbol_hover
field. -
symbol_hover
Passes thesymbol_hover
field to the specifiedConsumer
. -
symbol_active
Copies the specifiedNkColor
to thesymbol_active
field. -
symbol_active
Passes thesymbol_active
field to the specifiedConsumer
. -
button
Copies the specifiedNkStyleButton
to thebutton
field. -
button
Passes thebutton
field to the specifiedConsumer
. -
sym_normal
Sets the specified value to thesym_normal
field. -
sym_hover
Sets the specified value to thesym_hover
field. -
sym_active
Sets the specified value to thesym_active
field. -
border
Sets the specified value to theborder
field. -
rounding
Sets the specified value to therounding
field. -
content_padding
Copies the specifiedNkVec2
to thecontent_padding
field. -
content_padding
Passes thecontent_padding
field to the specifiedConsumer
. -
button_padding
Copies the specifiedNkVec2
to thebutton_padding
field. -
button_padding
Passes thebutton_padding
field to the specifiedConsumer
. -
spacing
Copies the specifiedNkVec2
to thespacing
field. -
spacing
Passes thespacing
field to the specifiedConsumer
. -
set
public NkStyleCombo set(NkStyleItem normal, NkStyleItem hover, NkStyleItem active, NkColor border_color, NkColor label_normal, NkColor label_hover, NkColor label_active, NkColor symbol_normal, NkColor symbol_hover, NkColor symbol_active, NkStyleButton button, int sym_normal, int sym_hover, int sym_active, float border, float rounding, NkVec2 content_padding, NkVec2 button_padding, NkVec2 spacing) 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 newNkStyleCombo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newNkStyleCombo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newNkStyleCombo
instance allocated withBufferUtils
. -
create
Returns a newNkStyleCombo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newNkStyleCombo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newNkStyleCombo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newNkStyleCombo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aNkStyleCombo.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 newNkStyleCombo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newNkStyleCombo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newNkStyleCombo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newNkStyleCombo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nnormal
Unsafe version ofnormal()
. -
nhover
Unsafe version ofhover()
. -
nactive
Unsafe version ofactive()
. -
nborder_color
Unsafe version ofborder_color()
. -
nlabel_normal
Unsafe version oflabel_normal()
. -
nlabel_hover
Unsafe version oflabel_hover()
. -
nlabel_active
Unsafe version oflabel_active()
. -
nsymbol_normal
Unsafe version ofsymbol_normal()
. -
nsymbol_hover
Unsafe version ofsymbol_hover()
. -
nsymbol_active
Unsafe version ofsymbol_active()
. -
nbutton
Unsafe version ofbutton()
. -
nsym_normal
public static int nsym_normal(long struct) Unsafe version ofsym_normal()
. -
nsym_hover
public static int nsym_hover(long struct) Unsafe version ofsym_hover()
. -
nsym_active
public static int nsym_active(long struct) Unsafe version ofsym_active()
. -
nborder
public static float nborder(long struct) Unsafe version ofborder()
. -
nrounding
public static float nrounding(long struct) Unsafe version ofrounding()
. -
ncontent_padding
Unsafe version ofcontent_padding()
. -
nbutton_padding
Unsafe version ofbutton_padding()
. -
nspacing
Unsafe version ofspacing()
. -
nnormal
Unsafe version ofnormal
. -
nhover
Unsafe version ofhover
. -
nactive
Unsafe version ofactive
. -
nborder_color
Unsafe version ofborder_color
. -
nlabel_normal
Unsafe version oflabel_normal
. -
nlabel_hover
Unsafe version oflabel_hover
. -
nlabel_active
Unsafe version oflabel_active
. -
nsymbol_normal
Unsafe version ofsymbol_normal
. -
nsymbol_hover
Unsafe version ofsymbol_hover
. -
nsymbol_active
Unsafe version ofsymbol_active
. -
nbutton
Unsafe version ofbutton
. -
nsym_normal
public static void nsym_normal(long struct, int value) Unsafe version ofsym_normal
. -
nsym_hover
public static void nsym_hover(long struct, int value) Unsafe version ofsym_hover
. -
nsym_active
public static void nsym_active(long struct, int value) Unsafe version ofsym_active
. -
nborder
public static void nborder(long struct, float value) Unsafe version ofborder
. -
nrounding
public static void nrounding(long struct, float value) Unsafe version ofrounding
. -
ncontent_padding
Unsafe version ofcontent_padding
. -
nbutton_padding
Unsafe version ofbutton_padding
. -
nspacing
Unsafe version ofspacing
.
-