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.NativeResourceMember documentation
align– one of:HEADER_LEFTHEADER_RIGHT
Layout
struct nk_style_window_header {struct nk_style_itemnormal;struct nk_style_itemhover;struct nk_style_itemactive;struct nk_style_buttonclose_button;struct nk_style_buttonminimize_button; enum nk_symbol_type close_symbol; enum nk_symbol_type minimize_symbol; enum nk_symbol_type maximize_symbol;struct nk_colorlabel_normal;struct nk_colorlabel_hover;struct nk_colorlabel_active; enum nk_style_header_align align;struct nk_vec2padding;struct nk_vec2label_padding;struct nk_vec2spacing; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkStyleWindowHeader.BufferAn array ofNkStyleWindowHeaderstructs.
-
Field Summary
Fields Modifier and Type Field Description static intACTIVE
ALIGNThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intCLOSE_BUTTON
CLOSE_SYMBOL
HOVER
LABEL_ACTIVE
LABEL_HOVER
LABEL_NORMAL
LABEL_PADDING
MAXIMIZE_SYMBOL
MINIMIZE_BUTTON
MINIMIZE_SYMBOL
NORMAL
PADDINGThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSPACINGThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkStyleWindowHeader(java.nio.ByteBuffer container)Creates aNkStyleWindowHeaderinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItemactive()Returns aNkStyleItemview of theactivefield.NkStyleWindowHeaderactive(java.util.function.Consumer<NkStyleItem> consumer)Passes theactivefield to the specifiedConsumer.NkStyleWindowHeaderactive(NkStyleItem value)Copies the specifiedNkStyleItemto theactivefield.intalign()Returns the value of thealignfield.NkStyleWindowHeaderalign(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 NkStyleWindowHeadercallocStack()Returns a newNkStyleWindowHeaderinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NkStyleWindowHeader.BuffercallocStack(int capacity)Returns a newNkStyleWindowHeader.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NkStyleWindowHeader.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkStyleWindowHeader.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkStyleWindowHeadercallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNkStyleWindowHeaderinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.NkStyleButtonclose_button()Returns aNkStyleButtonview of theclose_buttonfield.NkStyleWindowHeaderclose_button(java.util.function.Consumer<NkStyleButton> consumer)Passes theclose_buttonfield to the specifiedConsumer.NkStyleWindowHeaderclose_button(NkStyleButton value)Copies the specifiedNkStyleButtonto theclose_buttonfield.intclose_symbol()Returns the value of theclose_symbolfield.NkStyleWindowHeaderclose_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 NkStyleWindowHeadercreateSafe(long address)static NkStyleWindowHeader.BuffercreateSafe(long address, int capacity)NkStyleItemhover()Returns aNkStyleItemview of thehoverfield.NkStyleWindowHeaderhover(java.util.function.Consumer<NkStyleItem> consumer)Passes thehoverfield to the specifiedConsumer.NkStyleWindowHeaderhover(NkStyleItem value)Copies the specifiedNkStyleItemto thehoverfield.NkColorlabel_active()Returns aNkColorview of thelabel_activefield.NkStyleWindowHeaderlabel_active(java.util.function.Consumer<NkColor> consumer)Passes thelabel_activefield to the specifiedConsumer.NkStyleWindowHeaderlabel_active(NkColor value)Copies the specifiedNkColorto thelabel_activefield.NkColorlabel_hover()Returns aNkColorview of thelabel_hoverfield.NkStyleWindowHeaderlabel_hover(java.util.function.Consumer<NkColor> consumer)Passes thelabel_hoverfield to the specifiedConsumer.NkStyleWindowHeaderlabel_hover(NkColor value)Copies the specifiedNkColorto thelabel_hoverfield.NkColorlabel_normal()Returns aNkColorview of thelabel_normalfield.NkStyleWindowHeaderlabel_normal(java.util.function.Consumer<NkColor> consumer)Passes thelabel_normalfield to the specifiedConsumer.NkStyleWindowHeaderlabel_normal(NkColor value)Copies the specifiedNkColorto thelabel_normalfield.NkVec2label_padding()Returns aNkVec2view of thelabel_paddingfield.NkStyleWindowHeaderlabel_padding(java.util.function.Consumer<NkVec2> consumer)Passes thelabel_paddingfield to the specifiedConsumer.NkStyleWindowHeaderlabel_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 NkStyleWindowHeadermallocStack()Returns a newNkStyleWindowHeaderinstance allocated on the thread-localMemoryStack.static NkStyleWindowHeader.BuffermallocStack(int capacity)Returns a newNkStyleWindowHeader.Bufferinstance allocated on the thread-localMemoryStack.static NkStyleWindowHeader.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkStyleWindowHeader.Bufferinstance allocated on the specifiedMemoryStack.static NkStyleWindowHeadermallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNkStyleWindowHeaderinstance allocated on the specifiedMemoryStack.intmaximize_symbol()Returns the value of themaximize_symbolfield.NkStyleWindowHeadermaximize_symbol(int value)Sets the specified value to themaximize_symbolfield.NkStyleButtonminimize_button()Returns aNkStyleButtonview of theminimize_buttonfield.NkStyleWindowHeaderminimize_button(java.util.function.Consumer<NkStyleButton> consumer)Passes theminimize_buttonfield to the specifiedConsumer.NkStyleWindowHeaderminimize_button(NkStyleButton value)Copies the specifiedNkStyleButtonto theminimize_buttonfield.intminimize_symbol()Returns the value of theminimize_symbolfield.NkStyleWindowHeaderminimize_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.NkStyleItemnormal()Returns aNkStyleItemview of thenormalfield.NkStyleWindowHeadernormal(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormalfield to the specifiedConsumer.NkStyleWindowHeadernormal(NkStyleItem value)Copies the specifiedNkStyleItemto thenormalfield.static NkVec2npadding(long struct)Unsafe version ofpadding().static voidnpadding(long struct, NkVec2 value)Unsafe version ofpadding.static NkVec2nspacing(long struct)Unsafe version ofspacing().static voidnspacing(long struct, NkVec2 value)Unsafe version ofspacing.NkVec2padding()Returns aNkVec2view of thepaddingfield.NkStyleWindowHeaderpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleWindowHeaderpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.NkStyleWindowHeaderset(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.NkStyleWindowHeaderset(NkStyleWindowHeader src)Copies the specified struct data to this struct.intsizeof()NkVec2spacing()Returns aNkVec2view of thespacingfield.NkStyleWindowHeaderspacing(java.util.function.Consumer<NkVec2> consumer)Passes thespacingfield to the specifiedConsumer.NkStyleWindowHeaderspacing(NkVec2 value)Copies the specifiedNkVec2to thespacingfield.
-
-
-
Constructor Detail
-
NkStyleWindowHeader
public NkStyleWindowHeader(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
normal
public NkStyleItem normal()
Returns aNkStyleItemview of thenormalfield.
-
normal
public NkStyleWindowHeader normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormalfield to the specifiedConsumer.
-
hover
public NkStyleItem hover()
Returns aNkStyleItemview of thehoverfield.
-
hover
public NkStyleWindowHeader hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehoverfield to the specifiedConsumer.
-
active
public NkStyleItem active()
Returns aNkStyleItemview of theactivefield.
-
active
public NkStyleWindowHeader active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactivefield to the specifiedConsumer.
-
close_button
public NkStyleButton close_button()
Returns aNkStyleButtonview of theclose_buttonfield.
-
close_button
public NkStyleWindowHeader close_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theclose_buttonfield to the specifiedConsumer.
-
minimize_button
public NkStyleButton minimize_button()
Returns aNkStyleButtonview of theminimize_buttonfield.
-
minimize_button
public NkStyleWindowHeader minimize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theminimize_buttonfield to the specifiedConsumer.
-
close_symbol
public int close_symbol()
Returns the value of theclose_symbolfield.
-
minimize_symbol
public int minimize_symbol()
Returns the value of theminimize_symbolfield.
-
maximize_symbol
public int maximize_symbol()
Returns the value of themaximize_symbolfield.
-
label_normal
public NkStyleWindowHeader label_normal(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_normalfield to the specifiedConsumer.
-
label_hover
public NkStyleWindowHeader label_hover(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_hoverfield to the specifiedConsumer.
-
label_active
public NkStyleWindowHeader label_active(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_activefield to the specifiedConsumer.
-
align
public int align()
Returns the value of thealignfield.
-
padding
public NkStyleWindowHeader padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
label_padding
public NkStyleWindowHeader label_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thelabel_paddingfield to the specifiedConsumer.
-
spacing
public NkStyleWindowHeader spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacingfield to the specifiedConsumer.
-
normal
public NkStyleWindowHeader normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormalfield.
-
hover
public NkStyleWindowHeader hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thehoverfield.
-
active
public NkStyleWindowHeader active(NkStyleItem value)
Copies the specifiedNkStyleItemto theactivefield.
-
close_button
public NkStyleWindowHeader close_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto theclose_buttonfield.
-
minimize_button
public NkStyleWindowHeader minimize_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto theminimize_buttonfield.
-
close_symbol
public NkStyleWindowHeader close_symbol(int value)
Sets the specified value to theclose_symbolfield.
-
minimize_symbol
public NkStyleWindowHeader minimize_symbol(int value)
Sets the specified value to theminimize_symbolfield.
-
maximize_symbol
public NkStyleWindowHeader maximize_symbol(int value)
Sets the specified value to themaximize_symbolfield.
-
label_normal
public NkStyleWindowHeader label_normal(NkColor value)
Copies the specifiedNkColorto thelabel_normalfield.
-
label_hover
public NkStyleWindowHeader label_hover(NkColor value)
Copies the specifiedNkColorto thelabel_hoverfield.
-
label_active
public NkStyleWindowHeader label_active(NkColor value)
Copies the specifiedNkColorto thelabel_activefield.
-
align
public NkStyleWindowHeader align(int value)
Sets the specified value to thealignfield.
-
padding
public NkStyleWindowHeader padding(NkVec2 value)
Copies the specifiedNkVec2to thepaddingfield.
-
label_padding
public NkStyleWindowHeader label_padding(NkVec2 value)
Copies the specifiedNkVec2to thelabel_paddingfield.
-
spacing
public NkStyleWindowHeader spacing(NkVec2 value)
Copies the specifiedNkVec2to thespacingfield.
-
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 newNkStyleWindowHeaderinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static NkStyleWindowHeader calloc()
Returns a newNkStyleWindowHeaderinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static NkStyleWindowHeader create()
Returns a newNkStyleWindowHeaderinstance allocated withBufferUtils.
-
create
public static NkStyleWindowHeader create(long address)
Returns a newNkStyleWindowHeaderinstance for the specified memory address.
-
createSafe
@Nullable public static NkStyleWindowHeader createSafe(long address)
-
malloc
public static NkStyleWindowHeader.Buffer malloc(int capacity)
Returns a newNkStyleWindowHeader.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static NkStyleWindowHeader.Buffer calloc(int capacity)
Returns a newNkStyleWindowHeader.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static NkStyleWindowHeader.Buffer create(int capacity)
Returns a newNkStyleWindowHeader.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static NkStyleWindowHeader.Buffer create(long address, int capacity)
Create aNkStyleWindowHeader.Bufferinstance 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 newNkStyleWindowHeaderinstance allocated on the thread-localMemoryStack.
-
callocStack
public static NkStyleWindowHeader callocStack()
Returns a newNkStyleWindowHeaderinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static NkStyleWindowHeader mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleWindowHeaderinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static NkStyleWindowHeader callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleWindowHeaderinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static NkStyleWindowHeader.Buffer callocStack(int capacity)
Returns a newNkStyleWindowHeader.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-