Package org.lwjgl.nuklear
Class NkRowLayout
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkRowLayout
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class NkRowLayout extends org.lwjgl.system.StructMember documentation
type– one of:LAYOUT_DYNAMIC_FIXEDLAYOUT_DYNAMIC_ROWLAYOUT_DYNAMIC_FREELAYOUT_DYNAMICLAYOUT_STATIC_FIXEDLAYOUT_STATIC_ROWLAYOUT_STATIC_FREELAYOUT_STATICLAYOUT_TEMPLATELAYOUT_COUNT
Layout
struct nk_row_layout { enum nk_panel_row_layout_type type; int index; float height; float min_height; int columns; float const * ratio; float item_width; float item_height; float item_offset; float filled;struct nk_rectitem; int tree_depth; float templates[16]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkRowLayout.BufferAn array ofNkRowLayoutstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOLUMNS
FILLED
HEIGHT
INDEX
ITEM
ITEM_HEIGHT
ITEM_OFFSET
ITEM_WIDTH
MIN_HEIGHT
RATIOThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTEMPLATES
TREE_DEPTH
TYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkRowLayout(java.nio.ByteBuffer container)Creates aNkRowLayoutinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcolumns()Returns the value of thecolumnsfield.static NkRowLayoutcreate(long address)Returns a newNkRowLayoutinstance for the specified memory address.static NkRowLayout.Buffercreate(long address, int capacity)Create aNkRowLayout.Bufferinstance at the specified memory.static NkRowLayoutcreateSafe(long address)static NkRowLayout.BuffercreateSafe(long address, int capacity)floatfilled()Returns the value of thefilledfield.floatheight()Returns the value of theheightfield.intindex()Returns the value of theindexfield.NkRectitem()Returns aNkRectview of theitemfield.NkRowLayoutitem(java.util.function.Consumer<NkRect> consumer)Passes theitemfield to the specifiedConsumer.floatitem_height()Returns the value of theitem_heightfield.floatitem_offset()Returns the value of theitem_offsetfield.floatitem_width()Returns the value of theitem_widthfield.floatmin_height()Returns the value of themin_heightfield.static intncolumns(long struct)Unsafe version ofcolumns().static floatnfilled(long struct)Unsafe version offilled().static floatnheight(long struct)Unsafe version ofheight().static intnindex(long struct)Unsafe version ofindex().static NkRectnitem(long struct)Unsafe version ofitem().static floatnitem_height(long struct)Unsafe version ofitem_height().static floatnitem_offset(long struct)Unsafe version ofitem_offset().static floatnitem_width(long struct)Unsafe version ofitem_width().static floatnmin_height(long struct)Unsafe version ofmin_height().static java.nio.FloatBuffernratio(long struct, int capacity)Unsafe version ofratio.static java.nio.FloatBufferntemplates(long struct)Unsafe version oftemplates().static floatntemplates(long struct, int index)Unsafe version oftemplates.static intntree_depth(long struct)Unsafe version oftree_depth().static intntype(long struct)Unsafe version oftype().java.nio.FloatBufferratio(int capacity)Returns aFloatBufferview of the data pointed to by theratiofield.intsizeof()java.nio.FloatBuffertemplates()Returns aFloatBufferview of thetemplatesfield.floattemplates(int index)Returns the value at the specified index of thetemplatesfield.inttree_depth()Returns the value of thetree_depthfield.inttype()Returns the value of thetypefield.
-
-
-
Constructor Detail
-
NkRowLayout
public NkRowLayout(java.nio.ByteBuffer container)
Creates aNkRowLayoutinstance 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.
-
index
public int index()
Returns the value of theindexfield.
-
height
public float height()
Returns the value of theheightfield.
-
min_height
public float min_height()
Returns the value of themin_heightfield.
-
columns
public int columns()
Returns the value of thecolumnsfield.
-
ratio
public java.nio.FloatBuffer ratio(int capacity)
Returns aFloatBufferview of the data pointed to by theratiofield.- Parameters:
capacity- the number of elements in the returned buffer
-
item_width
public float item_width()
Returns the value of theitem_widthfield.
-
item_height
public float item_height()
Returns the value of theitem_heightfield.
-
item_offset
public float item_offset()
Returns the value of theitem_offsetfield.
-
filled
public float filled()
Returns the value of thefilledfield.
-
item
public NkRowLayout item(java.util.function.Consumer<NkRect> consumer)
Passes theitemfield to the specifiedConsumer.
-
tree_depth
public int tree_depth()
Returns the value of thetree_depthfield.
-
templates
public java.nio.FloatBuffer templates()
Returns aFloatBufferview of thetemplatesfield.
-
templates
public float templates(int index)
Returns the value at the specified index of thetemplatesfield.
-
create
public static NkRowLayout create(long address)
Returns a newNkRowLayoutinstance for the specified memory address.
-
createSafe
@Nullable public static NkRowLayout createSafe(long address)
-
create
public static NkRowLayout.Buffer create(long address, int capacity)
Create aNkRowLayout.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static NkRowLayout.Buffer createSafe(long address, int capacity)
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nindex
public static int nindex(long struct)
Unsafe version ofindex().
-
nheight
public static float nheight(long struct)
Unsafe version ofheight().
-
nmin_height
public static float nmin_height(long struct)
Unsafe version ofmin_height().
-
ncolumns
public static int ncolumns(long struct)
Unsafe version ofcolumns().
-
nratio
public static java.nio.FloatBuffer nratio(long struct, int capacity)Unsafe version ofratio.
-
nitem_width
public static float nitem_width(long struct)
Unsafe version ofitem_width().
-
nitem_height
public static float nitem_height(long struct)
Unsafe version ofitem_height().
-
nitem_offset
public static float nitem_offset(long struct)
Unsafe version ofitem_offset().
-
nfilled
public static float nfilled(long struct)
Unsafe version offilled().
-
ntree_depth
public static int ntree_depth(long struct)
Unsafe version oftree_depth().
-
ntemplates
public static java.nio.FloatBuffer ntemplates(long struct)
Unsafe version oftemplates().
-
ntemplates
public static float ntemplates(long struct, int index)Unsafe version oftemplates.
-
-