Package org.lwjgl.nuklear
Class NkStyleProgress
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkStyleProgress
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class NkStyleProgress extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct nk_style_progress {struct nk_style_itemnormal;struct nk_style_itemhover;struct nk_style_itemactive;struct nk_colorborder_color;struct nk_style_itemcursor_normal;struct nk_style_itemcursor_hover;struct nk_style_itemcursor_active;struct nk_colorcursor_border_color; float rounding; float border; float cursor_border; float cursor_rounding;struct nk_vec2padding;nk_handleuserdata;nk_draw_begindraw_begin;nk_draw_enddraw_end; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkStyleProgress.BufferAn array ofNkStyleProgressstructs.
-
Field Summary
Fields Modifier and Type Field Description static intACTIVEThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intBORDER
BORDER_COLOR
CURSOR_ACTIVE
CURSOR_BORDER
CURSOR_BORDER_COLOR
CURSOR_HOVER
CURSOR_NORMAL
CURSOR_ROUNDING
DRAW_BEGIN
DRAW_END
HOVER
NORMAL
PADDING
ROUNDINGThe struct member offsets.static intSIZEOFThe struct size in bytes.static intUSERDATAThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkStyleProgress(java.nio.ByteBuffer container)Creates aNkStyleProgressinstance 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.NkStyleProgressactive(java.util.function.Consumer<NkStyleItem> consumer)Passes theactivefield to the specifiedConsumer.NkStyleProgressactive(NkStyleItem value)Copies the specifiedNkStyleItemto theactivefield.floatborder()Returns the value of theborderfield.NkStyleProgressborder(float value)Sets the specified value to theborderfield.NkColorborder_color()Returns aNkColorview of theborder_colorfield.NkStyleProgressborder_color(java.util.function.Consumer<NkColor> consumer)Passes theborder_colorfield to the specifiedConsumer.NkStyleProgressborder_color(NkColor value)Copies the specifiedNkColorto theborder_colorfield.static NkStyleProgresscalloc()Returns a newNkStyleProgressinstance allocated withmemCalloc.static NkStyleProgress.Buffercalloc(int capacity)Returns a newNkStyleProgress.Bufferinstance allocated withmemCalloc.static NkStyleProgresscallocStack()Returns a newNkStyleProgressinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NkStyleProgress.BuffercallocStack(int capacity)Returns a newNkStyleProgress.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NkStyleProgress.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkStyleProgress.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkStyleProgresscallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNkStyleProgressinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkStyleProgresscreate()Returns a newNkStyleProgressinstance allocated withBufferUtils.static NkStyleProgress.Buffercreate(int capacity)Returns a newNkStyleProgress.Bufferinstance allocated withBufferUtils.static NkStyleProgresscreate(long address)Returns a newNkStyleProgressinstance for the specified memory address.static NkStyleProgress.Buffercreate(long address, int capacity)Create aNkStyleProgress.Bufferinstance at the specified memory.static NkStyleProgresscreateSafe(long address)static NkStyleProgress.BuffercreateSafe(long address, int capacity)NkStyleItemcursor_active()Returns aNkStyleItemview of thecursor_activefield.NkStyleProgresscursor_active(java.util.function.Consumer<NkStyleItem> consumer)Passes thecursor_activefield to the specifiedConsumer.NkStyleProgresscursor_active(NkStyleItem value)Copies the specifiedNkStyleItemto thecursor_activefield.floatcursor_border()Returns the value of thecursor_borderfield.NkStyleProgresscursor_border(float value)Sets the specified value to thecursor_borderfield.NkColorcursor_border_color()Returns aNkColorview of thecursor_border_colorfield.NkStyleProgresscursor_border_color(java.util.function.Consumer<NkColor> consumer)Passes thecursor_border_colorfield to the specifiedConsumer.NkStyleProgresscursor_border_color(NkColor value)Copies the specifiedNkColorto thecursor_border_colorfield.NkStyleItemcursor_hover()Returns aNkStyleItemview of thecursor_hoverfield.NkStyleProgresscursor_hover(java.util.function.Consumer<NkStyleItem> consumer)Passes thecursor_hoverfield to the specifiedConsumer.NkStyleProgresscursor_hover(NkStyleItem value)Copies the specifiedNkStyleItemto thecursor_hoverfield.NkStyleItemcursor_normal()Returns aNkStyleItemview of thecursor_normalfield.NkStyleProgresscursor_normal(java.util.function.Consumer<NkStyleItem> consumer)Passes thecursor_normalfield to the specifiedConsumer.NkStyleProgresscursor_normal(NkStyleItem value)Copies the specifiedNkStyleItemto thecursor_normalfield.floatcursor_rounding()Returns the value of thecursor_roundingfield.NkStyleProgresscursor_rounding(float value)Sets the specified value to thecursor_roundingfield.NkDrawBeginCallbackdraw_begin()Returns the value of thedraw_beginfield.NkStyleProgressdraw_begin(NkDrawBeginCallbackI value)Sets the specified value to thedraw_beginfield.NkDrawEndCallbackdraw_end()Returns the value of thedraw_endfield.NkStyleProgressdraw_end(NkDrawEndCallbackI value)Sets the specified value to thedraw_endfield.NkStyleItemhover()Returns aNkStyleItemview of thehoverfield.NkStyleProgresshover(java.util.function.Consumer<NkStyleItem> consumer)Passes thehoverfield to the specifiedConsumer.NkStyleProgresshover(NkStyleItem value)Copies the specifiedNkStyleItemto thehoverfield.static NkStyleProgressmalloc()Returns a newNkStyleProgressinstance allocated withmemAlloc.static NkStyleProgress.Buffermalloc(int capacity)Returns a newNkStyleProgress.Bufferinstance allocated withmemAlloc.static NkStyleProgressmallocStack()Returns a newNkStyleProgressinstance allocated on the thread-localMemoryStack.static NkStyleProgress.BuffermallocStack(int capacity)Returns a newNkStyleProgress.Bufferinstance allocated on the thread-localMemoryStack.static NkStyleProgress.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkStyleProgress.Bufferinstance allocated on the specifiedMemoryStack.static NkStyleProgressmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNkStyleProgressinstance 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 NkStyleItemncursor_active(long struct)Unsafe version ofcursor_active().static voidncursor_active(long struct, NkStyleItem value)Unsafe version ofcursor_active.static floatncursor_border(long struct)Unsafe version ofcursor_border().static voidncursor_border(long struct, float value)Unsafe version ofcursor_border.static NkColorncursor_border_color(long struct)Unsafe version ofcursor_border_color().static voidncursor_border_color(long struct, NkColor value)Unsafe version ofcursor_border_color.static NkStyleItemncursor_hover(long struct)Unsafe version ofcursor_hover().static voidncursor_hover(long struct, NkStyleItem value)Unsafe version ofcursor_hover.static NkStyleItemncursor_normal(long struct)Unsafe version ofcursor_normal().static voidncursor_normal(long struct, NkStyleItem value)Unsafe version ofcursor_normal.static floatncursor_rounding(long struct)Unsafe version ofcursor_rounding().static voidncursor_rounding(long struct, float value)Unsafe version ofcursor_rounding.static NkDrawBeginCallbackndraw_begin(long struct)Unsafe version ofdraw_begin().static voidndraw_begin(long struct, NkDrawBeginCallbackI value)Unsafe version ofdraw_begin.static NkDrawEndCallbackndraw_end(long struct)Unsafe version ofdraw_end().static voidndraw_end(long struct, NkDrawEndCallbackI value)Unsafe version ofdraw_end.static NkStyleItemnhover(long struct)Unsafe version ofhover().static voidnhover(long struct, NkStyleItem value)Unsafe version ofhover.static NkStyleItemnnormal(long struct)Unsafe version ofnormal().static voidnnormal(long struct, NkStyleItem value)Unsafe version ofnormal.NkStyleItemnormal()Returns aNkStyleItemview of thenormalfield.NkStyleProgressnormal(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormalfield to the specifiedConsumer.NkStyleProgressnormal(NkStyleItem value)Copies the specifiedNkStyleItemto thenormalfield.static NkVec2npadding(long struct)Unsafe version ofpadding().static voidnpadding(long struct, NkVec2 value)Unsafe version ofpadding.static floatnrounding(long struct)Unsafe version ofrounding().static voidnrounding(long struct, float value)Unsafe version ofrounding.static NkHandlenuserdata(long struct)Unsafe version ofuserdata().static voidnuserdata(long struct, NkHandle value)Unsafe version ofuserdata.NkVec2padding()Returns aNkVec2view of thepaddingfield.NkStyleProgresspadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleProgresspadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.floatrounding()Returns the value of theroundingfield.NkStyleProgressrounding(float value)Sets the specified value to theroundingfield.NkStyleProgressset(NkStyleItem normal, NkStyleItem hover, NkStyleItem active, NkColor border_color, NkStyleItem cursor_normal, NkStyleItem cursor_hover, NkStyleItem cursor_active, NkColor cursor_border_color, float rounding, float border, float cursor_border, float cursor_rounding, NkVec2 padding, NkHandle userdata, NkDrawBeginCallbackI draw_begin, NkDrawEndCallbackI draw_end)Initializes this struct with the specified values.NkStyleProgressset(NkStyleProgress src)Copies the specified struct data to this struct.intsizeof()NkHandleuserdata()Returns aNkHandleview of theuserdatafield.NkStyleProgressuserdata(java.util.function.Consumer<NkHandle> consumer)Passes theuserdatafield to the specifiedConsumer.NkStyleProgressuserdata(NkHandle value)Copies the specifiedNkHandleto theuserdatafield.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
NORMAL, HOVER, ACTIVE, BORDER_COLOR, CURSOR_NORMAL, CURSOR_HOVER, CURSOR_ACTIVE, CURSOR_BORDER_COLOR, ROUNDING, BORDER, CURSOR_BORDER, CURSOR_ROUNDING, PADDING, USERDATA, DRAW_BEGIN, DRAW_END
The struct member offsets.
-
-
Constructor Detail
-
NkStyleProgress
public NkStyleProgress(java.nio.ByteBuffer container)
Creates aNkStyleProgressinstance 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 NkStyleProgress normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormalfield to the specifiedConsumer.
-
hover
public NkStyleItem hover()
Returns aNkStyleItemview of thehoverfield.
-
hover
public NkStyleProgress hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehoverfield to the specifiedConsumer.
-
active
public NkStyleItem active()
Returns aNkStyleItemview of theactivefield.
-
active
public NkStyleProgress active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactivefield to the specifiedConsumer.
-
border_color
public NkStyleProgress border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_colorfield to the specifiedConsumer.
-
cursor_normal
public NkStyleItem cursor_normal()
Returns aNkStyleItemview of thecursor_normalfield.
-
cursor_normal
public NkStyleProgress cursor_normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_normalfield to the specifiedConsumer.
-
cursor_hover
public NkStyleItem cursor_hover()
Returns aNkStyleItemview of thecursor_hoverfield.
-
cursor_hover
public NkStyleProgress cursor_hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_hoverfield to the specifiedConsumer.
-
cursor_active
public NkStyleItem cursor_active()
Returns aNkStyleItemview of thecursor_activefield.
-
cursor_active
public NkStyleProgress cursor_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_activefield to the specifiedConsumer.
-
cursor_border_color
public NkColor cursor_border_color()
Returns aNkColorview of thecursor_border_colorfield.
-
cursor_border_color
public NkStyleProgress cursor_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_border_colorfield to the specifiedConsumer.
-
rounding
public float rounding()
Returns the value of theroundingfield.
-
border
public float border()
Returns the value of theborderfield.
-
cursor_border
public float cursor_border()
Returns the value of thecursor_borderfield.
-
cursor_rounding
public float cursor_rounding()
Returns the value of thecursor_roundingfield.
-
padding
public NkStyleProgress padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
userdata
public NkStyleProgress userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdatafield to the specifiedConsumer.
-
draw_begin
@Nullable public NkDrawBeginCallback draw_begin()
Returns the value of thedraw_beginfield.
-
draw_end
@Nullable public NkDrawEndCallback draw_end()
Returns the value of thedraw_endfield.
-
normal
public NkStyleProgress normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormalfield.
-
hover
public NkStyleProgress hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thehoverfield.
-
active
public NkStyleProgress active(NkStyleItem value)
Copies the specifiedNkStyleItemto theactivefield.
-
border_color
public NkStyleProgress border_color(NkColor value)
Copies the specifiedNkColorto theborder_colorfield.
-
cursor_normal
public NkStyleProgress cursor_normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_normalfield.
-
cursor_hover
public NkStyleProgress cursor_hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_hoverfield.
-
cursor_active
public NkStyleProgress cursor_active(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_activefield.
-
cursor_border_color
public NkStyleProgress cursor_border_color(NkColor value)
Copies the specifiedNkColorto thecursor_border_colorfield.
-
rounding
public NkStyleProgress rounding(float value)
Sets the specified value to theroundingfield.
-
border
public NkStyleProgress border(float value)
Sets the specified value to theborderfield.
-
cursor_border
public NkStyleProgress cursor_border(float value)
Sets the specified value to thecursor_borderfield.
-
cursor_rounding
public NkStyleProgress cursor_rounding(float value)
Sets the specified value to thecursor_roundingfield.
-
padding
public NkStyleProgress padding(NkVec2 value)
Copies the specifiedNkVec2to thepaddingfield.
-
userdata
public NkStyleProgress userdata(NkHandle value)
Copies the specifiedNkHandleto theuserdatafield.
-
draw_begin
public NkStyleProgress draw_begin(@Nullable NkDrawBeginCallbackI value)
Sets the specified value to thedraw_beginfield.
-
draw_end
public NkStyleProgress draw_end(@Nullable NkDrawEndCallbackI value)
Sets the specified value to thedraw_endfield.
-
set
public NkStyleProgress set(NkStyleItem normal, NkStyleItem hover, NkStyleItem active, NkColor border_color, NkStyleItem cursor_normal, NkStyleItem cursor_hover, NkStyleItem cursor_active, NkColor cursor_border_color, float rounding, float border, float cursor_border, float cursor_rounding, NkVec2 padding, NkHandle userdata, NkDrawBeginCallbackI draw_begin, NkDrawEndCallbackI draw_end)
Initializes this struct with the specified values.
-
set
public NkStyleProgress set(NkStyleProgress src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static NkStyleProgress malloc()
Returns a newNkStyleProgressinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static NkStyleProgress calloc()
Returns a newNkStyleProgressinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static NkStyleProgress create()
Returns a newNkStyleProgressinstance allocated withBufferUtils.
-
create
public static NkStyleProgress create(long address)
Returns a newNkStyleProgressinstance for the specified memory address.
-
createSafe
@Nullable public static NkStyleProgress createSafe(long address)
-
malloc
public static NkStyleProgress.Buffer malloc(int capacity)
Returns a newNkStyleProgress.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static NkStyleProgress.Buffer calloc(int capacity)
Returns a newNkStyleProgress.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static NkStyleProgress.Buffer create(int capacity)
Returns a newNkStyleProgress.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static NkStyleProgress.Buffer create(long address, int capacity)
Create aNkStyleProgress.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static NkStyleProgress.Buffer createSafe(long address, int capacity)
-
mallocStack
public static NkStyleProgress mallocStack()
Returns a newNkStyleProgressinstance allocated on the thread-localMemoryStack.
-
callocStack
public static NkStyleProgress callocStack()
Returns a newNkStyleProgressinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static NkStyleProgress mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleProgressinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static NkStyleProgress callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleProgressinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static NkStyleProgress.Buffer mallocStack(int capacity)
Returns a newNkStyleProgress.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static NkStyleProgress.Buffer callocStack(int capacity)
Returns a newNkStyleProgress.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static NkStyleProgress.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleProgress.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static NkStyleProgress.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleProgress.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().
-
nborder_color
public static NkColor nborder_color(long struct)
Unsafe version ofborder_color().
-
ncursor_normal
public static NkStyleItem ncursor_normal(long struct)
Unsafe version ofcursor_normal().
-
ncursor_hover
public static NkStyleItem ncursor_hover(long struct)
Unsafe version ofcursor_hover().
-
ncursor_active
public static NkStyleItem ncursor_active(long struct)
Unsafe version ofcursor_active().
-
ncursor_border_color
public static NkColor ncursor_border_color(long struct)
Unsafe version ofcursor_border_color().
-
nrounding
public static float nrounding(long struct)
Unsafe version ofrounding().
-
nborder
public static float nborder(long struct)
Unsafe version ofborder().
-
ncursor_border
public static float ncursor_border(long struct)
Unsafe version ofcursor_border().
-
ncursor_rounding
public static float ncursor_rounding(long struct)
Unsafe version ofcursor_rounding().
-
nuserdata
public static NkHandle nuserdata(long struct)
Unsafe version ofuserdata().
-
ndraw_begin
@Nullable public static NkDrawBeginCallback ndraw_begin(long struct)
Unsafe version ofdraw_begin().
-
ndraw_end
@Nullable public static NkDrawEndCallback ndraw_end(long struct)
Unsafe version ofdraw_end().
-
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.
-
nborder_color
public static void nborder_color(long struct, NkColor value)Unsafe version ofborder_color.
-
ncursor_normal
public static void ncursor_normal(long struct, NkStyleItem value)Unsafe version ofcursor_normal.
-
ncursor_hover
public static void ncursor_hover(long struct, NkStyleItem value)Unsafe version ofcursor_hover.
-
ncursor_active
public static void ncursor_active(long struct, NkStyleItem value)Unsafe version ofcursor_active.
-
ncursor_border_color
public static void ncursor_border_color(long struct, NkColor value)Unsafe version ofcursor_border_color.
-
nrounding
public static void nrounding(long struct, float value)Unsafe version ofrounding.
-
nborder
public static void nborder(long struct, float value)Unsafe version ofborder.
-
ncursor_border
public static void ncursor_border(long struct, float value)Unsafe version ofcursor_border.
-
ncursor_rounding
public static void ncursor_rounding(long struct, float value)Unsafe version ofcursor_rounding.
-
ndraw_begin
public static void ndraw_begin(long struct, @Nullable NkDrawBeginCallbackI value)Unsafe version ofdraw_begin.
-
ndraw_end
public static void ndraw_end(long struct, @Nullable NkDrawEndCallbackI value)Unsafe version ofdraw_end.
-
-