public class NSVGPaint
extends org.lwjgl.system.Struct
struct NSVGpaint {
char type;
union {
unsigned int color;
NSVGgradient * gradient;
};
}| Modifier and Type | Class and Description |
|---|---|
static class |
NSVGPaint.Buffer
An array of
NSVGPaint structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
COLOR
The struct member offsets.
|
static int |
GRADIENT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TYPE
The struct member offsets.
|
| Constructor and Description |
|---|
NSVGPaint(java.nio.ByteBuffer container)
Creates a
NSVGPaint instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
color()
Returns the value of the
color field. |
static NSVGPaint |
create(long address)
Returns a new
NSVGPaint instance for the specified memory address. |
static NSVGPaint.Buffer |
create(long address,
int capacity)
Create a
NSVGPaint.Buffer instance at the specified memory. |
static NSVGPaint |
createSafe(long address)
|
static NSVGPaint.Buffer |
createSafe(long address,
int capacity)
|
NSVGGradient |
gradient()
Returns a
NSVGGradient view of the struct pointed to by the gradient field. |
static int |
ncolor(long struct)
Unsafe version of
color(). |
static NSVGGradient |
ngradient(long struct)
Unsafe version of
gradient(). |
static byte |
ntype(long struct)
Unsafe version of
type(). |
int |
sizeof() |
byte |
type()
Returns the value of the
type field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int TYPE
public static final int COLOR
public static final int GRADIENT
public NSVGPaint(java.nio.ByteBuffer container)
NSVGPaint instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic byte type()
type field.public int color()
color field.public NSVGGradient gradient()
NSVGGradient view of the struct pointed to by the gradient field.public static NSVGPaint create(long address)
NSVGPaint instance for the specified memory address.@Nullable public static NSVGPaint createSafe(long address)
public static NSVGPaint.Buffer create(long address, int capacity)
NSVGPaint.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NSVGPaint.Buffer createSafe(long address, int capacity)
public static byte ntype(long struct)
type().public static int ncolor(long struct)
color().public static NSVGGradient ngradient(long struct)
gradient().Copyright LWJGL. All Rights Reserved. License terms.