Package org.lwjgl.nanovg
Class NSVGShape.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<SELF>
org.lwjgl.system.StructBuffer<NSVGShape,NSVGShape.Buffer>
org.lwjgl.nanovg.NSVGShape.Buffer
- Enclosing class:
NSVGShape
public static class NSVGShape.Buffer
extends org.lwjgl.system.StructBuffer<NSVGShape,NSVGShape.Buffer>
An array of
NSVGShape structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newNSVGShape.Bufferinstance backed by the specified container. -
Method Summary
Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
-
Constructor Details
-
Buffer
Creates a newNSVGShape.Bufferinstance backed by the specified container.Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by
NSVGShape.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
id
- Returns:
- a
ByteBufferview of theNSVGShape.id()field.
-
idString
- Returns:
- the null-terminated string stored in the
NSVGShape.id()field.
-
fill
- Returns:
- a
NSVGPaintview of theNSVGShape.fill()field.
-
stroke
- Returns:
- a
NSVGPaintview of theNSVGShape.stroke()field.
-
opacity
public float opacity()- Returns:
- the value of the
NSVGShape.opacity()field.
-
strokeWidth
public float strokeWidth()- Returns:
- the value of the
NSVGShape.strokeWidth()field.
-
strokeDashOffset
public float strokeDashOffset()- Returns:
- the value of the
NSVGShape.strokeDashOffset()field.
-
strokeDashArray
- Returns:
- a
FloatBufferview of theNSVGShape.strokeDashArray()field.
-
strokeDashArray
public float strokeDashArray(int index) - Returns:
- the value at the specified index of the
NSVGShape.strokeDashArray()field.
-
strokeDashCount
public byte strokeDashCount()- Returns:
- the value of the
NSVGShape.strokeDashCount()field.
-
strokeLineJoin
public byte strokeLineJoin()- Returns:
- the value of the
NSVGShape.strokeLineJoin()field.
-
strokeLineCap
public byte strokeLineCap()- Returns:
- the value of the
NSVGShape.strokeLineCap()field.
-
miterLimit
public float miterLimit()- Returns:
- the value of the
NSVGShape.miterLimit()field.
-
fillRule
public byte fillRule()- Returns:
- the value of the
NSVGShape.fillRule()field.
-
flags
public byte flags()- Returns:
- the value of the
NSVGShape.flags()field.
-
bounds
- Returns:
- a
FloatBufferview of theNSVGShape.bounds()field.
-
bounds
public float bounds(int index) - Returns:
- the value at the specified index of the
NSVGShape.bounds()field.
-
fillGradient
- Returns:
- a
ByteBufferview of theNSVGShape.fillGradient()field.
-
fillGradientString
- Returns:
- the null-terminated string stored in the
NSVGShape.fillGradient()field.
-
strokeGradient
- Returns:
- a
ByteBufferview of theNSVGShape.strokeGradient()field.
-
strokeGradientString
- Returns:
- the null-terminated string stored in the
NSVGShape.strokeGradient()field.
-
xform
- Returns:
- a
FloatBufferview of theNSVGShape.xform()field.
-
xform
public float xform(int index) - Returns:
- the value at the specified index of the
NSVGShape.xform()field.
-
paths
- Returns:
- a
NSVGPathview of the struct pointed to by theNSVGShape.paths()field.
-
next
- Returns:
- a
NSVGShapeview of the struct pointed to by theNSVGShape.next()field.
-