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 ofNSVGShape
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.FloatBuffer
bounds()
Returns aFloatBuffer
view of thebounds
field.float
bounds(int index)
Returns the value at the specified index of thebounds
field.NSVGPaint
fill()
Returns aNSVGPaint
view of thefill
field.byte
fillRule()
Returns the value of thefillRule
field.byte
flags()
Returns the value of theflags
field.java.nio.ByteBuffer
id()
Returns aByteBuffer
view of theid
field.java.lang.String
idString()
Decodes the null-terminated string stored in theid
field.float
miterLimit()
Returns the value of themiterLimit
field.NSVGShape
next()
Returns aNSVGShape
view of the struct pointed to by thenext
field.float
opacity()
Returns the value of theopacity
field.NSVGPath
paths()
Returns aNSVGPath
view of the struct pointed to by thepaths
field.NSVGPaint
stroke()
Returns aNSVGPaint
view of thestroke
field.java.nio.FloatBuffer
strokeDashArray()
Returns aFloatBuffer
view of thestrokeDashArray
field.float
strokeDashArray(int index)
Returns the value at the specified index of thestrokeDashArray
field.byte
strokeDashCount()
Returns the value of thestrokeDashCount
field.float
strokeDashOffset()
Returns the value of thestrokeDashOffset
field.byte
strokeLineCap()
Returns the value of thestrokeLineCap
field.byte
strokeLineJoin()
Returns the value of thestrokeLineJoin
field.float
strokeWidth()
Returns the value of thestrokeWidth
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNSVGShape.Buffer
instance 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 aByteBuffer
view of theid
field.
-
idString
public java.lang.String idString()
Decodes the null-terminated string stored in theid
field.
-
opacity
public float opacity()
Returns the value of theopacity
field.
-
strokeWidth
public float strokeWidth()
Returns the value of thestrokeWidth
field.
-
strokeDashOffset
public float strokeDashOffset()
Returns the value of thestrokeDashOffset
field.
-
strokeDashArray
public java.nio.FloatBuffer strokeDashArray()
Returns aFloatBuffer
view of thestrokeDashArray
field.
-
strokeDashArray
public float strokeDashArray(int index)
Returns the value at the specified index of thestrokeDashArray
field.
-
strokeDashCount
public byte strokeDashCount()
Returns the value of thestrokeDashCount
field.
-
strokeLineJoin
public byte strokeLineJoin()
Returns the value of thestrokeLineJoin
field.
-
strokeLineCap
public byte strokeLineCap()
Returns the value of thestrokeLineCap
field.
-
miterLimit
public float miterLimit()
Returns the value of themiterLimit
field.
-
fillRule
public byte fillRule()
Returns the value of thefillRule
field.
-
flags
public byte flags()
Returns the value of theflags
field.
-
bounds
public java.nio.FloatBuffer bounds()
Returns aFloatBuffer
view of thebounds
field.
-
bounds
public float bounds(int index)
Returns the value at the specified index of thebounds
field.
-
-