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.StructLayout
struct nk_panel { enum nk_panel_typetype(); nk_flags flags;struct nk_rectbounds; 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_rectclip;struct nk_menu_statemenu;struct nk_row_layoutrow;struct nk_chartchart;struct nk_command_buffer* buffer;struct nk_panel* parent; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkPanel.BufferAn array ofNkPanelstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intAT_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 intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkPanel(java.nio.ByteBuffer container)Creates aNkPanelinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description floatat_x()floatat_y()floatborder()NkRectbounds()NkCommandBufferbuffer()NkChartchart()NkRectclip()static NkPanelcreate(long address)Returns a newNkPanelinstance for the specified memory address.static NkPanel.Buffercreate(long address, int capacity)Create aNkPanel.Bufferinstance at the specified memory.static NkPanelcreateSafe(long address)static NkPanel.BuffercreateSafe(long address, int capacity)intflags()floatfooter_height()inthas_scrolling()floatheader_height()floatmax_x()NkMenuStatemenu()static floatnat_x(long struct)Unsafe version ofat_x().static floatnat_y(long struct)Unsafe version ofat_y().static floatnborder(long struct)Unsafe version ofborder().static NkRectnbounds(long struct)Unsafe version ofbounds().static NkCommandBuffernbuffer(long struct)Unsafe version ofbuffer().static NkChartnchart(long struct)Unsafe version ofchart().static NkRectnclip(long struct)Unsafe version ofclip().static intnflags(long struct)Unsafe version offlags().static floatnfooter_height(long struct)Unsafe version offooter_height().static intnhas_scrolling(long struct)Unsafe version ofhas_scrolling().static floatnheader_height(long struct)Unsafe version ofheader_height().static floatnmax_x(long struct)Unsafe version ofmax_x().static NkMenuStatenmenu(long struct)Unsafe version ofmenu().static java.nio.IntBuffernoffset_x(long struct, int capacity)Unsafe version ofoffset_x.static java.nio.IntBuffernoffset_y(long struct, int capacity)Unsafe version ofoffset_y.static NkPanelnparent(long struct)Unsafe version ofparent().static NkRowLayoutnrow(long struct)Unsafe version ofrow().static intntype(long struct)Unsafe version oftype().java.nio.IntBufferoffset_x(int capacity)java.nio.IntBufferoffset_y(int capacity)NkPanelparent()NkRowLayoutrow()intsizeof()inttype()
-
-
-
Constructor Detail
-
NkPanel
public NkPanel(java.nio.ByteBuffer container)
Creates aNkPanelinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
type
public int type()
-
flags
public int flags()
- Returns:
- the value of the
flagsfield.
-
offset_x
public java.nio.IntBuffer offset_x(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
IntBufferview of the data pointed to by theoffset_xfield.
-
offset_y
public java.nio.IntBuffer offset_y(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
IntBufferview of the data pointed to by theoffset_yfield.
-
at_x
public float at_x()
- Returns:
- the value of the
at_xfield.
-
at_y
public float at_y()
- Returns:
- the value of the
at_yfield.
-
max_x
public float max_x()
- Returns:
- the value of the
max_xfield.
-
footer_height
public float footer_height()
- Returns:
- the value of the
footer_heightfield.
-
header_height
public float header_height()
- Returns:
- the value of the
header_heightfield.
-
border
public float border()
- Returns:
- the value of the
borderfield.
-
has_scrolling
public int has_scrolling()
- Returns:
- the value of the
has_scrollingfield.
-
menu
public NkMenuState menu()
- Returns:
- a
NkMenuStateview of themenufield.
-
row
public NkRowLayout row()
- Returns:
- a
NkRowLayoutview of therowfield.
-
buffer
public NkCommandBuffer buffer()
- Returns:
- a
NkCommandBufferview of the struct pointed to by thebufferfield.
-
parent
public NkPanel parent()
- Returns:
- a
NkPanelview of the struct pointed to by theparentfield.
-
create
public static NkPanel create(long address)
Returns a newNkPanelinstance 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.Bufferinstance 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().
-
-