Package org.lwjgl.nanovg
Class NSVGPath
- All Implemented Interfaces:
Pointer
struct NSVGpath {
float * pts;
int npts;
char closed;
float bounds[4];
NSVGpath * next;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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()floatbounds(int index) byteclosed()static 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 @Nullable NSVGPathcreateSafe(long address) static @Nullable 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()static NSVGPathnnext(long struct) Unsafe version ofnext().static intnnpts(long struct) Unsafe version ofnpts().intnpts()static FloatBuffernpts(long struct) Unsafe version ofpts.pts()intsizeof()Returnssizeof(struct).Methods 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()Description copied from class:StructReturnssizeof(struct). -
pts
- Returns:
- a
FloatBufferview of the data pointed to by theptsfield.
-
npts
public int npts()- Returns:
- the value of the
nptsfield.
-
closed
public byte closed()- Returns:
- the value of the
closedfield.
-
bounds
- Returns:
- a
FloatBufferview of theboundsfield.
-
bounds
public float bounds(int index) - Returns:
- the value at the specified index of the
boundsfield.
-
next
- Returns:
- a
NSVGPathview of the struct pointed to by thenextfield.
-
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().
-