public class NSVGImage
extends org.lwjgl.system.Struct
width – Width of the image.height – Height of the image.shapes – lLinked list of shapes in the image
struct NSVGimage {
float width;
float height;
NSVGshape * shapes;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NSVGImage.Buffer
An array of
NSVGImage structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
HEIGHT
The struct member offsets.
|
static int |
SHAPES
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
WIDTH
The struct member offsets.
|
| Constructor and Description |
|---|
NSVGImage(java.nio.ByteBuffer container)
Creates a
NSVGImage instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static NSVGImage |
create(long address)
Returns a new
NSVGImage instance for the specified memory address. |
static NSVGImage.Buffer |
create(long address,
int capacity)
Create a
NSVGImage.Buffer instance at the specified memory. |
static NSVGImage |
createSafe(long address)
|
static NSVGImage.Buffer |
createSafe(long address,
int capacity)
|
float |
height()
Returns the value of the
height field. |
static float |
nheight(long struct)
Unsafe version of
height(). |
static NSVGShape |
nshapes(long struct)
Unsafe version of
shapes(). |
static float |
nwidth(long struct)
Unsafe version of
width(). |
NSVGShape |
shapes()
Returns a
NSVGShape view of the struct pointed to by the shapes field. |
int |
sizeof() |
float |
width()
Returns the value of the
width field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int WIDTH
public static final int HEIGHT
public static final int SHAPES
public NSVGImage(java.nio.ByteBuffer container)
NSVGImage 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 float width()
width field.public float height()
height field.public NSVGShape shapes()
NSVGShape view of the struct pointed to by the shapes field.public static NSVGImage create(long address)
NSVGImage instance for the specified memory address.@Nullable public static NSVGImage createSafe(long address)
public static NSVGImage.Buffer create(long address, int capacity)
NSVGImage.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NSVGImage.Buffer createSafe(long address, int capacity)
public static float nwidth(long struct)
width().public static float nheight(long struct)
height().Copyright LWJGL. All Rights Reserved. License terms.