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
-
- All Implemented Interfaces:
java.lang.Iterable<NSVGShape>,org.lwjgl.system.Pointer
- Enclosing class:
- NSVGShape
public static class NSVGShape.Buffer extends org.lwjgl.system.StructBuffer<NSVGShape,NSVGShape.Buffer>
An array ofNSVGShapestructs.
-
-
Constructor Summary
Constructors Constructor Description Buffer(long address, int cap)Buffer(java.nio.ByteBuffer container)Creates a newNSVGShape.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.FloatBufferbounds()Returns aFloatBufferview of theboundsfield.floatbounds(int index)Returns the value at the specified index of theboundsfield.NSVGPaintfill()Returns aNSVGPaintview of thefillfield.bytefillRule()Returns the value of thefillRulefield.byteflags()Returns the value of theflagsfield.java.nio.ByteBufferid()Returns aByteBufferview of theidfield.java.lang.StringidString()Decodes the null-terminated string stored in theidfield.floatmiterLimit()Returns the value of themiterLimitfield.NSVGShapenext()Returns aNSVGShapeview of the struct pointed to by thenextfield.floatopacity()Returns the value of theopacityfield.NSVGPathpaths()Returns aNSVGPathview of the struct pointed to by thepathsfield.NSVGPaintstroke()Returns aNSVGPaintview of thestrokefield.java.nio.FloatBufferstrokeDashArray()Returns aFloatBufferview of thestrokeDashArrayfield.floatstrokeDashArray(int index)Returns the value at the specified index of thestrokeDashArrayfield.bytestrokeDashCount()Returns the value of thestrokeDashCountfield.floatstrokeDashOffset()Returns the value of thestrokeDashOffsetfield.bytestrokeLineCap()Returns the value of thestrokeLineCapfield.bytestrokeLineJoin()Returns the value of thestrokeLineJoinfield.floatstrokeWidth()Returns the value of thestrokeWidthfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
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 byNSVGShape.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 Detail
-
id
public java.nio.ByteBuffer id()
Returns aByteBufferview of theidfield.
-
idString
public java.lang.String idString()
Decodes the null-terminated string stored in theidfield.
-
opacity
public float opacity()
Returns the value of theopacityfield.
-
strokeWidth
public float strokeWidth()
Returns the value of thestrokeWidthfield.
-
strokeDashOffset
public float strokeDashOffset()
Returns the value of thestrokeDashOffsetfield.
-
strokeDashArray
public java.nio.FloatBuffer strokeDashArray()
Returns aFloatBufferview of thestrokeDashArrayfield.
-
strokeDashArray
public float strokeDashArray(int index)
Returns the value at the specified index of thestrokeDashArrayfield.
-
strokeDashCount
public byte strokeDashCount()
Returns the value of thestrokeDashCountfield.
-
strokeLineJoin
public byte strokeLineJoin()
Returns the value of thestrokeLineJoinfield.
-
strokeLineCap
public byte strokeLineCap()
Returns the value of thestrokeLineCapfield.
-
miterLimit
public float miterLimit()
Returns the value of themiterLimitfield.
-
fillRule
public byte fillRule()
Returns the value of thefillRulefield.
-
flags
public byte flags()
Returns the value of theflagsfield.
-
bounds
public java.nio.FloatBuffer bounds()
Returns aFloatBufferview of theboundsfield.
-
bounds
public float bounds(int index)
Returns the value at the specified index of theboundsfield.
-
-