Package org.lwjgl.nuklear
Class NkStyleCombo
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
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;
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 member offsets.static 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 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.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
ConstructorsConstructorDescriptionNkStyleCombo(ByteBuffer container) Creates aNkStyleComboinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionactive()active(Consumer<NkStyleItem> consumer) Passes theactivefield to the specifiedConsumer.active(NkStyleItem value) Copies the specifiedNkStyleItemto theactivefield.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.button()button(Consumer<NkStyleButton> consumer) Passes thebuttonfield to the specifiedConsumer.button(NkStyleButton value) Copies the specifiedNkStyleButtonto thebuttonfield.button_padding(Consumer<NkVec2> consumer) Passes thebutton_paddingfield to the specifiedConsumer.button_padding(NkVec2 value) Copies the specifiedNkVec2to thebutton_paddingfield.static NkStyleCombocalloc()Returns a newNkStyleComboinstance allocated withmemCalloc.static NkStyleCombo.Buffercalloc(int capacity) Returns a newNkStyleCombo.Bufferinstance allocated withmemCalloc.static NkStyleCombo.Buffercalloc(int capacity, MemoryStack stack) Returns a newNkStyleCombo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkStyleCombocalloc(MemoryStack stack) Returns a newNkStyleComboinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.floatcolor_factor(float value) Sets the specified value to thecolor_factorfield.content_padding(Consumer<NkVec2> consumer) Passes thecontent_paddingfield to the specifiedConsumer.content_padding(NkVec2 value) Copies the specifiedNkVec2to thecontent_paddingfield.static NkStyleCombocreate()Returns a newNkStyleComboinstance allocated withBufferUtils.static NkStyleCombo.Buffercreate(int capacity) Returns a newNkStyleCombo.Bufferinstance allocated withBufferUtils.static NkStyleCombocreate(long address) Returns a newNkStyleComboinstance for the specified memory address.static NkStyleCombo.Buffercreate(long address, int capacity) Create aNkStyleCombo.Bufferinstance at the specified memory.static @Nullable NkStyleCombocreateSafe(long address) static @Nullable NkStyleCombo.BuffercreateSafe(long address, int capacity) floatdisabled_factor(float value) Sets the specified value to thedisabled_factorfield.hover()hover(Consumer<NkStyleItem> consumer) Passes thehoverfield to the specifiedConsumer.hover(NkStyleItem value) Copies the specifiedNkStyleItemto thehoverfield.label_active(Consumer<NkColor> consumer) Passes thelabel_activefield to the specifiedConsumer.label_active(NkColor value) Copies the specifiedNkColorto thelabel_activefield.label_hover(Consumer<NkColor> consumer) Passes thelabel_hoverfield to the specifiedConsumer.label_hover(NkColor value) Copies the specifiedNkColorto thelabel_hoverfield.label_normal(Consumer<NkColor> consumer) Passes thelabel_normalfield to the specifiedConsumer.label_normal(NkColor value) Copies the specifiedNkColorto thelabel_normalfield.static NkStyleCombomalloc()Returns a newNkStyleComboinstance allocated withmemAlloc.static NkStyleCombo.Buffermalloc(int capacity) Returns a newNkStyleCombo.Bufferinstance allocated withmemAlloc.static NkStyleCombo.Buffermalloc(int capacity, MemoryStack stack) Returns a newNkStyleCombo.Bufferinstance allocated on the specifiedMemoryStack.static NkStyleCombomalloc(MemoryStack stack) Returns a newNkStyleComboinstance allocated on the specifiedMemoryStack.static NkStyleItemnactive(long struct) Unsafe version ofactive().static voidnactive(long struct, NkStyleItem value) Unsafe version ofactive.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 NkStyleButtonnbutton(long struct) Unsafe version ofbutton().static voidnbutton(long struct, NkStyleButton value) Unsafe version ofbutton.static NkVec2nbutton_padding(long struct) Unsafe version ofbutton_padding().static voidnbutton_padding(long struct, NkVec2 value) Unsafe version ofbutton_padding.static floatncolor_factor(long struct) Unsafe version ofcolor_factor().static voidncolor_factor(long struct, float value) Unsafe version ofcolor_factor.static NkVec2ncontent_padding(long struct) Unsafe version ofcontent_padding().static voidncontent_padding(long struct, NkVec2 value) Unsafe version ofcontent_padding.static floatndisabled_factor(long struct) Unsafe version ofdisabled_factor().static voidndisabled_factor(long struct, float value) Unsafe version ofdisabled_factor.static NkStyleItemnhover(long struct) Unsafe version ofhover().static voidnhover(long struct, NkStyleItem value) Unsafe version ofhover.static NkColornlabel_active(long struct) Unsafe version oflabel_active().static voidnlabel_active(long struct, NkColor value) Unsafe version oflabel_active.static NkColornlabel_hover(long struct) Unsafe version oflabel_hover().static voidnlabel_hover(long struct, NkColor value) Unsafe version oflabel_hover.static NkColornlabel_normal(long struct) Unsafe version oflabel_normal().static voidnlabel_normal(long struct, NkColor value) Unsafe version oflabel_normal.static NkStyleItemnnormal(long struct) Unsafe version ofnormal().static voidnnormal(long struct, NkStyleItem value) Unsafe version ofnormal.normal()normal(Consumer<NkStyleItem> consumer) Passes thenormalfield to the specifiedConsumer.normal(NkStyleItem value) Copies the specifiedNkStyleItemto thenormalfield.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_active(long struct) Unsafe version ofsym_active().static voidnsym_active(long struct, int value) Unsafe version ofsym_active.static intnsym_hover(long struct) Unsafe version ofsym_hover().static voidnsym_hover(long struct, int value) Unsafe version ofsym_hover.static intnsym_normal(long struct) Unsafe version ofsym_normal().static voidnsym_normal(long struct, int value) Unsafe version ofsym_normal.static NkColornsymbol_active(long struct) Unsafe version ofsymbol_active().static voidnsymbol_active(long struct, NkColor value) Unsafe version ofsymbol_active.static NkColornsymbol_hover(long struct) Unsafe version ofsymbol_hover().static voidnsymbol_hover(long struct, NkColor value) Unsafe version ofsymbol_hover.static NkColornsymbol_normal(long struct) Unsafe version ofsymbol_normal().static voidnsymbol_normal(long struct, NkColor value) Unsafe version ofsymbol_normal.floatrounding()rounding(float value) Sets the specified value to theroundingfield.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, float color_factor, float disabled_factor) Initializes this struct with the specified values.intsizeof()Returnssizeof(struct).spacing()Passes thespacingfield to the specifiedConsumer.Copies the specifiedNkVec2to thespacingfield.intsym_active(int value) Sets the specified value to thesym_activefield.intsym_hover(int value) Sets the specified value to thesym_hoverfield.intsym_normal(int value) Sets the specified value to thesym_normalfield.symbol_active(Consumer<NkColor> consumer) Passes thesymbol_activefield to the specifiedConsumer.symbol_active(NkColor value) Copies the specifiedNkColorto thesymbol_activefield.symbol_hover(Consumer<NkColor> consumer) Passes thesymbol_hoverfield to the specifiedConsumer.symbol_hover(NkColor value) Copies the specifiedNkColorto thesymbol_hoverfield.symbol_normal(Consumer<NkColor> consumer) Passes thesymbol_normalfield to the specifiedConsumer.symbol_normal(NkColor value) Copies the specifiedNkColorto thesymbol_normalfield.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. -
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. -
COLOR_FACTOR
public static final int COLOR_FACTORThe struct member offsets. -
DISABLED_FACTOR
public static final int DISABLED_FACTORThe struct member offsets.
-
-
Constructor Details
-
NkStyleCombo
Creates aNkStyleComboinstance 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<NkStyleCombo>
-
normal
- Returns:
- a
NkStyleItemview of thenormalfield.
-
hover
- Returns:
- a
NkStyleItemview of thehoverfield.
-
active
- Returns:
- a
NkStyleItemview of theactivefield.
-
border_color
- Returns:
- a
NkColorview of theborder_colorfield.
-
label_normal
- Returns:
- a
NkColorview of thelabel_normalfield.
-
label_hover
- Returns:
- a
NkColorview of thelabel_hoverfield.
-
label_active
- Returns:
- a
NkColorview of thelabel_activefield.
-
symbol_normal
- Returns:
- a
NkColorview of thesymbol_normalfield.
-
symbol_hover
- Returns:
- a
NkColorview of thesymbol_hoverfield.
-
symbol_active
- Returns:
- a
NkColorview of thesymbol_activefield.
-
button
- Returns:
- a
NkStyleButtonview of thebuttonfield.
-
sym_normal
public int sym_normal()- Returns:
- the value of the
sym_normalfield.
-
sym_hover
public int sym_hover()- Returns:
- the value of the
sym_hoverfield.
-
sym_active
public int sym_active()- Returns:
- the value of the
sym_activefield.
-
border
public float border()- Returns:
- the value of the
borderfield.
-
rounding
public float rounding()- Returns:
- the value of the
roundingfield.
-
content_padding
- Returns:
- a
NkVec2view of thecontent_paddingfield.
-
button_padding
- Returns:
- a
NkVec2view of thebutton_paddingfield.
-
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.
-
normal
Copies the specifiedNkStyleItemto thenormalfield. -
normal
Passes thenormalfield to the specifiedConsumer. -
hover
Copies the specifiedNkStyleItemto thehoverfield. -
hover
Passes thehoverfield to the specifiedConsumer. -
active
Copies the specifiedNkStyleItemto theactivefield. -
active
Passes theactivefield to the specifiedConsumer. -
border_color
Copies the specifiedNkColorto theborder_colorfield. -
border_color
Passes theborder_colorfield to the specifiedConsumer. -
label_normal
Copies the specifiedNkColorto thelabel_normalfield. -
label_normal
Passes thelabel_normalfield to the specifiedConsumer. -
label_hover
Copies the specifiedNkColorto thelabel_hoverfield. -
label_hover
Passes thelabel_hoverfield to the specifiedConsumer. -
label_active
Copies the specifiedNkColorto thelabel_activefield. -
label_active
Passes thelabel_activefield to the specifiedConsumer. -
symbol_normal
Copies the specifiedNkColorto thesymbol_normalfield. -
symbol_normal
Passes thesymbol_normalfield to the specifiedConsumer. -
symbol_hover
Copies the specifiedNkColorto thesymbol_hoverfield. -
symbol_hover
Passes thesymbol_hoverfield to the specifiedConsumer. -
symbol_active
Copies the specifiedNkColorto thesymbol_activefield. -
symbol_active
Passes thesymbol_activefield to the specifiedConsumer. -
button
Copies the specifiedNkStyleButtonto thebuttonfield. -
button
Passes thebuttonfield to the specifiedConsumer. -
sym_normal
Sets the specified value to thesym_normalfield. -
sym_hover
Sets the specified value to thesym_hoverfield. -
sym_active
Sets the specified value to thesym_activefield. -
border
Sets the specified value to theborderfield. -
rounding
Sets the specified value to theroundingfield. -
content_padding
Copies the specifiedNkVec2to thecontent_paddingfield. -
content_padding
Passes thecontent_paddingfield to the specifiedConsumer. -
button_padding
Copies the specifiedNkVec2to thebutton_paddingfield. -
button_padding
Passes thebutton_paddingfield 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 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, 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 newNkStyleComboinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newNkStyleComboinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newNkStyleComboinstance allocated withBufferUtils. -
create
Returns a newNkStyleComboinstance for the specified memory address. -
createSafe
-
malloc
Returns a newNkStyleCombo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newNkStyleCombo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newNkStyleCombo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aNkStyleCombo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newNkStyleComboinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newNkStyleComboinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newNkStyleCombo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newNkStyleCombo.Bufferinstance allocated on the specifiedMemoryStackand 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(). -
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(). -
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. -
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.
-