public class NkPanel
extends org.lwjgl.system.Struct
type – one of:PANEL_NONE | PANEL_WINDOW | PANEL_GROUP | PANEL_POPUP | PANEL_CONTEXTUAL | PANEL_COMBO |
PANEL_MENU | PANEL_TOOLTIP | PANEL_SET_NONBLOCK | PANEL_SET_POPUP | PANEL_SET_SUB |
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkPanel.Buffer
An array of
NkPanel structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
AT_X
The struct member offsets.
|
static int |
AT_Y
The struct member offsets.
|
static int |
BORDER
The struct member offsets.
|
static int |
BOUNDS
The struct member offsets.
|
static int |
BUFFER
The struct member offsets.
|
static int |
CHART
The struct member offsets.
|
static int |
CLIP
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
FOOTER_HEIGHT
The struct member offsets.
|
static int |
HAS_SCROLLING
The struct member offsets.
|
static int |
HEADER_HEIGHT
The struct member offsets.
|
static int |
MAX_X
The struct member offsets.
|
static int |
MENU
The struct member offsets.
|
static int |
OFFSET_X
The struct member offsets.
|
static int |
OFFSET_Y
The struct member offsets.
|
static int |
PARENT
The struct member offsets.
|
static int |
ROW
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TYPE
The struct member offsets.
|
| Constructor and Description |
|---|
NkPanel(java.nio.ByteBuffer container)
Creates a
NkPanel instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
float |
at_x()
Returns the value of the
at_x field. |
float |
at_y()
Returns the value of the
at_y field. |
float |
border()
Returns the value of the
border field. |
NkRect |
bounds()
Returns a
NkRect view of the bounds field. |
NkCommandBuffer |
buffer()
Returns a
NkCommandBuffer view of the struct pointed to by the buffer field. |
NkChart |
chart()
Returns a
NkChart view of the chart field. |
NkRect |
clip()
Returns a
NkRect view of the clip field. |
static NkPanel |
create(long address)
Returns a new
NkPanel instance for the specified memory address. |
static NkPanel.Buffer |
create(long address,
int capacity)
Create a
NkPanel.Buffer instance at the specified memory. |
static NkPanel |
createSafe(long address)
|
static NkPanel.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
float |
footer_height()
Returns the value of the
footer_height field. |
int |
has_scrolling()
Returns the value of the
has_scrolling field. |
float |
header_height()
Returns the value of the
header_height field. |
float |
max_x()
Returns the value of the
max_x field. |
NkMenuState |
menu()
Returns a
NkMenuState view of the menu field. |
static float |
nat_x(long struct)
Unsafe version of
at_x(). |
static float |
nat_y(long struct)
Unsafe version of
at_y(). |
static float |
nborder(long struct)
Unsafe version of
border(). |
static NkRect |
nbounds(long struct)
Unsafe version of
bounds(). |
static NkCommandBuffer |
nbuffer(long struct)
Unsafe version of
buffer(). |
static NkChart |
nchart(long struct)
Unsafe version of
chart(). |
static NkRect |
nclip(long struct)
Unsafe version of
clip(). |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static float |
nfooter_height(long struct)
Unsafe version of
footer_height(). |
static int |
nhas_scrolling(long struct)
Unsafe version of
has_scrolling(). |
static float |
nheader_height(long struct)
Unsafe version of
header_height(). |
static float |
nmax_x(long struct)
Unsafe version of
max_x(). |
static NkMenuState |
nmenu(long struct)
Unsafe version of
menu(). |
static java.nio.IntBuffer |
noffset_x(long struct,
int capacity)
Unsafe version of
offset_x. |
static java.nio.IntBuffer |
noffset_y(long struct,
int capacity)
Unsafe version of
offset_y. |
static NkPanel |
nparent(long struct)
Unsafe version of
parent(). |
static NkRowLayout |
nrow(long struct)
Unsafe version of
row(). |
static int |
ntype(long struct)
Unsafe version of
type(). |
java.nio.IntBuffer |
offset_x(int capacity)
Returns a
IntBuffer view of the data pointed to by the offset_x field. |
java.nio.IntBuffer |
offset_y(int capacity)
Returns a
IntBuffer view of the data pointed to by the offset_y field. |
NkPanel |
parent()
Returns a
NkPanel view of the struct pointed to by the parent field. |
NkRowLayout |
row()
Returns a
NkRowLayout view of the row field. |
int |
sizeof() |
int |
type()
Returns the value of the
type field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int TYPE
public static final int FLAGS
public static final int BOUNDS
public static final int OFFSET_X
public static final int OFFSET_Y
public static final int AT_X
public static final int AT_Y
public static final int MAX_X
public static final int FOOTER_HEIGHT
public static final int HEADER_HEIGHT
public static final int BORDER
public static final int HAS_SCROLLING
public static final int CLIP
public static final int MENU
public static final int ROW
public static final int CHART
public static final int BUFFER
public static final int PARENT
public NkPanel(java.nio.ByteBuffer container)
NkPanel instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int type()
type field.public int flags()
flags field.public java.nio.IntBuffer offset_x(int capacity)
IntBuffer view of the data pointed to by the offset_x field.capacity - the number of elements in the returned bufferpublic java.nio.IntBuffer offset_y(int capacity)
IntBuffer view of the data pointed to by the offset_y field.capacity - the number of elements in the returned bufferpublic float at_x()
at_x field.public float at_y()
at_y field.public float max_x()
max_x field.public float footer_height()
footer_height field.public float header_height()
header_height field.public float border()
border field.public int has_scrolling()
has_scrolling field.public NkMenuState menu()
NkMenuState view of the menu field.public NkRowLayout row()
NkRowLayout view of the row field.public NkCommandBuffer buffer()
NkCommandBuffer view of the struct pointed to by the buffer field.public static NkPanel create(long address)
NkPanel instance for the specified memory address.@Nullable public static NkPanel createSafe(long address)
public static NkPanel.Buffer create(long address, int capacity)
NkPanel.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkPanel.Buffer createSafe(long address, int capacity)
public static int ntype(long struct)
type().public static int nflags(long struct)
flags().public static java.nio.IntBuffer noffset_x(long struct,
int capacity)
offset_x.public static java.nio.IntBuffer noffset_y(long struct,
int capacity)
offset_y.public static float nat_x(long struct)
at_x().public static float nat_y(long struct)
at_y().public static float nmax_x(long struct)
max_x().public static float nfooter_height(long struct)
footer_height().public static float nheader_height(long struct)
header_height().public static float nborder(long struct)
border().public static int nhas_scrolling(long struct)
has_scrolling().public static NkMenuState nmenu(long struct)
menu().public static NkRowLayout nrow(long struct)
row().public static NkCommandBuffer nbuffer(long struct)
buffer().Copyright LWJGL. All Rights Reserved. License terms.