Package org.lwjgl.nuklear
Class NkStyleWindow
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
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/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionNkStyleWindow
(ByteBuffer container) Creates aNkStyleWindow
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionbackground
(Consumer<NkColor> consumer) Passes thebackground
field to the specifiedConsumer
.background
(NkColor value) Copies the specifiedNkColor
to thebackground
field.float
border()
border
(float value) Sets the specified value to theborder
field.border_color
(Consumer<NkColor> consumer) Passes theborder_color
field to the specifiedConsumer
.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.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newNkStyleWindow.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkStyleWindow
calloc
(MemoryStack stack) Returns a newNkStyleWindow
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NkStyleWindow
Deprecated.static NkStyleWindow.Buffer
callocStack
(int capacity) Deprecated.static NkStyleWindow.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static NkStyleWindow
callocStack
(MemoryStack stack) Deprecated.float
combo_border
(float value) Sets the specified value to thecombo_border
field.combo_border_color
(Consumer<NkColor> consumer) Passes thecombo_border_color
field to the specifiedConsumer
.combo_border_color
(NkColor value) Copies the specifiedNkColor
to thecombo_border_color
field.combo_padding
(Consumer<NkVec2> consumer) Passes thecombo_padding
field to the specifiedConsumer
.combo_padding
(NkVec2 value) Copies the specifiedNkVec2
to thecombo_padding
field.float
contextual_border
(float value) Sets the specified value to thecontextual_border
field.contextual_border_color
(Consumer<NkColor> consumer) Passes thecontextual_border_color
field to the specifiedConsumer
.contextual_border_color
(NkColor value) Copies the specifiedNkColor
to thecontextual_border_color
field.contextual_padding
(Consumer<NkVec2> consumer) Passes thecontextual_padding
field to the specifiedConsumer
.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) fixed_background
(Consumer<NkStyleItem> consumer) Passes thefixed_background
field to the specifiedConsumer
.fixed_background
(NkStyleItem value) Copies the specifiedNkStyleItem
to thefixed_background
field.float
group_border
(float value) Sets the specified value to thegroup_border
field.group_border_color
(Consumer<NkColor> consumer) Passes thegroup_border_color
field to the specifiedConsumer
.group_border_color
(NkColor value) Copies the specifiedNkColor
to thegroup_border_color
field.group_padding
(Consumer<NkVec2> consumer) Passes thegroup_padding
field to the specifiedConsumer
.group_padding
(NkVec2 value) Copies the specifiedNkVec2
to thegroup_padding
field.header()
header
(Consumer<NkStyleWindowHeader> consumer) Passes theheader
field to the specifiedConsumer
.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.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newNkStyleWindow.Buffer
instance allocated on the specifiedMemoryStack
.static NkStyleWindow
malloc
(MemoryStack stack) Returns a newNkStyleWindow
instance allocated on the specifiedMemoryStack
.static NkStyleWindow
Deprecated.static NkStyleWindow.Buffer
mallocStack
(int capacity) Deprecated.static NkStyleWindow.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static NkStyleWindow
mallocStack
(MemoryStack stack) Deprecated.float
menu_border
(float value) Sets the specified value to themenu_border
field.menu_border_color
(Consumer<NkColor> consumer) Passes themenu_border_color
field to the specifiedConsumer
.menu_border_color
(NkColor value) Copies the specifiedNkColor
to themenu_border_color
field.menu_padding
(Consumer<NkVec2> consumer) Passes themenu_padding
field to the specifiedConsumer
.menu_padding
(NkVec2 value) Copies the specifiedNkVec2
to themenu_padding
field.float
min_row_height_padding
(float value) Sets the specified value to themin_row_height_padding
field.min_size()
Passes themin_size
field to the specifiedConsumer
.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
Unsafe version ofmin_size
.static NkVec2
npadding
(long struct) Unsafe version ofpadding()
.static void
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
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
.padding()
Passes thepadding
field to the specifiedConsumer
.Copies the specifiedNkVec2
to thepadding
field.float
popup_border
(float value) Sets the specified value to thepopup_border
field.popup_border_color
(Consumer<NkColor> consumer) Passes thepopup_border_color
field to the specifiedConsumer
.popup_border_color
(NkColor value) Copies the specifiedNkColor
to thepopup_border_color
field.popup_padding
(Consumer<NkVec2> consumer) Passes thepopup_padding
field to the specifiedConsumer
.popup_padding
(NkVec2 value) Copies the specifiedNkVec2
to thepopup_padding
field.float
rounding()
rounding
(float value) Sets the specified value to therounding
field.scaler()
scaler
(Consumer<NkStyleItem> consumer) Passes thescaler
field to the specifiedConsumer
.scaler
(NkStyleItem value) Copies the specifiedNkStyleItem
to thescaler
field.scrollbar_size
(Consumer<NkVec2> consumer) Passes thescrollbar_size
field to the specifiedConsumer
.scrollbar_size
(NkVec2 value) Copies the specifiedNkVec2
to thescrollbar_size
field.set
(NkStyleWindow src) Copies the specified struct data to this struct.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()
Returnssizeof(struct)
.spacing()
Passes thespacing
field to the specifiedConsumer
.Copies the specifiedNkVec2
to thespacing
field.float
tooltip_border
(float value) Sets the specified value to thetooltip_border
field.tooltip_border_color
(Consumer<NkColor> consumer) Passes thetooltip_border_color
field to the specifiedConsumer
.tooltip_border_color
(NkColor value) Copies the specifiedNkColor
to thetooltip_border_color
field.tooltip_padding
(Consumer<NkVec2> consumer) Passes thetooltip_padding
field to the specifiedConsumer
.tooltip_padding
(NkVec2 value) Copies the specifiedNkVec2
to thetooltip_padding
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
HEADER
public static final int HEADERThe struct member offsets. -
FIXED_BACKGROUND
public static final int FIXED_BACKGROUNDThe struct member offsets. -
BACKGROUND
public static final int BACKGROUNDThe struct member offsets. -
BORDER_COLOR
public static final int BORDER_COLORThe struct member offsets. -
POPUP_BORDER_COLOR
public static final int POPUP_BORDER_COLORThe struct member offsets. -
COMBO_BORDER_COLOR
public static final int COMBO_BORDER_COLORThe struct member offsets. -
CONTEXTUAL_BORDER_COLOR
public static final int CONTEXTUAL_BORDER_COLORThe struct member offsets. -
MENU_BORDER_COLOR
public static final int MENU_BORDER_COLORThe struct member offsets. -
GROUP_BORDER_COLOR
public static final int GROUP_BORDER_COLORThe struct member offsets. -
TOOLTIP_BORDER_COLOR
public static final int TOOLTIP_BORDER_COLORThe struct member offsets. -
SCALER
public static final int SCALERThe struct member offsets. -
BORDER
public static final int BORDERThe struct member offsets. -
COMBO_BORDER
public static final int COMBO_BORDERThe struct member offsets. -
CONTEXTUAL_BORDER
public static final int CONTEXTUAL_BORDERThe struct member offsets. -
MENU_BORDER
public static final int MENU_BORDERThe struct member offsets. -
GROUP_BORDER
public static final int GROUP_BORDERThe struct member offsets. -
TOOLTIP_BORDER
public static final int TOOLTIP_BORDERThe struct member offsets. -
POPUP_BORDER
public static final int POPUP_BORDERThe struct member offsets. -
MIN_ROW_HEIGHT_PADDING
public static final int MIN_ROW_HEIGHT_PADDINGThe struct member offsets. -
ROUNDING
public static final int ROUNDINGThe struct member offsets. -
SPACING
public static final int SPACINGThe struct member offsets. -
SCROLLBAR_SIZE
public static final int SCROLLBAR_SIZEThe struct member offsets. -
MIN_SIZE
public static final int MIN_SIZEThe struct member offsets. -
PADDING
public static final int PADDINGThe struct member offsets. -
GROUP_PADDING
public static final int GROUP_PADDINGThe struct member offsets. -
POPUP_PADDING
public static final int POPUP_PADDINGThe struct member offsets. -
COMBO_PADDING
public static final int COMBO_PADDINGThe struct member offsets. -
CONTEXTUAL_PADDING
public static final int CONTEXTUAL_PADDINGThe struct member offsets. -
MENU_PADDING
public static final int MENU_PADDINGThe struct member offsets. -
TOOLTIP_PADDING
public static final int TOOLTIP_PADDINGThe struct member offsets.
-
-
Constructor Details
-
NkStyleWindow
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<NkStyleWindow>
-
header
- Returns:
- a
NkStyleWindowHeader
view of theheader
field.
-
fixed_background
- Returns:
- a
NkStyleItem
view of thefixed_background
field.
-
background
- Returns:
- a
NkColor
view of thebackground
field.
-
border_color
- Returns:
- a
NkColor
view of theborder_color
field.
-
popup_border_color
- Returns:
- a
NkColor
view of thepopup_border_color
field.
-
combo_border_color
- Returns:
- a
NkColor
view of thecombo_border_color
field.
-
contextual_border_color
- Returns:
- a
NkColor
view of thecontextual_border_color
field.
-
group_border_color
- Returns:
- a
NkColor
view of thegroup_border_color
field.
-
tooltip_border_color
- Returns:
- a
NkColor
view of thetooltip_border_color
field.
-
scaler
- Returns:
- a
NkStyleItem
view of thescaler
field.
-
border
public float border()- Returns:
- the value of the
border
field.
-
combo_border
public float combo_border()- Returns:
- the value of the
combo_border
field.
-
contextual_border
public float contextual_border()- Returns:
- the value of the
contextual_border
field.
-
group_border
public float group_border()- Returns:
- the value of the
group_border
field.
-
tooltip_border
public float tooltip_border()- Returns:
- the value of the
tooltip_border
field.
-
popup_border
public float popup_border()- Returns:
- the value of the
popup_border
field.
-
min_row_height_padding
public float min_row_height_padding()- Returns:
- the value of the
min_row_height_padding
field.
-
rounding
public float rounding()- Returns:
- the value of the
rounding
field.
-
spacing
- Returns:
- a
NkVec2
view of thespacing
field.
-
scrollbar_size
- Returns:
- a
NkVec2
view of thescrollbar_size
field.
-
min_size
- Returns:
- a
NkVec2
view of themin_size
field.
-
padding
- Returns:
- a
NkVec2
view of thepadding
field.
-
group_padding
- Returns:
- a
NkVec2
view of thegroup_padding
field.
-
popup_padding
- Returns:
- a
NkVec2
view of thepopup_padding
field.
-
combo_padding
- Returns:
- a
NkVec2
view of thecombo_padding
field.
-
contextual_padding
- Returns:
- a
NkVec2
view of thecontextual_padding
field.
-
tooltip_padding
- Returns:
- a
NkVec2
view of thetooltip_padding
field.
-
header
Copies the specifiedNkStyleWindowHeader
to theheader
field. -
header
Passes theheader
field to the specifiedConsumer
. -
fixed_background
Copies the specifiedNkStyleItem
to thefixed_background
field. -
fixed_background
Passes thefixed_background
field to the specifiedConsumer
. -
background
Copies the specifiedNkColor
to thebackground
field. -
background
Passes thebackground
field to the specifiedConsumer
. -
border_color
Copies the specifiedNkColor
to theborder_color
field. -
border_color
Passes theborder_color
field to the specifiedConsumer
. -
popup_border_color
Copies the specifiedNkColor
to thepopup_border_color
field. -
popup_border_color
Passes thepopup_border_color
field to the specifiedConsumer
. -
combo_border_color
Copies the specifiedNkColor
to thecombo_border_color
field. -
combo_border_color
Passes thecombo_border_color
field to the specifiedConsumer
. -
contextual_border_color
Copies the specifiedNkColor
to thecontextual_border_color
field. -
contextual_border_color
Passes thecontextual_border_color
field to the specifiedConsumer
. -
group_border_color
Copies the specifiedNkColor
to thegroup_border_color
field. -
group_border_color
Passes thegroup_border_color
field to the specifiedConsumer
. -
tooltip_border_color
Copies the specifiedNkColor
to thetooltip_border_color
field. -
tooltip_border_color
Passes thetooltip_border_color
field to the specifiedConsumer
. -
scaler
Copies the specifiedNkStyleItem
to thescaler
field. -
scaler
Passes thescaler
field to the specifiedConsumer
. -
border
Sets the specified value to theborder
field. -
combo_border
Sets the specified value to thecombo_border
field. -
contextual_border
Sets the specified value to thecontextual_border
field. -
group_border
Sets the specified value to thegroup_border
field. -
tooltip_border
Sets the specified value to thetooltip_border
field. -
popup_border
Sets the specified value to thepopup_border
field. -
min_row_height_padding
Sets the specified value to themin_row_height_padding
field. -
rounding
Sets the specified value to therounding
field. -
spacing
Copies the specifiedNkVec2
to thespacing
field. -
spacing
Passes thespacing
field to the specifiedConsumer
. -
scrollbar_size
Copies the specifiedNkVec2
to thescrollbar_size
field. -
scrollbar_size
Passes thescrollbar_size
field to the specifiedConsumer
. -
min_size
Copies the specifiedNkVec2
to themin_size
field. -
min_size
Passes themin_size
field to the specifiedConsumer
. -
padding
Copies the specifiedNkVec2
to thepadding
field. -
padding
Passes thepadding
field to the specifiedConsumer
. -
group_padding
Copies the specifiedNkVec2
to thegroup_padding
field. -
group_padding
Passes thegroup_padding
field to the specifiedConsumer
. -
popup_padding
Copies the specifiedNkVec2
to thepopup_padding
field. -
popup_padding
Passes thepopup_padding
field to the specifiedConsumer
. -
combo_padding
Copies the specifiedNkVec2
to thecombo_padding
field. -
combo_padding
Passes thecombo_padding
field to the specifiedConsumer
. -
contextual_padding
Copies the specifiedNkVec2
to thecontextual_padding
field. -
contextual_padding
Passes thecontextual_padding
field to the specifiedConsumer
. -
tooltip_padding
Copies the specifiedNkVec2
to thetooltip_padding
field. -
tooltip_padding
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
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newNkStyleWindow
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newNkStyleWindow
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newNkStyleWindow
instance allocated withBufferUtils
. -
create
Returns a newNkStyleWindow
instance for the specified memory address. -
createSafe
-
malloc
Returns a newNkStyleWindow.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newNkStyleWindow.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newNkStyleWindow.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aNkStyleWindow.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newNkStyleWindow
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newNkStyleWindow
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newNkStyleWindow.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newNkStyleWindow.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nheader
Unsafe version ofheader()
. -
nfixed_background
Unsafe version offixed_background()
. -
nbackground
Unsafe version ofbackground()
. -
nborder_color
Unsafe version ofborder_color()
. -
npopup_border_color
Unsafe version ofpopup_border_color()
. -
ncombo_border_color
Unsafe version ofcombo_border_color()
. -
ncontextual_border_color
Unsafe version ofcontextual_border_color()
. -
ngroup_border_color
Unsafe version ofgroup_border_color()
. -
ntooltip_border_color
Unsafe version oftooltip_border_color()
. -
nscaler
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()
. -
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()
. -
nspacing
Unsafe version ofspacing()
. -
nscrollbar_size
Unsafe version ofscrollbar_size()
. -
nmin_size
Unsafe version ofmin_size()
. -
npadding
Unsafe version ofpadding()
. -
ngroup_padding
Unsafe version ofgroup_padding()
. -
npopup_padding
Unsafe version ofpopup_padding()
. -
ncombo_padding
Unsafe version ofcombo_padding()
. -
ncontextual_padding
Unsafe version ofcontextual_padding()
. -
ntooltip_padding
Unsafe version oftooltip_padding()
. -
nheader
Unsafe version ofheader
. -
nfixed_background
Unsafe version offixed_background
. -
nbackground
Unsafe version ofbackground
. -
nborder_color
Unsafe version ofborder_color
. -
npopup_border_color
Unsafe version ofpopup_border_color
. -
ncombo_border_color
Unsafe version ofcombo_border_color
. -
ncontextual_border_color
Unsafe version ofcontextual_border_color
. -
ngroup_border_color
Unsafe version ofgroup_border_color
. -
ntooltip_border_color
Unsafe version oftooltip_border_color
. -
nscaler
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
. -
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
. -
nspacing
Unsafe version ofspacing
. -
nscrollbar_size
Unsafe version ofscrollbar_size
. -
nmin_size
Unsafe version ofmin_size
. -
npadding
Unsafe version ofpadding
. -
ngroup_padding
Unsafe version ofgroup_padding
. -
npopup_padding
Unsafe version ofpopup_padding
. -
ncombo_padding
Unsafe version ofcombo_padding
. -
ncontextual_padding
Unsafe version ofcontextual_padding
. -
ntooltip_padding
Unsafe version oftooltip_padding
.
-