Package org.lwjgl.nuklear
Class NkStyleWindowHeader
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkStyleWindowHeader
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class NkStyleWindowHeader extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Member documentation
align
– one of:HEADER_LEFT
HEADER_RIGHT
Layout
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 Classes Modifier and Type Class Description static class
NkStyleWindowHeader.Buffer
An array ofNkStyleWindowHeader
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ACTIVE
ALIGNThe struct member offsets.static int
ALIGNOF
The struct alignment in bytes.static int
CLOSE_BUTTON
CLOSE_SYMBOL
HOVER
LABEL_ACTIVE
LABEL_HOVER
LABEL_NORMAL
LABEL_PADDING
MAXIMIZE_SYMBOL
MINIMIZE_BUTTON
MINIMIZE_SYMBOL
NORMAL
PADDINGThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
SPACING
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkStyleWindowHeader(java.nio.ByteBuffer container)
Creates aNkStyleWindowHeader
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
active()
Returns aNkStyleItem
view of theactive
field.NkStyleWindowHeader
active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactive
field to the specifiedConsumer
.NkStyleWindowHeader
active(NkStyleItem value)
Copies the specifiedNkStyleItem
to theactive
field.int
align()
Returns the value of thealign
field.NkStyleWindowHeader
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
callocStack()
Returns a newNkStyleWindowHeader
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static NkStyleWindowHeader.Buffer
callocStack(int capacity)
Returns a newNkStyleWindowHeader.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static NkStyleWindowHeader.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleWindowHeader.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkStyleWindowHeader
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleWindowHeader
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.NkStyleButton
close_button()
Returns aNkStyleButton
view of theclose_button
field.NkStyleWindowHeader
close_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theclose_button
field to the specifiedConsumer
.NkStyleWindowHeader
close_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to theclose_button
field.int
close_symbol()
Returns the value of theclose_symbol
field.NkStyleWindowHeader
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 NkStyleWindowHeader
createSafe(long address)
static NkStyleWindowHeader.Buffer
createSafe(long address, int capacity)
NkStyleItem
hover()
Returns aNkStyleItem
view of thehover
field.NkStyleWindowHeader
hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover
field to the specifiedConsumer
.NkStyleWindowHeader
hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover
field.NkColor
label_active()
Returns aNkColor
view of thelabel_active
field.NkStyleWindowHeader
label_active(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_active
field to the specifiedConsumer
.NkStyleWindowHeader
label_active(NkColor value)
Copies the specifiedNkColor
to thelabel_active
field.NkColor
label_hover()
Returns aNkColor
view of thelabel_hover
field.NkStyleWindowHeader
label_hover(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_hover
field to the specifiedConsumer
.NkStyleWindowHeader
label_hover(NkColor value)
Copies the specifiedNkColor
to thelabel_hover
field.NkColor
label_normal()
Returns aNkColor
view of thelabel_normal
field.NkStyleWindowHeader
label_normal(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_normal
field to the specifiedConsumer
.NkStyleWindowHeader
label_normal(NkColor value)
Copies the specifiedNkColor
to thelabel_normal
field.NkVec2
label_padding()
Returns aNkVec2
view of thelabel_padding
field.NkStyleWindowHeader
label_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thelabel_padding
field to the specifiedConsumer
.NkStyleWindowHeader
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
mallocStack()
Returns a newNkStyleWindowHeader
instance allocated on the thread-localMemoryStack
.static NkStyleWindowHeader.Buffer
mallocStack(int capacity)
Returns a newNkStyleWindowHeader.Buffer
instance allocated on the thread-localMemoryStack
.static NkStyleWindowHeader.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleWindowHeader.Buffer
instance allocated on the specifiedMemoryStack
.static NkStyleWindowHeader
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleWindowHeader
instance allocated on the specifiedMemoryStack
.int
maximize_symbol()
Returns the value of themaximize_symbol
field.NkStyleWindowHeader
maximize_symbol(int value)
Sets the specified value to themaximize_symbol
field.NkStyleButton
minimize_button()
Returns aNkStyleButton
view of theminimize_button
field.NkStyleWindowHeader
minimize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theminimize_button
field to the specifiedConsumer
.NkStyleWindowHeader
minimize_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to theminimize_button
field.int
minimize_symbol()
Returns the value of theminimize_symbol
field.NkStyleWindowHeader
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
.NkStyleItem
normal()
Returns aNkStyleItem
view of thenormal
field.NkStyleWindowHeader
normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal
field to the specifiedConsumer
.NkStyleWindowHeader
normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal
field.static NkVec2
npadding(long struct)
Unsafe version ofpadding()
.static void
npadding(long struct, NkVec2 value)
Unsafe version ofpadding
.static NkVec2
nspacing(long struct)
Unsafe version ofspacing()
.static void
nspacing(long struct, NkVec2 value)
Unsafe version ofspacing
.NkVec2
padding()
Returns aNkVec2
view of thepadding
field.NkStyleWindowHeader
padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.NkStyleWindowHeader
padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.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.NkStyleWindowHeader
set(NkStyleWindowHeader src)
Copies the specified struct data to this struct.int
sizeof()
NkVec2
spacing()
Returns aNkVec2
view of thespacing
field.NkStyleWindowHeader
spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacing
field to the specifiedConsumer
.NkStyleWindowHeader
spacing(NkVec2 value)
Copies the specifiedNkVec2
to thespacing
field.
-
-
-
Constructor Detail
-
NkStyleWindowHeader
public NkStyleWindowHeader(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
normal
public NkStyleItem normal()
Returns aNkStyleItem
view of thenormal
field.
-
hover
public NkStyleItem hover()
Returns aNkStyleItem
view of thehover
field.
-
active
public NkStyleItem active()
Returns aNkStyleItem
view of theactive
field.
-
close_button
public NkStyleButton close_button()
Returns aNkStyleButton
view of theclose_button
field.
-
minimize_button
public NkStyleButton minimize_button()
Returns aNkStyleButton
view of theminimize_button
field.
-
close_symbol
public int close_symbol()
Returns the value of theclose_symbol
field.
-
minimize_symbol
public int minimize_symbol()
Returns the value of theminimize_symbol
field.
-
maximize_symbol
public int maximize_symbol()
Returns the value of themaximize_symbol
field.
-
align
public int align()
Returns the value of thealign
field.
-
normal
public NkStyleWindowHeader normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal
field.
-
normal
public NkStyleWindowHeader normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal
field to the specifiedConsumer
.
-
hover
public NkStyleWindowHeader hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover
field.
-
hover
public NkStyleWindowHeader hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover
field to the specifiedConsumer
.
-
active
public NkStyleWindowHeader active(NkStyleItem value)
Copies the specifiedNkStyleItem
to theactive
field.
-
active
public NkStyleWindowHeader active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactive
field to the specifiedConsumer
.
-
close_button
public NkStyleWindowHeader close_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to theclose_button
field.
-
close_button
public NkStyleWindowHeader close_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theclose_button
field to the specifiedConsumer
.
-
minimize_button
public NkStyleWindowHeader minimize_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to theminimize_button
field.
-
minimize_button
public NkStyleWindowHeader minimize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theminimize_button
field to the specifiedConsumer
.
-
close_symbol
public NkStyleWindowHeader close_symbol(int value)
Sets the specified value to theclose_symbol
field.
-
minimize_symbol
public NkStyleWindowHeader minimize_symbol(int value)
Sets the specified value to theminimize_symbol
field.
-
maximize_symbol
public NkStyleWindowHeader maximize_symbol(int value)
Sets the specified value to themaximize_symbol
field.
-
label_normal
public NkStyleWindowHeader label_normal(NkColor value)
Copies the specifiedNkColor
to thelabel_normal
field.
-
label_normal
public NkStyleWindowHeader label_normal(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_normal
field to the specifiedConsumer
.
-
label_hover
public NkStyleWindowHeader label_hover(NkColor value)
Copies the specifiedNkColor
to thelabel_hover
field.
-
label_hover
public NkStyleWindowHeader label_hover(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_hover
field to the specifiedConsumer
.
-
label_active
public NkStyleWindowHeader label_active(NkColor value)
Copies the specifiedNkColor
to thelabel_active
field.
-
label_active
public NkStyleWindowHeader label_active(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_active
field to the specifiedConsumer
.
-
align
public NkStyleWindowHeader align(int value)
Sets the specified value to thealign
field.
-
padding
public NkStyleWindowHeader padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.
-
padding
public NkStyleWindowHeader padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.
-
label_padding
public NkStyleWindowHeader label_padding(NkVec2 value)
Copies the specifiedNkVec2
to thelabel_padding
field.
-
label_padding
public NkStyleWindowHeader label_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thelabel_padding
field to the specifiedConsumer
.
-
spacing
public NkStyleWindowHeader spacing(NkVec2 value)
Copies the specifiedNkVec2
to thespacing
field.
-
spacing
public NkStyleWindowHeader spacing(java.util.function.Consumer<NkVec2> consumer)
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
public NkStyleWindowHeader set(NkStyleWindowHeader src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static NkStyleWindowHeader malloc()
Returns a newNkStyleWindowHeader
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static NkStyleWindowHeader calloc()
Returns a newNkStyleWindowHeader
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static NkStyleWindowHeader create()
Returns a newNkStyleWindowHeader
instance allocated withBufferUtils
.
-
create
public static NkStyleWindowHeader create(long address)
Returns a newNkStyleWindowHeader
instance for the specified memory address.
-
createSafe
@Nullable public static NkStyleWindowHeader createSafe(long address)
-
malloc
public static NkStyleWindowHeader.Buffer malloc(int capacity)
Returns a newNkStyleWindowHeader.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static NkStyleWindowHeader.Buffer calloc(int capacity)
Returns a newNkStyleWindowHeader.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static NkStyleWindowHeader.Buffer create(int capacity)
Returns a newNkStyleWindowHeader.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static NkStyleWindowHeader.Buffer create(long address, int capacity)
Create aNkStyleWindowHeader.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static NkStyleWindowHeader.Buffer createSafe(long address, int capacity)
-
mallocStack
public static NkStyleWindowHeader mallocStack()
Returns a newNkStyleWindowHeader
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static NkStyleWindowHeader callocStack()
Returns a newNkStyleWindowHeader
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static NkStyleWindowHeader mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleWindowHeader
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static NkStyleWindowHeader callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleWindowHeader
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static NkStyleWindowHeader.Buffer mallocStack(int capacity)
Returns a newNkStyleWindowHeader.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static NkStyleWindowHeader.Buffer callocStack(int capacity)
Returns a newNkStyleWindowHeader.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static NkStyleWindowHeader.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleWindowHeader.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static NkStyleWindowHeader.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleWindowHeader.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nnormal
public static NkStyleItem nnormal(long struct)
Unsafe version ofnormal()
.
-
nhover
public static NkStyleItem nhover(long struct)
Unsafe version ofhover()
.
-
nactive
public static NkStyleItem nactive(long struct)
Unsafe version ofactive()
.
-
nclose_button
public static NkStyleButton nclose_button(long struct)
Unsafe version ofclose_button()
.
-
nminimize_button
public static NkStyleButton nminimize_button(long struct)
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
public static NkColor nlabel_normal(long struct)
Unsafe version oflabel_normal()
.
-
nlabel_hover
public static NkColor nlabel_hover(long struct)
Unsafe version oflabel_hover()
.
-
nlabel_active
public static NkColor nlabel_active(long struct)
Unsafe version oflabel_active()
.
-
nalign
public static int nalign(long struct)
Unsafe version ofalign()
.
-
nlabel_padding
public static NkVec2 nlabel_padding(long struct)
Unsafe version oflabel_padding()
.
-
nnormal
public static void nnormal(long struct, NkStyleItem value)
Unsafe version ofnormal
.
-
nhover
public static void nhover(long struct, NkStyleItem value)
Unsafe version ofhover
.
-
nactive
public static void nactive(long struct, NkStyleItem value)
Unsafe version ofactive
.
-
nclose_button
public static void nclose_button(long struct, NkStyleButton value)
Unsafe version ofclose_button
.
-
nminimize_button
public static void nminimize_button(long struct, NkStyleButton value)
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
public static void nlabel_normal(long struct, NkColor value)
Unsafe version oflabel_normal
.
-
nlabel_hover
public static void nlabel_hover(long struct, NkColor value)
Unsafe version oflabel_hover
.
-
nlabel_active
public static void nlabel_active(long struct, NkColor value)
Unsafe version oflabel_active
.
-
nalign
public static void nalign(long struct, int value)
Unsafe version ofalign
.
-
nlabel_padding
public static void nlabel_padding(long struct, NkVec2 value)
Unsafe version oflabel_padding
.
-
-