Package org.lwjgl.nuklear
Class NkStyleWindow
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkStyleWindow
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class NkStyleWindow extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Layout
struct nk_style_window {
struct nk_style_window_header
header;struct nk_style_item
fixed_background;struct nk_color
background;struct nk_color
border_color;struct nk_color
popup_border_color;struct nk_color
combo_border_color;struct nk_color
contextual_border_color;struct nk_color
menu_border_color;struct nk_color
group_border_color;struct nk_color
tooltip_border_color;struct nk_style_item
scaler; float border; float combo_border; float contextual_border; float menu_border; float group_border; float tooltip_border; float popup_border; float min_row_height_padding; float rounding;struct nk_vec2
spacing;struct nk_vec2
scrollbar_size;struct nk_vec2
min_size;struct nk_vec2
padding;struct nk_vec2
group_padding;struct nk_vec2
popup_padding;struct nk_vec2
combo_padding;struct nk_vec2
contextual_padding;struct nk_vec2
menu_padding;struct nk_vec2
tooltip_padding; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NkStyleWindow.Buffer
An array ofNkStyleWindow
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
BACKGROUND
BORDER
BORDER_COLOR
COMBO_BORDER
COMBO_BORDER_COLOR
COMBO_PADDING
CONTEXTUAL_BORDER
CONTEXTUAL_BORDER_COLOR
CONTEXTUAL_PADDING
FIXED_BACKGROUND
GROUP_BORDER
GROUP_BORDER_COLOR
GROUP_PADDING
HEADER
MENU_BORDER
MENU_BORDER_COLOR
MENU_PADDING
MIN_ROW_HEIGHT_PADDING
MIN_SIZE
PADDING
POPUP_BORDER
POPUP_BORDER_COLOR
POPUP_PADDING
ROUNDING
SCALER
SCROLLBAR_SIZEThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
SPACING
TOOLTIP_BORDER
TOOLTIP_BORDER_COLOR
TOOLTIP_PADDINGThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkStyleWindow(java.nio.ByteBuffer container)
Creates aNkStyleWindow
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NkColor
background()
Returns aNkColor
view of thebackground
field.NkStyleWindow
background(java.util.function.Consumer<NkColor> consumer)
Passes thebackground
field to the specifiedConsumer
.NkStyleWindow
background(NkColor value)
Copies the specifiedNkColor
to thebackground
field.float
border()
Returns the value of theborder
field.NkStyleWindow
border(float value)
Sets the specified value to theborder
field.NkColor
border_color()
Returns aNkColor
view of theborder_color
field.NkStyleWindow
border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.NkStyleWindow
border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.static NkStyleWindow
calloc()
Returns a newNkStyleWindow
instance allocated withmemCalloc
.static NkStyleWindow.Buffer
calloc(int capacity)
Returns a newNkStyleWindow.Buffer
instance allocated withmemCalloc
.static NkStyleWindow
callocStack()
Returns a newNkStyleWindow
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static NkStyleWindow.Buffer
callocStack(int capacity)
Returns a newNkStyleWindow.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static NkStyleWindow.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleWindow.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkStyleWindow
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleWindow
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.float
combo_border()
Returns the value of thecombo_border
field.NkStyleWindow
combo_border(float value)
Sets the specified value to thecombo_border
field.NkColor
combo_border_color()
Returns aNkColor
view of thecombo_border_color
field.NkStyleWindow
combo_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thecombo_border_color
field to the specifiedConsumer
.NkStyleWindow
combo_border_color(NkColor value)
Copies the specifiedNkColor
to thecombo_border_color
field.NkVec2
combo_padding()
Returns aNkVec2
view of thecombo_padding
field.NkStyleWindow
combo_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thecombo_padding
field to the specifiedConsumer
.NkStyleWindow
combo_padding(NkVec2 value)
Copies the specifiedNkVec2
to thecombo_padding
field.float
contextual_border()
Returns the value of thecontextual_border
field.NkStyleWindow
contextual_border(float value)
Sets the specified value to thecontextual_border
field.NkColor
contextual_border_color()
Returns aNkColor
view of thecontextual_border_color
field.NkStyleWindow
contextual_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thecontextual_border_color
field to the specifiedConsumer
.NkStyleWindow
contextual_border_color(NkColor value)
Copies the specifiedNkColor
to thecontextual_border_color
field.NkVec2
contextual_padding()
Returns aNkVec2
view of thecontextual_padding
field.NkStyleWindow
contextual_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thecontextual_padding
field to the specifiedConsumer
.NkStyleWindow
contextual_padding(NkVec2 value)
Copies the specifiedNkVec2
to thecontextual_padding
field.static NkStyleWindow
create()
Returns a newNkStyleWindow
instance allocated withBufferUtils
.static NkStyleWindow.Buffer
create(int capacity)
Returns a newNkStyleWindow.Buffer
instance allocated withBufferUtils
.static NkStyleWindow
create(long address)
Returns a newNkStyleWindow
instance for the specified memory address.static NkStyleWindow.Buffer
create(long address, int capacity)
Create aNkStyleWindow.Buffer
instance at the specified memory.static NkStyleWindow
createSafe(long address)
static NkStyleWindow.Buffer
createSafe(long address, int capacity)
NkStyleItem
fixed_background()
Returns aNkStyleItem
view of thefixed_background
field.NkStyleWindow
fixed_background(java.util.function.Consumer<NkStyleItem> consumer)
Passes thefixed_background
field to the specifiedConsumer
.NkStyleWindow
fixed_background(NkStyleItem value)
Copies the specifiedNkStyleItem
to thefixed_background
field.float
group_border()
Returns the value of thegroup_border
field.NkStyleWindow
group_border(float value)
Sets the specified value to thegroup_border
field.NkColor
group_border_color()
Returns aNkColor
view of thegroup_border_color
field.NkStyleWindow
group_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thegroup_border_color
field to the specifiedConsumer
.NkStyleWindow
group_border_color(NkColor value)
Copies the specifiedNkColor
to thegroup_border_color
field.NkVec2
group_padding()
Returns aNkVec2
view of thegroup_padding
field.NkStyleWindow
group_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thegroup_padding
field to the specifiedConsumer
.NkStyleWindow
group_padding(NkVec2 value)
Copies the specifiedNkVec2
to thegroup_padding
field.NkStyleWindowHeader
header()
Returns aNkStyleWindowHeader
view of theheader
field.NkStyleWindow
header(java.util.function.Consumer<NkStyleWindowHeader> consumer)
Passes theheader
field to the specifiedConsumer
.NkStyleWindow
header(NkStyleWindowHeader value)
Copies the specifiedNkStyleWindowHeader
to theheader
field.static NkStyleWindow
malloc()
Returns a newNkStyleWindow
instance allocated withmemAlloc
.static NkStyleWindow.Buffer
malloc(int capacity)
Returns a newNkStyleWindow.Buffer
instance allocated withmemAlloc
.static NkStyleWindow
mallocStack()
Returns a newNkStyleWindow
instance allocated on the thread-localMemoryStack
.static NkStyleWindow.Buffer
mallocStack(int capacity)
Returns a newNkStyleWindow.Buffer
instance allocated on the thread-localMemoryStack
.static NkStyleWindow.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleWindow.Buffer
instance allocated on the specifiedMemoryStack
.static NkStyleWindow
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleWindow
instance allocated on the specifiedMemoryStack
.float
menu_border()
Returns the value of themenu_border
field.NkStyleWindow
menu_border(float value)
Sets the specified value to themenu_border
field.NkColor
menu_border_color()
Returns aNkColor
view of themenu_border_color
field.NkStyleWindow
menu_border_color(java.util.function.Consumer<NkColor> consumer)
Passes themenu_border_color
field to the specifiedConsumer
.NkStyleWindow
menu_border_color(NkColor value)
Copies the specifiedNkColor
to themenu_border_color
field.NkVec2
menu_padding()
Returns aNkVec2
view of themenu_padding
field.NkStyleWindow
menu_padding(java.util.function.Consumer<NkVec2> consumer)
Passes themenu_padding
field to the specifiedConsumer
.NkStyleWindow
menu_padding(NkVec2 value)
Copies the specifiedNkVec2
to themenu_padding
field.float
min_row_height_padding()
Returns the value of themin_row_height_padding
field.NkStyleWindow
min_row_height_padding(float value)
Sets the specified value to themin_row_height_padding
field.NkVec2
min_size()
Returns aNkVec2
view of themin_size
field.NkStyleWindow
min_size(java.util.function.Consumer<NkVec2> consumer)
Passes themin_size
field to the specifiedConsumer
.NkStyleWindow
min_size(NkVec2 value)
Copies the specifiedNkVec2
to themin_size
field.static NkColor
nbackground(long struct)
Unsafe version ofbackground()
.static void
nbackground(long struct, NkColor value)
Unsafe version ofbackground
.static float
nborder(long struct)
Unsafe version ofborder()
.static void
nborder(long struct, float value)
Unsafe version ofborder
.static NkColor
nborder_color(long struct)
Unsafe version ofborder_color()
.static void
nborder_color(long struct, NkColor value)
Unsafe version ofborder_color
.static float
ncombo_border(long struct)
Unsafe version ofcombo_border()
.static void
ncombo_border(long struct, float value)
Unsafe version ofcombo_border
.static NkColor
ncombo_border_color(long struct)
Unsafe version ofcombo_border_color()
.static void
ncombo_border_color(long struct, NkColor value)
Unsafe version ofcombo_border_color
.static NkVec2
ncombo_padding(long struct)
Unsafe version ofcombo_padding()
.static void
ncombo_padding(long struct, NkVec2 value)
Unsafe version ofcombo_padding
.static float
ncontextual_border(long struct)
Unsafe version ofcontextual_border()
.static void
ncontextual_border(long struct, float value)
Unsafe version ofcontextual_border
.static NkColor
ncontextual_border_color(long struct)
Unsafe version ofcontextual_border_color()
.static void
ncontextual_border_color(long struct, NkColor value)
Unsafe version ofcontextual_border_color
.static NkVec2
ncontextual_padding(long struct)
Unsafe version ofcontextual_padding()
.static void
ncontextual_padding(long struct, NkVec2 value)
Unsafe version ofcontextual_padding
.static NkStyleItem
nfixed_background(long struct)
Unsafe version offixed_background()
.static void
nfixed_background(long struct, NkStyleItem value)
Unsafe version offixed_background
.static float
ngroup_border(long struct)
Unsafe version ofgroup_border()
.static void
ngroup_border(long struct, float value)
Unsafe version ofgroup_border
.static NkColor
ngroup_border_color(long struct)
Unsafe version ofgroup_border_color()
.static void
ngroup_border_color(long struct, NkColor value)
Unsafe version ofgroup_border_color
.static NkVec2
ngroup_padding(long struct)
Unsafe version ofgroup_padding()
.static void
ngroup_padding(long struct, NkVec2 value)
Unsafe version ofgroup_padding
.static NkStyleWindowHeader
nheader(long struct)
Unsafe version ofheader()
.static void
nheader(long struct, NkStyleWindowHeader value)
Unsafe version ofheader
.static float
nmenu_border(long struct)
Unsafe version ofmenu_border()
.static void
nmenu_border(long struct, float value)
Unsafe version ofmenu_border
.static NkColor
nmenu_border_color(long struct)
Unsafe version ofmenu_border_color()
.static void
nmenu_border_color(long struct, NkColor value)
Unsafe version ofmenu_border_color
.static NkVec2
nmenu_padding(long struct)
Unsafe version ofmenu_padding()
.static void
nmenu_padding(long struct, NkVec2 value)
Unsafe version ofmenu_padding
.static float
nmin_row_height_padding(long struct)
Unsafe version ofmin_row_height_padding()
.static void
nmin_row_height_padding(long struct, float value)
Unsafe version ofmin_row_height_padding
.static NkVec2
nmin_size(long struct)
Unsafe version ofmin_size()
.static void
nmin_size(long struct, NkVec2 value)
Unsafe version ofmin_size
.static NkVec2
npadding(long struct)
Unsafe version ofpadding()
.static void
npadding(long struct, NkVec2 value)
Unsafe version ofpadding
.static float
npopup_border(long struct)
Unsafe version ofpopup_border()
.static void
npopup_border(long struct, float value)
Unsafe version ofpopup_border
.static NkColor
npopup_border_color(long struct)
Unsafe version ofpopup_border_color()
.static void
npopup_border_color(long struct, NkColor value)
Unsafe version ofpopup_border_color
.static NkVec2
npopup_padding(long struct)
Unsafe version ofpopup_padding()
.static void
npopup_padding(long struct, NkVec2 value)
Unsafe version ofpopup_padding
.static float
nrounding(long struct)
Unsafe version ofrounding()
.static void
nrounding(long struct, float value)
Unsafe version ofrounding
.static NkStyleItem
nscaler(long struct)
Unsafe version ofscaler()
.static void
nscaler(long struct, NkStyleItem value)
Unsafe version ofscaler
.static NkVec2
nscrollbar_size(long struct)
Unsafe version ofscrollbar_size()
.static void
nscrollbar_size(long struct, NkVec2 value)
Unsafe version ofscrollbar_size
.static NkVec2
nspacing(long struct)
Unsafe version ofspacing()
.static void
nspacing(long struct, NkVec2 value)
Unsafe version ofspacing
.static float
ntooltip_border(long struct)
Unsafe version oftooltip_border()
.static void
ntooltip_border(long struct, float value)
Unsafe version oftooltip_border
.static NkColor
ntooltip_border_color(long struct)
Unsafe version oftooltip_border_color()
.static void
ntooltip_border_color(long struct, NkColor value)
Unsafe version oftooltip_border_color
.static NkVec2
ntooltip_padding(long struct)
Unsafe version oftooltip_padding()
.static void
ntooltip_padding(long struct, NkVec2 value)
Unsafe version oftooltip_padding
.NkVec2
padding()
Returns aNkVec2
view of thepadding
field.NkStyleWindow
padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.NkStyleWindow
padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.float
popup_border()
Returns the value of thepopup_border
field.NkStyleWindow
popup_border(float value)
Sets the specified value to thepopup_border
field.NkColor
popup_border_color()
Returns aNkColor
view of thepopup_border_color
field.NkStyleWindow
popup_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thepopup_border_color
field to the specifiedConsumer
.NkStyleWindow
popup_border_color(NkColor value)
Copies the specifiedNkColor
to thepopup_border_color
field.NkVec2
popup_padding()
Returns aNkVec2
view of thepopup_padding
field.NkStyleWindow
popup_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepopup_padding
field to the specifiedConsumer
.NkStyleWindow
popup_padding(NkVec2 value)
Copies the specifiedNkVec2
to thepopup_padding
field.float
rounding()
Returns the value of therounding
field.NkStyleWindow
rounding(float value)
Sets the specified value to therounding
field.NkStyleItem
scaler()
Returns aNkStyleItem
view of thescaler
field.NkStyleWindow
scaler(java.util.function.Consumer<NkStyleItem> consumer)
Passes thescaler
field to the specifiedConsumer
.NkStyleWindow
scaler(NkStyleItem value)
Copies the specifiedNkStyleItem
to thescaler
field.NkVec2
scrollbar_size()
Returns aNkVec2
view of thescrollbar_size
field.NkStyleWindow
scrollbar_size(java.util.function.Consumer<NkVec2> consumer)
Passes thescrollbar_size
field to the specifiedConsumer
.NkStyleWindow
scrollbar_size(NkVec2 value)
Copies the specifiedNkVec2
to thescrollbar_size
field.NkStyleWindow
set(NkStyleWindow src)
Copies the specified struct data to this struct.NkStyleWindow
set(NkStyleWindowHeader header, NkStyleItem fixed_background, NkColor background, NkColor border_color, NkColor popup_border_color, NkColor combo_border_color, NkColor contextual_border_color, NkColor menu_border_color, NkColor group_border_color, NkColor tooltip_border_color, NkStyleItem scaler, float border, float combo_border, float contextual_border, float menu_border, float group_border, float tooltip_border, float popup_border, float min_row_height_padding, float rounding, NkVec2 spacing, NkVec2 scrollbar_size, NkVec2 min_size, NkVec2 padding, NkVec2 group_padding, NkVec2 popup_padding, NkVec2 combo_padding, NkVec2 contextual_padding, NkVec2 menu_padding, NkVec2 tooltip_padding)
Initializes this struct with the specified values.int
sizeof()
NkVec2
spacing()
Returns aNkVec2
view of thespacing
field.NkStyleWindow
spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacing
field to the specifiedConsumer
.NkStyleWindow
spacing(NkVec2 value)
Copies the specifiedNkVec2
to thespacing
field.float
tooltip_border()
Returns the value of thetooltip_border
field.NkStyleWindow
tooltip_border(float value)
Sets the specified value to thetooltip_border
field.NkColor
tooltip_border_color()
Returns aNkColor
view of thetooltip_border_color
field.NkStyleWindow
tooltip_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thetooltip_border_color
field to the specifiedConsumer
.NkStyleWindow
tooltip_border_color(NkColor value)
Copies the specifiedNkColor
to thetooltip_border_color
field.NkVec2
tooltip_padding()
Returns aNkVec2
view of thetooltip_padding
field.NkStyleWindow
tooltip_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thetooltip_padding
field to the specifiedConsumer
.NkStyleWindow
tooltip_padding(NkVec2 value)
Copies the specifiedNkVec2
to thetooltip_padding
field.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
HEADER, FIXED_BACKGROUND, BACKGROUND, BORDER_COLOR, POPUP_BORDER_COLOR, COMBO_BORDER_COLOR, CONTEXTUAL_BORDER_COLOR, MENU_BORDER_COLOR, GROUP_BORDER_COLOR, TOOLTIP_BORDER_COLOR, SCALER, BORDER, COMBO_BORDER, CONTEXTUAL_BORDER, MENU_BORDER, GROUP_BORDER, TOOLTIP_BORDER, POPUP_BORDER, MIN_ROW_HEIGHT_PADDING, ROUNDING, SPACING, SCROLLBAR_SIZE, MIN_SIZE, PADDING, GROUP_PADDING, POPUP_PADDING, COMBO_PADDING, CONTEXTUAL_PADDING, MENU_PADDING, TOOLTIP_PADDING
The struct member offsets.
-
-
Constructor Detail
-
NkStyleWindow
public NkStyleWindow(java.nio.ByteBuffer container)
Creates aNkStyleWindow
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
-
header
public NkStyleWindowHeader header()
Returns aNkStyleWindowHeader
view of theheader
field.
-
fixed_background
public NkStyleItem fixed_background()
Returns aNkStyleItem
view of thefixed_background
field.
-
popup_border_color
public NkColor popup_border_color()
Returns aNkColor
view of thepopup_border_color
field.
-
combo_border_color
public NkColor combo_border_color()
Returns aNkColor
view of thecombo_border_color
field.
-
contextual_border_color
public NkColor contextual_border_color()
Returns aNkColor
view of thecontextual_border_color
field.
-
menu_border_color
public NkColor menu_border_color()
Returns aNkColor
view of themenu_border_color
field.
-
group_border_color
public NkColor group_border_color()
Returns aNkColor
view of thegroup_border_color
field.
-
tooltip_border_color
public NkColor tooltip_border_color()
Returns aNkColor
view of thetooltip_border_color
field.
-
scaler
public NkStyleItem scaler()
Returns aNkStyleItem
view of thescaler
field.
-
border
public float border()
Returns the value of theborder
field.
-
combo_border
public float combo_border()
Returns the value of thecombo_border
field.
-
contextual_border
public float contextual_border()
Returns the value of thecontextual_border
field.
-
menu_border
public float menu_border()
Returns the value of themenu_border
field.
-
group_border
public float group_border()
Returns the value of thegroup_border
field.
-
tooltip_border
public float tooltip_border()
Returns the value of thetooltip_border
field.
-
popup_border
public float popup_border()
Returns the value of thepopup_border
field.
-
min_row_height_padding
public float min_row_height_padding()
Returns the value of themin_row_height_padding
field.
-
rounding
public float rounding()
Returns the value of therounding
field.
-
contextual_padding
public NkVec2 contextual_padding()
Returns aNkVec2
view of thecontextual_padding
field.
-
header
public NkStyleWindow header(NkStyleWindowHeader value)
Copies the specifiedNkStyleWindowHeader
to theheader
field.
-
header
public NkStyleWindow header(java.util.function.Consumer<NkStyleWindowHeader> consumer)
Passes theheader
field to the specifiedConsumer
.
-
fixed_background
public NkStyleWindow fixed_background(NkStyleItem value)
Copies the specifiedNkStyleItem
to thefixed_background
field.
-
fixed_background
public NkStyleWindow fixed_background(java.util.function.Consumer<NkStyleItem> consumer)
Passes thefixed_background
field to the specifiedConsumer
.
-
background
public NkStyleWindow background(NkColor value)
Copies the specifiedNkColor
to thebackground
field.
-
background
public NkStyleWindow background(java.util.function.Consumer<NkColor> consumer)
Passes thebackground
field to the specifiedConsumer
.
-
border_color
public NkStyleWindow border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.
-
border_color
public NkStyleWindow border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.
-
popup_border_color
public NkStyleWindow popup_border_color(NkColor value)
Copies the specifiedNkColor
to thepopup_border_color
field.
-
popup_border_color
public NkStyleWindow popup_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thepopup_border_color
field to the specifiedConsumer
.
-
combo_border_color
public NkStyleWindow combo_border_color(NkColor value)
Copies the specifiedNkColor
to thecombo_border_color
field.
-
combo_border_color
public NkStyleWindow combo_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thecombo_border_color
field to the specifiedConsumer
.
-
contextual_border_color
public NkStyleWindow contextual_border_color(NkColor value)
Copies the specifiedNkColor
to thecontextual_border_color
field.
-
contextual_border_color
public NkStyleWindow contextual_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thecontextual_border_color
field to the specifiedConsumer
.
-
menu_border_color
public NkStyleWindow menu_border_color(NkColor value)
Copies the specifiedNkColor
to themenu_border_color
field.
-
menu_border_color
public NkStyleWindow menu_border_color(java.util.function.Consumer<NkColor> consumer)
Passes themenu_border_color
field to the specifiedConsumer
.
-
group_border_color
public NkStyleWindow group_border_color(NkColor value)
Copies the specifiedNkColor
to thegroup_border_color
field.
-
group_border_color
public NkStyleWindow group_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thegroup_border_color
field to the specifiedConsumer
.
-
tooltip_border_color
public NkStyleWindow tooltip_border_color(NkColor value)
Copies the specifiedNkColor
to thetooltip_border_color
field.
-
tooltip_border_color
public NkStyleWindow tooltip_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thetooltip_border_color
field to the specifiedConsumer
.
-
scaler
public NkStyleWindow scaler(NkStyleItem value)
Copies the specifiedNkStyleItem
to thescaler
field.
-
scaler
public NkStyleWindow scaler(java.util.function.Consumer<NkStyleItem> consumer)
Passes thescaler
field to the specifiedConsumer
.
-
border
public NkStyleWindow border(float value)
Sets the specified value to theborder
field.
-
combo_border
public NkStyleWindow combo_border(float value)
Sets the specified value to thecombo_border
field.
-
contextual_border
public NkStyleWindow contextual_border(float value)
Sets the specified value to thecontextual_border
field.
-
menu_border
public NkStyleWindow menu_border(float value)
Sets the specified value to themenu_border
field.
-
group_border
public NkStyleWindow group_border(float value)
Sets the specified value to thegroup_border
field.
-
tooltip_border
public NkStyleWindow tooltip_border(float value)
Sets the specified value to thetooltip_border
field.
-
popup_border
public NkStyleWindow popup_border(float value)
Sets the specified value to thepopup_border
field.
-
min_row_height_padding
public NkStyleWindow min_row_height_padding(float value)
Sets the specified value to themin_row_height_padding
field.
-
rounding
public NkStyleWindow rounding(float value)
Sets the specified value to therounding
field.
-
spacing
public NkStyleWindow spacing(NkVec2 value)
Copies the specifiedNkVec2
to thespacing
field.
-
spacing
public NkStyleWindow spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacing
field to the specifiedConsumer
.
-
scrollbar_size
public NkStyleWindow scrollbar_size(NkVec2 value)
Copies the specifiedNkVec2
to thescrollbar_size
field.
-
scrollbar_size
public NkStyleWindow scrollbar_size(java.util.function.Consumer<NkVec2> consumer)
Passes thescrollbar_size
field to the specifiedConsumer
.
-
min_size
public NkStyleWindow min_size(NkVec2 value)
Copies the specifiedNkVec2
to themin_size
field.
-
min_size
public NkStyleWindow min_size(java.util.function.Consumer<NkVec2> consumer)
Passes themin_size
field to the specifiedConsumer
.
-
padding
public NkStyleWindow padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.
-
padding
public NkStyleWindow padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.
-
group_padding
public NkStyleWindow group_padding(NkVec2 value)
Copies the specifiedNkVec2
to thegroup_padding
field.
-
group_padding
public NkStyleWindow group_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thegroup_padding
field to the specifiedConsumer
.
-
popup_padding
public NkStyleWindow popup_padding(NkVec2 value)
Copies the specifiedNkVec2
to thepopup_padding
field.
-
popup_padding
public NkStyleWindow popup_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepopup_padding
field to the specifiedConsumer
.
-
combo_padding
public NkStyleWindow combo_padding(NkVec2 value)
Copies the specifiedNkVec2
to thecombo_padding
field.
-
combo_padding
public NkStyleWindow combo_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thecombo_padding
field to the specifiedConsumer
.
-
contextual_padding
public NkStyleWindow contextual_padding(NkVec2 value)
Copies the specifiedNkVec2
to thecontextual_padding
field.
-
contextual_padding
public NkStyleWindow contextual_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thecontextual_padding
field to the specifiedConsumer
.
-
menu_padding
public NkStyleWindow menu_padding(NkVec2 value)
Copies the specifiedNkVec2
to themenu_padding
field.
-
menu_padding
public NkStyleWindow menu_padding(java.util.function.Consumer<NkVec2> consumer)
Passes themenu_padding
field to the specifiedConsumer
.
-
tooltip_padding
public NkStyleWindow tooltip_padding(NkVec2 value)
Copies the specifiedNkVec2
to thetooltip_padding
field.
-
tooltip_padding
public NkStyleWindow tooltip_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thetooltip_padding
field to the specifiedConsumer
.
-
set
public NkStyleWindow set(NkStyleWindowHeader header, NkStyleItem fixed_background, NkColor background, NkColor border_color, NkColor popup_border_color, NkColor combo_border_color, NkColor contextual_border_color, NkColor menu_border_color, NkColor group_border_color, NkColor tooltip_border_color, NkStyleItem scaler, float border, float combo_border, float contextual_border, float menu_border, float group_border, float tooltip_border, float popup_border, float min_row_height_padding, float rounding, NkVec2 spacing, NkVec2 scrollbar_size, NkVec2 min_size, NkVec2 padding, NkVec2 group_padding, NkVec2 popup_padding, NkVec2 combo_padding, NkVec2 contextual_padding, NkVec2 menu_padding, NkVec2 tooltip_padding)
Initializes this struct with the specified values.
-
set
public NkStyleWindow set(NkStyleWindow src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static NkStyleWindow malloc()
Returns a newNkStyleWindow
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static NkStyleWindow calloc()
Returns a newNkStyleWindow
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static NkStyleWindow create()
Returns a newNkStyleWindow
instance allocated withBufferUtils
.
-
create
public static NkStyleWindow create(long address)
Returns a newNkStyleWindow
instance for the specified memory address.
-
createSafe
@Nullable public static NkStyleWindow createSafe(long address)
-
malloc
public static NkStyleWindow.Buffer malloc(int capacity)
Returns a newNkStyleWindow.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static NkStyleWindow.Buffer calloc(int capacity)
Returns a newNkStyleWindow.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static NkStyleWindow.Buffer create(int capacity)
Returns a newNkStyleWindow.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static NkStyleWindow.Buffer create(long address, int capacity)
Create aNkStyleWindow.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static NkStyleWindow.Buffer createSafe(long address, int capacity)
-
mallocStack
public static NkStyleWindow mallocStack()
Returns a newNkStyleWindow
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static NkStyleWindow callocStack()
Returns a newNkStyleWindow
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static NkStyleWindow mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleWindow
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static NkStyleWindow callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleWindow
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static NkStyleWindow.Buffer mallocStack(int capacity)
Returns a newNkStyleWindow.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static NkStyleWindow.Buffer callocStack(int capacity)
Returns a newNkStyleWindow.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static NkStyleWindow.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleWindow.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static NkStyleWindow.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleWindow.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nheader
public static NkStyleWindowHeader nheader(long struct)
Unsafe version ofheader()
.
-
nfixed_background
public static NkStyleItem nfixed_background(long struct)
Unsafe version offixed_background()
.
-
nbackground
public static NkColor nbackground(long struct)
Unsafe version ofbackground()
.
-
nborder_color
public static NkColor nborder_color(long struct)
Unsafe version ofborder_color()
.
-
npopup_border_color
public static NkColor npopup_border_color(long struct)
Unsafe version ofpopup_border_color()
.
-
ncombo_border_color
public static NkColor ncombo_border_color(long struct)
Unsafe version ofcombo_border_color()
.
-
ncontextual_border_color
public static NkColor ncontextual_border_color(long struct)
Unsafe version ofcontextual_border_color()
.
-
nmenu_border_color
public static NkColor nmenu_border_color(long struct)
Unsafe version ofmenu_border_color()
.
-
ngroup_border_color
public static NkColor ngroup_border_color(long struct)
Unsafe version ofgroup_border_color()
.
-
ntooltip_border_color
public static NkColor ntooltip_border_color(long struct)
Unsafe version oftooltip_border_color()
.
-
nscaler
public static NkStyleItem nscaler(long struct)
Unsafe version ofscaler()
.
-
nborder
public static float nborder(long struct)
Unsafe version ofborder()
.
-
ncombo_border
public static float ncombo_border(long struct)
Unsafe version ofcombo_border()
.
-
ncontextual_border
public static float ncontextual_border(long struct)
Unsafe version ofcontextual_border()
.
-
nmenu_border
public static float nmenu_border(long struct)
Unsafe version ofmenu_border()
.
-
ngroup_border
public static float ngroup_border(long struct)
Unsafe version ofgroup_border()
.
-
ntooltip_border
public static float ntooltip_border(long struct)
Unsafe version oftooltip_border()
.
-
npopup_border
public static float npopup_border(long struct)
Unsafe version ofpopup_border()
.
-
nmin_row_height_padding
public static float nmin_row_height_padding(long struct)
Unsafe version ofmin_row_height_padding()
.
-
nrounding
public static float nrounding(long struct)
Unsafe version ofrounding()
.
-
nscrollbar_size
public static NkVec2 nscrollbar_size(long struct)
Unsafe version ofscrollbar_size()
.
-
nmin_size
public static NkVec2 nmin_size(long struct)
Unsafe version ofmin_size()
.
-
ngroup_padding
public static NkVec2 ngroup_padding(long struct)
Unsafe version ofgroup_padding()
.
-
npopup_padding
public static NkVec2 npopup_padding(long struct)
Unsafe version ofpopup_padding()
.
-
ncombo_padding
public static NkVec2 ncombo_padding(long struct)
Unsafe version ofcombo_padding()
.
-
ncontextual_padding
public static NkVec2 ncontextual_padding(long struct)
Unsafe version ofcontextual_padding()
.
-
nmenu_padding
public static NkVec2 nmenu_padding(long struct)
Unsafe version ofmenu_padding()
.
-
ntooltip_padding
public static NkVec2 ntooltip_padding(long struct)
Unsafe version oftooltip_padding()
.
-
nheader
public static void nheader(long struct, NkStyleWindowHeader value)
Unsafe version ofheader
.
-
nfixed_background
public static void nfixed_background(long struct, NkStyleItem value)
Unsafe version offixed_background
.
-
nbackground
public static void nbackground(long struct, NkColor value)
Unsafe version ofbackground
.
-
nborder_color
public static void nborder_color(long struct, NkColor value)
Unsafe version ofborder_color
.
-
npopup_border_color
public static void npopup_border_color(long struct, NkColor value)
Unsafe version ofpopup_border_color
.
-
ncombo_border_color
public static void ncombo_border_color(long struct, NkColor value)
Unsafe version ofcombo_border_color
.
-
ncontextual_border_color
public static void ncontextual_border_color(long struct, NkColor value)
Unsafe version ofcontextual_border_color
.
-
nmenu_border_color
public static void nmenu_border_color(long struct, NkColor value)
Unsafe version ofmenu_border_color
.
-
ngroup_border_color
public static void ngroup_border_color(long struct, NkColor value)
Unsafe version ofgroup_border_color
.
-
ntooltip_border_color
public static void ntooltip_border_color(long struct, NkColor value)
Unsafe version oftooltip_border_color
.
-
nscaler
public static void nscaler(long struct, NkStyleItem value)
Unsafe version ofscaler
.
-
nborder
public static void nborder(long struct, float value)
Unsafe version ofborder
.
-
ncombo_border
public static void ncombo_border(long struct, float value)
Unsafe version ofcombo_border
.
-
ncontextual_border
public static void ncontextual_border(long struct, float value)
Unsafe version ofcontextual_border
.
-
nmenu_border
public static void nmenu_border(long struct, float value)
Unsafe version ofmenu_border
.
-
ngroup_border
public static void ngroup_border(long struct, float value)
Unsafe version ofgroup_border
.
-
ntooltip_border
public static void ntooltip_border(long struct, float value)
Unsafe version oftooltip_border
.
-
npopup_border
public static void npopup_border(long struct, float value)
Unsafe version ofpopup_border
.
-
nmin_row_height_padding
public static void nmin_row_height_padding(long struct, float value)
Unsafe version ofmin_row_height_padding
.
-
nrounding
public static void nrounding(long struct, float value)
Unsafe version ofrounding
.
-
nscrollbar_size
public static void nscrollbar_size(long struct, NkVec2 value)
Unsafe version ofscrollbar_size
.
-
ngroup_padding
public static void ngroup_padding(long struct, NkVec2 value)
Unsafe version ofgroup_padding
.
-
npopup_padding
public static void npopup_padding(long struct, NkVec2 value)
Unsafe version ofpopup_padding
.
-
ncombo_padding
public static void ncombo_padding(long struct, NkVec2 value)
Unsafe version ofcombo_padding
.
-
ncontextual_padding
public static void ncontextual_padding(long struct, NkVec2 value)
Unsafe version ofcontextual_padding
.
-
nmenu_padding
public static void nmenu_padding(long struct, NkVec2 value)
Unsafe version ofmenu_padding
.
-
ntooltip_padding
public static void ntooltip_padding(long struct, NkVec2 value)
Unsafe version oftooltip_padding
.
-
-