Package org.lwjgl.nanovg
Class NSVGGradientStop
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nanovg.NSVGGradientStop
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class NSVGGradientStop extends org.lwjgl.system.StructLayout
struct NSVGgradientStop { unsigned int color; float offset; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNSVGGradientStop.BufferAn array ofNSVGGradientStopstructs.
-
Constructor Summary
Constructors Constructor Description NSVGGradientStop(java.nio.ByteBuffer container)Creates aNSVGGradientStopinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcolor()static NSVGGradientStopcreate(long address)Returns a newNSVGGradientStopinstance for the specified memory address.static NSVGGradientStop.Buffercreate(long address, int capacity)Create aNSVGGradientStop.Bufferinstance at the specified memory.static NSVGGradientStopcreateSafe(long address)static NSVGGradientStop.BuffercreateSafe(long address, int capacity)static intncolor(long struct)Unsafe version ofcolor().static floatnoffset(long struct)Unsafe version ofoffset().floatoffset()intsizeof()
-
-
-
Constructor Detail
-
NSVGGradientStop
public NSVGGradientStop(java.nio.ByteBuffer container)
Creates aNSVGGradientStopinstance at the current position of the specifiedByteBuffercontainer. 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
color
public int color()
- Returns:
- the value of the
colorfield.
-
offset
public float offset()
- Returns:
- the value of the
offsetfield.
-
create
public static NSVGGradientStop create(long address)
Returns a newNSVGGradientStopinstance for the specified memory address.
-
createSafe
@Nullable public static NSVGGradientStop createSafe(long address)
-
create
public static NSVGGradientStop.Buffer create(long address, int capacity)
Create aNSVGGradientStop.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static NSVGGradientStop.Buffer createSafe(long address, int capacity)
-
ncolor
public static int ncolor(long struct)
Unsafe version ofcolor().
-
noffset
public static float noffset(long struct)
Unsafe version ofoffset().
-
-