Package org.lwjgl.nuklear
Class NkStyleWindowHeader
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct nk_style_window_header {
struct nk_style_item normal;
struct nk_style_item hover;
struct nk_style_item active;
struct nk_style_button close_button;
struct nk_style_button minimize_button;
enum nk_symbol_type close_symbol;
enum nk_symbol_type minimize_symbol;
enum nk_symbol_type maximize_symbol;
struct nk_color label_normal;
struct nk_color label_hover;
struct nk_color label_active;
enum nk_style_header_align align;
struct nk_vec2 padding;
struct nk_vec2 label_padding;
struct nk_vec2 spacing;
}-
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 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 size in bytes.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
ConstructorsConstructorDescriptionNkStyleWindowHeader(ByteBuffer container) Creates aNkStyleWindowHeaderinstance 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.intalign()align(int value) Sets the specified value to thealignfield.static NkStyleWindowHeadercalloc()Returns a newNkStyleWindowHeaderinstance allocated withmemCalloc.static NkStyleWindowHeader.Buffercalloc(int capacity) Returns a newNkStyleWindowHeader.Bufferinstance allocated withmemCalloc.static NkStyleWindowHeader.Buffercalloc(int capacity, MemoryStack stack) Returns a newNkStyleWindowHeader.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkStyleWindowHeadercalloc(MemoryStack stack) Returns a newNkStyleWindowHeaderinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.close_button(Consumer<NkStyleButton> consumer) Passes theclose_buttonfield to the specifiedConsumer.close_button(NkStyleButton value) Copies the specifiedNkStyleButtonto theclose_buttonfield.intclose_symbol(int value) Sets the specified value to theclose_symbolfield.static NkStyleWindowHeadercreate()Returns a newNkStyleWindowHeaderinstance allocated withBufferUtils.static NkStyleWindowHeader.Buffercreate(int capacity) Returns a newNkStyleWindowHeader.Bufferinstance allocated withBufferUtils.static NkStyleWindowHeadercreate(long address) Returns a newNkStyleWindowHeaderinstance for the specified memory address.static NkStyleWindowHeader.Buffercreate(long address, int capacity) Create aNkStyleWindowHeader.Bufferinstance at the specified memory.static @Nullable NkStyleWindowHeadercreateSafe(long address) static @Nullable NkStyleWindowHeader.BuffercreateSafe(long address, int capacity) 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.label_padding(Consumer<NkVec2> consumer) Passes thelabel_paddingfield to the specifiedConsumer.label_padding(NkVec2 value) Copies the specifiedNkVec2to thelabel_paddingfield.static NkStyleWindowHeadermalloc()Returns a newNkStyleWindowHeaderinstance allocated withmemAlloc.static NkStyleWindowHeader.Buffermalloc(int capacity) Returns a newNkStyleWindowHeader.Bufferinstance allocated withmemAlloc.static NkStyleWindowHeader.Buffermalloc(int capacity, MemoryStack stack) Returns a newNkStyleWindowHeader.Bufferinstance allocated on the specifiedMemoryStack.static NkStyleWindowHeadermalloc(MemoryStack stack) Returns a newNkStyleWindowHeaderinstance allocated on the specifiedMemoryStack.intmaximize_symbol(int value) Sets the specified value to themaximize_symbolfield.minimize_button(Consumer<NkStyleButton> consumer) Passes theminimize_buttonfield to the specifiedConsumer.minimize_button(NkStyleButton value) Copies the specifiedNkStyleButtonto theminimize_buttonfield.intminimize_symbol(int value) Sets the specified value to theminimize_symbolfield.static NkStyleItemnactive(long struct) Unsafe version ofactive().static voidnactive(long struct, NkStyleItem value) Unsafe version ofactive.static intnalign(long struct) Unsafe version ofalign().static voidnalign(long struct, int value) Unsafe version ofalign.static NkStyleButtonnclose_button(long struct) Unsafe version ofclose_button().static voidnclose_button(long struct, NkStyleButton value) Unsafe version ofclose_button.static intnclose_symbol(long struct) Unsafe version ofclose_symbol().static voidnclose_symbol(long struct, int value) Unsafe version ofclose_symbol.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 NkVec2nlabel_padding(long struct) Unsafe version oflabel_padding().static voidnlabel_padding(long struct, NkVec2 value) Unsafe version oflabel_padding.static intnmaximize_symbol(long struct) Unsafe version ofmaximize_symbol().static voidnmaximize_symbol(long struct, int value) Unsafe version ofmaximize_symbol.static NkStyleButtonnminimize_button(long struct) Unsafe version ofminimize_button().static voidnminimize_button(long struct, NkStyleButton value) Unsafe version ofminimize_button.static intnminimize_symbol(long struct) Unsafe version ofminimize_symbol().static voidnminimize_symbol(long struct, int value) Unsafe version ofminimize_symbol.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 NkVec2npadding(long struct) Unsafe version ofpadding().static voidUnsafe version ofpadding.static NkVec2nspacing(long struct) Unsafe version ofspacing().static voidUnsafe version ofspacing.padding()Passes thepaddingfield to the specifiedConsumer.Copies the specifiedNkVec2to thepaddingfield.set(NkStyleItem normal, NkStyleItem hover, NkStyleItem active, NkStyleButton close_button, NkStyleButton minimize_button, int close_symbol, int minimize_symbol, int maximize_symbol, NkColor label_normal, NkColor label_hover, NkColor label_active, int align, NkVec2 padding, NkVec2 label_padding, NkVec2 spacing) Initializes this struct with the specified values.set(NkStyleWindowHeader src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).spacing()Passes thespacingfield to the specifiedConsumer.Copies the specifiedNkVec2to thespacingfield.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. -
CLOSE_BUTTON
public static final int CLOSE_BUTTONThe struct member offsets. -
MINIMIZE_BUTTON
public static final int MINIMIZE_BUTTONThe struct member offsets. -
CLOSE_SYMBOL
public static final int CLOSE_SYMBOLThe struct member offsets. -
MINIMIZE_SYMBOL
public static final int MINIMIZE_SYMBOLThe struct member offsets. -
MAXIMIZE_SYMBOL
public static final int MAXIMIZE_SYMBOLThe 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. -
ALIGN
public static final int ALIGNThe struct member offsets. -
PADDING
public static final int PADDINGThe struct member offsets. -
LABEL_PADDING
public static final int LABEL_PADDINGThe struct member offsets. -
SPACING
public static final int SPACINGThe struct member offsets.
-
-
Constructor Details
-
NkStyleWindowHeader
Creates aNkStyleWindowHeaderinstance 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<NkStyleWindowHeader>
-
normal
- Returns:
- a
NkStyleItemview of thenormalfield.
-
hover
- Returns:
- a
NkStyleItemview of thehoverfield.
-
active
- Returns:
- a
NkStyleItemview of theactivefield.
-
close_button
- Returns:
- a
NkStyleButtonview of theclose_buttonfield.
-
minimize_button
- Returns:
- a
NkStyleButtonview of theminimize_buttonfield.
-
close_symbol
public int close_symbol()- Returns:
- the value of the
close_symbolfield.
-
minimize_symbol
public int minimize_symbol()- Returns:
- the value of the
minimize_symbolfield.
-
maximize_symbol
public int maximize_symbol()- Returns:
- the value of the
maximize_symbolfield.
-
label_normal
- Returns:
- a
NkColorview of thelabel_normalfield.
-
label_hover
- Returns:
- a
NkColorview of thelabel_hoverfield.
-
label_active
- Returns:
- a
NkColorview of thelabel_activefield.
-
align
public int align()- Returns:
- the value of the
alignfield.
-
padding
- Returns:
- a
NkVec2view of thepaddingfield.
-
label_padding
- Returns:
- a
NkVec2view of thelabel_paddingfield.
-
spacing
- Returns:
- a
NkVec2view of thespacingfield.
-
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. -
close_button
Copies the specifiedNkStyleButtonto theclose_buttonfield. -
close_button
Passes theclose_buttonfield to the specifiedConsumer. -
minimize_button
Copies the specifiedNkStyleButtonto theminimize_buttonfield. -
minimize_button
Passes theminimize_buttonfield to the specifiedConsumer. -
close_symbol
Sets the specified value to theclose_symbolfield. -
minimize_symbol
Sets the specified value to theminimize_symbolfield. -
maximize_symbol
Sets the specified value to themaximize_symbolfield. -
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. -
align
Sets the specified value to thealignfield. -
padding
Copies the specifiedNkVec2to thepaddingfield. -
padding
Passes thepaddingfield to the specifiedConsumer. -
label_padding
Copies the specifiedNkVec2to thelabel_paddingfield. -
label_padding
Passes thelabel_paddingfield to the specifiedConsumer. -
spacing
Copies the specifiedNkVec2to thespacingfield. -
spacing
Passes thespacingfield to the specifiedConsumer. -
set
public NkStyleWindowHeader set(NkStyleItem normal, NkStyleItem hover, NkStyleItem active, NkStyleButton close_button, NkStyleButton minimize_button, int close_symbol, int minimize_symbol, int maximize_symbol, NkColor label_normal, NkColor label_hover, NkColor label_active, int align, NkVec2 padding, NkVec2 label_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 newNkStyleWindowHeaderinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newNkStyleWindowHeaderinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newNkStyleWindowHeaderinstance allocated withBufferUtils. -
create
Returns a newNkStyleWindowHeaderinstance for the specified memory address. -
createSafe
-
malloc
Returns a newNkStyleWindowHeader.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newNkStyleWindowHeader.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newNkStyleWindowHeader.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aNkStyleWindowHeader.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newNkStyleWindowHeaderinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newNkStyleWindowHeaderinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newNkStyleWindowHeader.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newNkStyleWindowHeader.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(). -
nclose_button
Unsafe version ofclose_button(). -
nminimize_button
Unsafe version ofminimize_button(). -
nclose_symbol
public static int nclose_symbol(long struct) Unsafe version ofclose_symbol(). -
nminimize_symbol
public static int nminimize_symbol(long struct) Unsafe version ofminimize_symbol(). -
nmaximize_symbol
public static int nmaximize_symbol(long struct) Unsafe version ofmaximize_symbol(). -
nlabel_normal
Unsafe version oflabel_normal(). -
nlabel_hover
Unsafe version oflabel_hover(). -
nlabel_active
Unsafe version oflabel_active(). -
nalign
public static int nalign(long struct) Unsafe version ofalign(). -
npadding
Unsafe version ofpadding(). -
nlabel_padding
Unsafe version oflabel_padding(). -
nspacing
Unsafe version ofspacing(). -
nnormal
Unsafe version ofnormal. -
nhover
Unsafe version ofhover. -
nactive
Unsafe version ofactive. -
nclose_button
Unsafe version ofclose_button. -
nminimize_button
Unsafe version ofminimize_button. -
nclose_symbol
public static void nclose_symbol(long struct, int value) Unsafe version ofclose_symbol. -
nminimize_symbol
public static void nminimize_symbol(long struct, int value) Unsafe version ofminimize_symbol. -
nmaximize_symbol
public static void nmaximize_symbol(long struct, int value) Unsafe version ofmaximize_symbol. -
nlabel_normal
Unsafe version oflabel_normal. -
nlabel_hover
Unsafe version oflabel_hover. -
nlabel_active
Unsafe version oflabel_active. -
nalign
public static void nalign(long struct, int value) Unsafe version ofalign. -
npadding
Unsafe version ofpadding. -
nlabel_padding
Unsafe version oflabel_padding. -
nspacing
Unsafe version ofspacing.
-