Package org.lwjgl.nuklear
Class NkPanel
- All Implemented Interfaces:
Pointer
Layout
struct nk_panel {
enum nk_panel_type type()
;
nk_flags flags;
struct nk_rect
bounds;
nk_uint * offset_x;
nk_uint * offset_y;
float at_x;
float at_y;
float max_x;
float footer_height;
float header_height;
float border;
unsigned int has_scrolling;
struct nk_rect
clip;
struct nk_menu_state
menu;
struct nk_row_layout
row;
struct nk_chart
chart;
struct nk_command_buffer
* buffer;
struct nk_panel
* parent;
}
-
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 size in bytes.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
ConstructorDescriptionNkPanel
(ByteBuffer container) Creates aNkPanel
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionfloat
at_x()
float
at_y()
float
border()
bounds()
buffer()
chart()
clip()
static NkPanel
create
(long address) Returns a newNkPanel
instance for the specified memory address.static NkPanel.Buffer
create
(long address, int capacity) Create aNkPanel.Buffer
instance at the specified memory.static NkPanel
createSafe
(long address) static NkPanel.Buffer
createSafe
(long address, int capacity) int
flags()
float
int
float
float
max_x()
menu()
static float
nat_x
(long struct) Unsafe version ofat_x()
.static float
nat_y
(long struct) Unsafe version ofat_y()
.static float
nborder
(long struct) Unsafe version ofborder()
.static NkRect
nbounds
(long struct) Unsafe version ofbounds()
.static NkCommandBuffer
nbuffer
(long struct) Unsafe version ofbuffer()
.static NkChart
nchart
(long struct) Unsafe version ofchart()
.static NkRect
nclip
(long struct) Unsafe version ofclip()
.static int
nflags
(long struct) Unsafe version offlags()
.static float
nfooter_height
(long struct) Unsafe version offooter_height()
.static int
nhas_scrolling
(long struct) Unsafe version ofhas_scrolling()
.static float
nheader_height
(long struct) Unsafe version ofheader_height()
.static float
nmax_x
(long struct) Unsafe version ofmax_x()
.static NkMenuState
nmenu
(long struct) Unsafe version ofmenu()
.static IntBuffer
noffset_x
(long struct, int capacity) Unsafe version ofoffset_x
.static IntBuffer
noffset_y
(long struct, int capacity) Unsafe version ofoffset_y
.static NkPanel
nparent
(long struct) Unsafe version ofparent()
.static NkRowLayout
nrow
(long struct) Unsafe version ofrow()
.static int
ntype
(long struct) Unsafe version oftype()
.offset_x
(int capacity) offset_y
(int capacity) parent()
row()
int
sizeof()
Returnssizeof(struct)
.int
type()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TYPE
public static final int TYPEThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
BOUNDS
public static final int BOUNDSThe struct member offsets. -
OFFSET_X
public static final int OFFSET_XThe struct member offsets. -
OFFSET_Y
public static final int OFFSET_YThe struct member offsets. -
AT_X
public static final int AT_XThe struct member offsets. -
AT_Y
public static final int AT_YThe struct member offsets. -
MAX_X
public static final int MAX_XThe struct member offsets. -
FOOTER_HEIGHT
public static final int FOOTER_HEIGHTThe struct member offsets. -
HEADER_HEIGHT
public static final int HEADER_HEIGHTThe struct member offsets. -
BORDER
public static final int BORDERThe struct member offsets. -
HAS_SCROLLING
public static final int HAS_SCROLLINGThe struct member offsets. -
CLIP
public static final int CLIPThe struct member offsets. -
MENU
public static final int MENUThe struct member offsets. -
ROW
public static final int ROWThe struct member offsets. -
CHART
public static final int CHARTThe struct member offsets. -
BUFFER
public static final int BUFFERThe struct member offsets. -
PARENT
public static final int PARENTThe struct member offsets.
-
-
Constructor Details
-
NkPanel
Creates aNkPanel
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)
. -
type
public int type() -
flags
public int flags()- Returns:
- the value of the
flags
field.
-
bounds
- Returns:
- a
NkRect
view of thebounds
field.
-
offset_x
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
IntBuffer
view of the data pointed to by theoffset_x
field.
-
offset_y
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
IntBuffer
view of the data pointed to by theoffset_y
field.
-
at_x
public float at_x()- Returns:
- the value of the
at_x
field.
-
at_y
public float at_y()- Returns:
- the value of the
at_y
field.
-
max_x
public float max_x()- Returns:
- the value of the
max_x
field.
-
header_height
public float header_height()- Returns:
- the value of the
header_height
field.
-
border
public float border()- Returns:
- the value of the
border
field.
-
has_scrolling
public int has_scrolling()- Returns:
- the value of the
has_scrolling
field.
-
clip
- Returns:
- a
NkRect
view of theclip
field.
-
row
- Returns:
- a
NkRowLayout
view of therow
field.
-
chart
- Returns:
- a
NkChart
view of thechart
field.
-
buffer
- Returns:
- a
NkCommandBuffer
view of the struct pointed to by thebuffer
field.
-
parent
- Returns:
- a
NkPanel
view of the struct pointed to by theparent
field.
-
create
Returns a newNkPanel
instance for the specified memory address. -
createSafe
-
create
Create aNkPanel.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
ntype
public static int ntype(long struct) Unsafe version oftype()
. -
nflags
public static int nflags(long struct) Unsafe version offlags()
. -
nbounds
Unsafe version ofbounds()
. -
noffset_x
Unsafe version ofoffset_x
. -
noffset_y
Unsafe version ofoffset_y
. -
nat_x
public static float nat_x(long struct) Unsafe version ofat_x()
. -
nat_y
public static float nat_y(long struct) Unsafe version ofat_y()
. -
nmax_x
public static float nmax_x(long struct) Unsafe version ofmax_x()
. -
nheader_height
public static float nheader_height(long struct) Unsafe version ofheader_height()
. -
nborder
public static float nborder(long struct) Unsafe version ofborder()
. -
nhas_scrolling
public static int nhas_scrolling(long struct) Unsafe version ofhas_scrolling()
. -
nclip
Unsafe version ofclip()
. -
nrow
Unsafe version ofrow()
. -
nchart
Unsafe version ofchart()
. -
nbuffer
Unsafe version ofbuffer()
. -
nparent
Unsafe version ofparent()
.
-