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.StructMember documentation
type– one of:PANEL_NONEPANEL_WINDOWPANEL_GROUPPANEL_POPUPPANEL_CONTEXTUALPANEL_COMBOPANEL_MENUPANEL_TOOLTIPPANEL_SET_NONBLOCKPANEL_SET_POPUPPANEL_SET_SUB
Layout
struct nk_panel { enum nk_panel_type type; 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description floatat_x()Returns the value of theat_xfield.floatat_y()Returns the value of theat_yfield.floatborder()Returns the value of theborderfield.NkRectbounds()Returns aNkRectview of theboundsfield.NkPanelbounds(java.util.function.Consumer<NkRect> consumer)Passes theboundsfield to the specifiedConsumer.NkCommandBufferbuffer()Returns aNkCommandBufferview of the struct pointed to by thebufferfield.NkChartchart()Returns aNkChartview of thechartfield.NkRectclip()Returns aNkRectview of theclipfield.NkPanelclip(java.util.function.Consumer<NkRect> consumer)Passes theclipfield to the specifiedConsumer.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()Returns the value of theflagsfield.floatfooter_height()Returns the value of thefooter_heightfield.inthas_scrolling()Returns the value of thehas_scrollingfield.floatheader_height()Returns the value of theheader_heightfield.floatmax_x()Returns the value of themax_xfield.NkMenuStatemenu()Returns aNkMenuStateview of themenufield.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)Returns aIntBufferview of the data pointed to by theoffset_xfield.java.nio.IntBufferoffset_y(int capacity)Returns aIntBufferview of the data pointed to by theoffset_yfield.NkPanelparent()Returns aNkPanelview of the struct pointed to by theparentfield.NkRowLayoutrow()Returns aNkRowLayoutview of therowfield.intsizeof()inttype()Returns the value of thetypefield.
-
-
-
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()
Returns the value of thetypefield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
bounds
public NkPanel bounds(java.util.function.Consumer<NkRect> consumer)
Passes theboundsfield to the specifiedConsumer.
-
offset_x
public java.nio.IntBuffer offset_x(int capacity)
Returns aIntBufferview of the data pointed to by theoffset_xfield.- Parameters:
capacity- the number of elements in the returned buffer
-
offset_y
public java.nio.IntBuffer offset_y(int capacity)
Returns aIntBufferview of the data pointed to by theoffset_yfield.- Parameters:
capacity- the number of elements in the returned buffer
-
at_x
public float at_x()
Returns the value of theat_xfield.
-
at_y
public float at_y()
Returns the value of theat_yfield.
-
max_x
public float max_x()
Returns the value of themax_xfield.
-
footer_height
public float footer_height()
Returns the value of thefooter_heightfield.
-
header_height
public float header_height()
Returns the value of theheader_heightfield.
-
border
public float border()
Returns the value of theborderfield.
-
has_scrolling
public int has_scrolling()
Returns the value of thehas_scrollingfield.
-
clip
public NkPanel clip(java.util.function.Consumer<NkRect> consumer)
Passes theclipfield to the specifiedConsumer.
-
menu
public NkMenuState menu()
Returns aNkMenuStateview of themenufield.
-
row
public NkRowLayout row()
Returns aNkRowLayoutview of therowfield.
-
buffer
public NkCommandBuffer buffer()
Returns aNkCommandBufferview of the struct pointed to by thebufferfield.
-
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().
-
-