Package org.lwjgl.nuklear
Class NkStyleWindowHeader
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct nk_style_window_header {
{@link NkStyleItem struct nk_style_item} normal;
{@link NkStyleItem struct nk_style_item} hover;
{@link NkStyleItem struct nk_style_item} active;
{@link NkStyleButton struct nk_style_button} close_button;
{@link NkStyleButton struct nk_style_button} minimize_button;
enum nk_symbol_type close_symbol;
enum nk_symbol_type minimize_symbol;
enum nk_symbol_type maximize_symbol;
{@link NkColor struct nk_color} label_normal;
{@link NkColor struct nk_color} label_hover;
{@link NkColor struct nk_color} label_active;
enum nk_style_header_align align;
{@link NkVec2 struct nk_vec2} padding;
{@link NkVec2 struct nk_vec2} label_padding;
{@link NkVec2 struct nk_vec2} spacing;
}
-
Nested Class Summary
Nested ClassesNested 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
FieldsModifier and TypeFieldDescriptionstatic final int
The struct member offsets.static 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 member offsets.static final int
The struct size in bytes.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
ConstructorsConstructorDescriptionNkStyleWindowHeader
(ByteBuffer container) Creates aNkStyleWindowHeader
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.int
align()
align
(int value) Sets the specified value to thealign
field.static NkStyleWindowHeader
calloc()
Returns a newNkStyleWindowHeader
instance allocated withmemCalloc
.static NkStyleWindowHeader.Buffer
calloc
(int capacity) Returns a newNkStyleWindowHeader.Buffer
instance allocated withmemCalloc
.static NkStyleWindowHeader.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newNkStyleWindowHeader.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkStyleWindowHeader
calloc
(MemoryStack stack) Returns a newNkStyleWindowHeader
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkStyleWindowHeader
Deprecated.static NkStyleWindowHeader.Buffer
callocStack
(int capacity) Deprecated.static NkStyleWindowHeader.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static NkStyleWindowHeader
callocStack
(MemoryStack stack) Deprecated.close_button
(Consumer<NkStyleButton> consumer) Passes theclose_button
field to the specifiedConsumer
.close_button
(NkStyleButton value) Copies the specifiedNkStyleButton
to theclose_button
field.int
close_symbol
(int value) Sets the specified value to theclose_symbol
field.static NkStyleWindowHeader
create()
Returns a newNkStyleWindowHeader
instance allocated withBufferUtils
.static NkStyleWindowHeader.Buffer
create
(int capacity) Returns a newNkStyleWindowHeader.Buffer
instance allocated withBufferUtils
.static NkStyleWindowHeader
create
(long address) Returns a newNkStyleWindowHeader
instance for the specified memory address.static NkStyleWindowHeader.Buffer
create
(long address, int capacity) Create aNkStyleWindowHeader.Buffer
instance at the specified memory.static @Nullable NkStyleWindowHeader
createSafe
(long address) static @Nullable NkStyleWindowHeader.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.label_padding
(Consumer<NkVec2> consumer) Passes thelabel_padding
field to the specifiedConsumer
.label_padding
(NkVec2 value) Copies the specifiedNkVec2
to thelabel_padding
field.static NkStyleWindowHeader
malloc()
Returns a newNkStyleWindowHeader
instance allocated withmemAlloc
.static NkStyleWindowHeader.Buffer
malloc
(int capacity) Returns a newNkStyleWindowHeader.Buffer
instance allocated withmemAlloc
.static NkStyleWindowHeader.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newNkStyleWindowHeader.Buffer
instance allocated on the specifiedMemoryStack
.static NkStyleWindowHeader
malloc
(MemoryStack stack) Returns a newNkStyleWindowHeader
instance allocated on the specifiedMemoryStack
.static NkStyleWindowHeader
Deprecated.static NkStyleWindowHeader.Buffer
mallocStack
(int capacity) Deprecated.static NkStyleWindowHeader.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static NkStyleWindowHeader
mallocStack
(MemoryStack stack) Deprecated.int
maximize_symbol
(int value) Sets the specified value to themaximize_symbol
field.minimize_button
(Consumer<NkStyleButton> consumer) Passes theminimize_button
field to the specifiedConsumer
.minimize_button
(NkStyleButton value) Copies the specifiedNkStyleButton
to theminimize_button
field.int
minimize_symbol
(int value) Sets the specified value to theminimize_symbol
field.static NkStyleItem
nactive
(long struct) Unsafe version ofactive()
.static void
nactive
(long struct, NkStyleItem value) Unsafe version ofactive
.static int
nalign
(long struct) Unsafe version ofalign()
.static void
nalign
(long struct, int value) Unsafe version ofalign
.static NkStyleButton
nclose_button
(long struct) Unsafe version ofclose_button()
.static void
nclose_button
(long struct, NkStyleButton value) Unsafe version ofclose_button
.static int
nclose_symbol
(long struct) Unsafe version ofclose_symbol()
.static void
nclose_symbol
(long struct, int value) Unsafe version ofclose_symbol
.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 NkVec2
nlabel_padding
(long struct) Unsafe version oflabel_padding()
.static void
nlabel_padding
(long struct, NkVec2 value) Unsafe version oflabel_padding
.static int
nmaximize_symbol
(long struct) Unsafe version ofmaximize_symbol()
.static void
nmaximize_symbol
(long struct, int value) Unsafe version ofmaximize_symbol
.static NkStyleButton
nminimize_button
(long struct) Unsafe version ofminimize_button()
.static void
nminimize_button
(long struct, NkStyleButton value) Unsafe version ofminimize_button
.static int
nminimize_symbol
(long struct) Unsafe version ofminimize_symbol()
.static void
nminimize_symbol
(long struct, int value) Unsafe version ofminimize_symbol
.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 NkVec2
npadding
(long struct) Unsafe version ofpadding()
.static void
Unsafe version ofpadding
.static NkVec2
nspacing
(long struct) Unsafe version ofspacing()
.static void
Unsafe version ofspacing
.padding()
Passes thepadding
field to the specifiedConsumer
.Copies the specifiedNkVec2
to thepadding
field.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.int
sizeof()
Returnssizeof(struct)
.spacing()
Passes thespacing
field to the specifiedConsumer
.Copies the specifiedNkVec2
to thespacing
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. -
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 aNkStyleWindowHeader
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<NkStyleWindowHeader>
-
normal
- Returns:
- a
NkStyleItem
view of thenormal
field.
-
hover
- Returns:
- a
NkStyleItem
view of thehover
field.
-
active
- Returns:
- a
NkStyleItem
view of theactive
field.
-
close_button
- Returns:
- a
NkStyleButton
view of theclose_button
field.
-
minimize_button
- Returns:
- a
NkStyleButton
view of theminimize_button
field.
-
close_symbol
public int close_symbol()- Returns:
- the value of the
close_symbol
field.
-
minimize_symbol
public int minimize_symbol()- Returns:
- the value of the
minimize_symbol
field.
-
maximize_symbol
public int maximize_symbol()- Returns:
- the value of the
maximize_symbol
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.
-
align
public int align()- Returns:
- the value of the
align
field.
-
padding
- Returns:
- a
NkVec2
view of thepadding
field.
-
label_padding
- Returns:
- a
NkVec2
view of thelabel_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
. -
close_button
Copies the specifiedNkStyleButton
to theclose_button
field. -
close_button
Passes theclose_button
field to the specifiedConsumer
. -
minimize_button
Copies the specifiedNkStyleButton
to theminimize_button
field. -
minimize_button
Passes theminimize_button
field to the specifiedConsumer
. -
close_symbol
Sets the specified value to theclose_symbol
field. -
minimize_symbol
Sets the specified value to theminimize_symbol
field. -
maximize_symbol
Sets the specified value to themaximize_symbol
field. -
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
. -
align
Sets the specified value to thealign
field. -
padding
Copies the specifiedNkVec2
to thepadding
field. -
padding
Passes thepadding
field to the specifiedConsumer
. -
label_padding
Copies the specifiedNkVec2
to thelabel_padding
field. -
label_padding
Passes thelabel_padding
field to the specifiedConsumer
. -
spacing
Copies the specifiedNkVec2
to thespacing
field. -
spacing
Passes thespacing
field 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 newNkStyleWindowHeader
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newNkStyleWindowHeader
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newNkStyleWindowHeader
instance allocated withBufferUtils
. -
create
Returns a newNkStyleWindowHeader
instance for the specified memory address. -
createSafe
-
malloc
Returns a newNkStyleWindowHeader.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newNkStyleWindowHeader.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newNkStyleWindowHeader.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aNkStyleWindowHeader.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 newNkStyleWindowHeader
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newNkStyleWindowHeader
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newNkStyleWindowHeader.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newNkStyleWindowHeader.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()
. -
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
.
-