Package org.lwjgl.nanovg
Class NSVGPath
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<NSVGPath>
org.lwjgl.nanovg.NSVGPath
- All Implemented Interfaces:
org.lwjgl.system.Pointer
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionNSVGPath(ByteBuffer container) Creates aNSVGPathinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbounds()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 FloatBuffernbounds(long struct) Unsafe version ofbounds().static floatnbounds(long struct, int index) Unsafe version ofbounds.static bytenclosed(long struct) Unsafe version ofclosed().next()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 FloatBuffernpts(long struct) Unsafe version ofpts.pts()cubic bezier points:x0,y0, [cpx1,cpx1,cpx2,cpy2,x1,y1], ...intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
PTS
public static final int PTSThe struct member offsets. -
NPTS
public static final int NPTSThe struct member offsets. -
CLOSED
public static final int CLOSEDThe struct member offsets. -
BOUNDS
public static final int BOUNDSThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets.
-
-
Constructor Details
-
NSVGPath
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<NSVGPath>
-
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
tight bounding box of the shape[minx,miny,maxx,maxy] -
bounds
public float bounds(int index) tight bounding box of the shape[minx,miny,maxx,maxy] -
next
pointer to next path, orNULLif last element -
create
Returns a newNSVGPathinstance for the specified memory address. -
createSafe
-
create
Create aNSVGPath.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
npts
Unsafe version ofpts. -
nnpts
public static int nnpts(long struct) Unsafe version ofnpts(). -
nclosed
public static byte nclosed(long struct) Unsafe version ofclosed(). -
nbounds
Unsafe version ofbounds(). -
nbounds
public static float nbounds(long struct, int index) Unsafe version ofbounds. -
nnext
Unsafe version ofnext().
-