Package org.lwjgl.nanovg
Class NSVGPath
- All Implemented Interfaces:
Pointer
struct NSVGpath {
float * pts;
int npts;
char closed;
float bounds[4];
{@link NSVGPath NSVGpath} * next;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The 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 aNSVGPath
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionbounds()
float
bounds
(int index) byte
closed()
static NSVGPath
create
(long address) Returns a newNSVGPath
instance for the specified memory address.static NSVGPath.Buffer
create
(long address, int capacity) Create aNSVGPath.Buffer
instance at the specified memory.static @Nullable NSVGPath
createSafe
(long address) static @Nullable NSVGPath.Buffer
createSafe
(long address, int capacity) static FloatBuffer
nbounds
(long struct) Unsafe version ofbounds()
.static float
nbounds
(long struct, int index) Unsafe version ofbounds
.static byte
nclosed
(long struct) Unsafe version ofclosed()
.next()
static NSVGPath
nnext
(long struct) Unsafe version ofnext()
.static int
nnpts
(long struct) Unsafe version ofnpts()
.int
npts()
static FloatBuffer
npts
(long struct) Unsafe version ofpts
.pts()
int
sizeof()
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 aNSVGPath
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returnssizeof(struct)
. -
pts
- Returns:
- a
FloatBuffer
view of the data pointed to by thepts
field.
-
npts
public int npts()- Returns:
- the value of the
npts
field.
-
closed
public byte closed()- Returns:
- the value of the
closed
field.
-
bounds
- Returns:
- a
FloatBuffer
view of thebounds
field.
-
bounds
public float bounds(int index) - Returns:
- the value at the specified index of the
bounds
field.
-
next
- Returns:
- a
NSVGPath
view of the struct pointed to by thenext
field.
-
create
Returns a newNSVGPath
instance for the specified memory address. -
createSafe
-
create
Create aNSVGPath.Buffer
instance 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()
.
-