Package org.lwjgl.nuklear
Class NkPanel
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkPanel
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class NkPanel extends org.lwjgl.system.Struct
Member documentation
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
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 Modifier and Type Class Description static class
NkPanel.Buffer
An array ofNkPanel
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
AT_X
AT_Y
BORDER
BOUNDS
BUFFER
CHART
CLIP
FLAGS
FOOTER_HEIGHT
HAS_SCROLLING
HEADER_HEIGHT
MAX_X
MENU
OFFSET_X
OFFSET_Y
PARENT
ROWThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
TYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkPanel(java.nio.ByteBuffer container)
Creates aNkPanel
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description float
at_x()
Returns the value of theat_x
field.float
at_y()
Returns the value of theat_y
field.float
border()
Returns the value of theborder
field.NkRect
bounds()
Returns aNkRect
view of thebounds
field.NkCommandBuffer
buffer()
Returns aNkCommandBuffer
view of the struct pointed to by thebuffer
field.NkChart
chart()
Returns aNkChart
view of thechart
field.NkRect
clip()
Returns aNkRect
view of theclip
field.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()
Returns the value of theflags
field.float
footer_height()
Returns the value of thefooter_height
field.int
has_scrolling()
Returns the value of thehas_scrolling
field.float
header_height()
Returns the value of theheader_height
field.float
max_x()
Returns the value of themax_x
field.NkMenuState
menu()
Returns aNkMenuState
view of themenu
field.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 java.nio.IntBuffer
noffset_x(long struct, int capacity)
Unsafe version ofoffset_x
.static java.nio.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()
.java.nio.IntBuffer
offset_x(int capacity)
Returns aIntBuffer
view of the data pointed to by theoffset_x
field.java.nio.IntBuffer
offset_y(int capacity)
Returns aIntBuffer
view of the data pointed to by theoffset_y
field.NkPanel
parent()
Returns aNkPanel
view of the struct pointed to by theparent
field.NkRowLayout
row()
Returns aNkRowLayout
view of therow
field.int
sizeof()
int
type()
Returns the value of thetype
field.
-
-
-
Constructor Detail
-
NkPanel
public NkPanel(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
type
public int type()
Returns the value of thetype
field.
-
flags
public int flags()
Returns the value of theflags
field.
-
offset_x
public java.nio.IntBuffer offset_x(int capacity)
Returns aIntBuffer
view of the data pointed to by theoffset_x
field.- Parameters:
capacity
- the number of elements in the returned buffer
-
offset_y
public java.nio.IntBuffer offset_y(int capacity)
Returns aIntBuffer
view of the data pointed to by theoffset_y
field.- Parameters:
capacity
- the number of elements in the returned buffer
-
at_x
public float at_x()
Returns the value of theat_x
field.
-
at_y
public float at_y()
Returns the value of theat_y
field.
-
max_x
public float max_x()
Returns the value of themax_x
field.
-
footer_height
public float footer_height()
Returns the value of thefooter_height
field.
-
header_height
public float header_height()
Returns the value of theheader_height
field.
-
border
public float border()
Returns the value of theborder
field.
-
has_scrolling
public int has_scrolling()
Returns the value of thehas_scrolling
field.
-
menu
public NkMenuState menu()
Returns aNkMenuState
view of themenu
field.
-
row
public NkRowLayout row()
Returns aNkRowLayout
view of therow
field.
-
buffer
public NkCommandBuffer buffer()
Returns aNkCommandBuffer
view of the struct pointed to by thebuffer
field.
-
create
public static NkPanel create(long address)
Returns a newNkPanel
instance for the specified memory address.
-
createSafe
@Nullable public static NkPanel createSafe(long address)
-
create
public static NkPanel.Buffer create(long address, int capacity)
Create aNkPanel.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static NkPanel.Buffer createSafe(long address, int capacity)
-
ntype
public static int ntype(long struct)
Unsafe version oftype()
.
-
nflags
public static int nflags(long struct)
Unsafe version offlags()
.
-
noffset_x
public static java.nio.IntBuffer noffset_x(long struct, int capacity)
Unsafe version ofoffset_x
.
-
noffset_y
public static java.nio.IntBuffer noffset_y(long struct, int capacity)
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()
.
-
nfooter_height
public static float nfooter_height(long struct)
Unsafe version offooter_height()
.
-
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()
.
-
nmenu
public static NkMenuState nmenu(long struct)
Unsafe version ofmenu()
.
-
nrow
public static NkRowLayout nrow(long struct)
Unsafe version ofrow()
.
-
nbuffer
public static NkCommandBuffer nbuffer(long struct)
Unsafe version ofbuffer()
.
-
-