Package org.lwjgl.nanovg
Class NSVGPath
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nanovg.NSVGPath
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class NSVGPath extends org.lwjgl.system.Struct
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNSVGPath.BufferAn array ofNSVGPathstructs.
-
Constructor Summary
Constructors Constructor Description NSVGPath(java.nio.ByteBuffer container)Creates aNSVGPathinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.FloatBufferbounds()tight bounding box of the shape[minx,miny,maxx,maxy]floatbounds(int index)tight bounding box of the shape[minx,miny,maxx,maxy]byteclosed()flag indicating if shapes should be treated as closedstatic NSVGPathcreate(long address)Returns a newNSVGPathinstance for the specified memory address.static NSVGPath.Buffercreate(long address, int capacity)Create aNSVGPath.Bufferinstance at the specified memory.static NSVGPathcreateSafe(long address)static NSVGPath.BuffercreateSafe(long address, int capacity)static java.nio.FloatBuffernbounds(long struct)Unsafe version ofbounds().static floatnbounds(long struct, int index)Unsafe version ofbounds.static bytenclosed(long struct)Unsafe version ofclosed().NSVGPathnext()pointer to next path, orNULLif last elementstatic NSVGPathnnext(long struct)Unsafe version ofnext().static intnnpts(long struct)Unsafe version ofnpts().intnpts()total number of bezier pointsstatic java.nio.FloatBuffernpts(long struct)Unsafe version ofpts.java.nio.FloatBufferpts()cubic bezier points:x0,y0, [cpx1,cpx1,cpx2,cpy2,x1,y1], ...intsizeof()
-
-
-
Constructor Detail
-
NSVGPath
public NSVGPath(java.nio.ByteBuffer container)
Creates aNSVGPathinstance 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
-
pts
public java.nio.FloatBuffer pts()
cubic bezier points:x0,y0, [cpx1,cpx1,cpx2,cpy2,x1,y1], ...
-
npts
public int npts()
total number of bezier points
-
closed
public byte closed()
flag indicating if shapes should be treated as closed
-
bounds
public java.nio.FloatBuffer bounds() public float bounds(int index)
tight bounding box of the shape[minx,miny,maxx,maxy]
-
next
public NSVGPath next()
pointer to next path, orNULLif last element
-
create
public static NSVGPath create(long address)
Returns a newNSVGPathinstance for the specified memory address.
-
createSafe
@Nullable public static NSVGPath createSafe(long address)
-
create
public static NSVGPath.Buffer create(long address, int capacity)
Create aNSVGPath.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static NSVGPath.Buffer createSafe(long address, int capacity)
-
npts
public static java.nio.FloatBuffer npts(long struct)
Unsafe version ofpts.
-
nnpts
public static int nnpts(long struct)
Unsafe version ofnpts().
-
nclosed
public static byte nclosed(long struct)
Unsafe version ofclosed().
-
nbounds
public static java.nio.FloatBuffer nbounds(long struct)
Unsafe version ofbounds().
-
nbounds
public static float nbounds(long struct, int index)Unsafe version ofbounds.
-
-