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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.FloatBufferbounds()floatbounds(int index)NSVGPaintfill()bytefillRule()byteflags()java.nio.ByteBufferid()java.lang.StringidString()floatmiterLimit()NSVGShapenext()floatopacity()NSVGPathpaths()NSVGPaintstroke()java.nio.FloatBufferstrokeDashArray()floatstrokeDashArray(int index)bytestrokeDashCount()floatstrokeDashOffset()bytestrokeLineCap()bytestrokeLineJoin()floatstrokeWidth()
-
-
-
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:
- a
ByteBufferview of theNSVGShape.id()field.
-
idString
public java.lang.String idString()
- Returns:
- the null-terminated string stored in the
NSVGShape.id()field.
-
fill
public NSVGPaint fill()
- Returns:
- a
NSVGPaintview of theNSVGShape.fill()field.
-
stroke
public NSVGPaint 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
public java.nio.FloatBuffer 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
public java.nio.FloatBuffer 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.
-
paths
public NSVGPath paths()
- Returns:
- a
NSVGPathview of the struct pointed to by theNSVGShape.paths()field.
-
next
public NSVGShape next()
- Returns:
- a
NSVGShapeview of the struct pointed to by theNSVGShape.next()field.
-
-