Package org.lwjgl.nanovg
Class NSVGImage
- All Implemented Interfaces:
Pointer
struct NSVGimage {
float width;
float height;
{@link NSVGShape NSVGshape} * shapes;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionNSVGImage
(ByteBuffer container) Creates aNSVGImage
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic NSVGImage
create
(long address) Returns a newNSVGImage
instance for the specified memory address.static NSVGImage.Buffer
create
(long address, int capacity) Create aNSVGImage.Buffer
instance at the specified memory.static @Nullable NSVGImage
createSafe
(long address) static @Nullable NSVGImage.Buffer
createSafe
(long address, int capacity) float
height()
static float
nheight
(long struct) Unsafe version ofheight()
.static NSVGShape
nshapes
(long struct) Unsafe version ofshapes()
.static float
nwidth
(long struct) Unsafe version ofwidth()
.shapes()
int
sizeof()
Returnssizeof(struct)
.float
width()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
WIDTH
public static final int WIDTHThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
SHAPES
public static final int SHAPESThe struct member offsets.
-
-
Constructor Details
-
NSVGImage
Creates aNSVGImage
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
. -
width
public float width()- Returns:
- the value of the
width
field.
-
height
public float height()- Returns:
- the value of the
height
field.
-
shapes
- Returns:
- a
NSVGShape
view of the struct pointed to by theshapes
field.
-
create
Returns a newNSVGImage
instance for the specified memory address. -
createSafe
-
create
Create aNSVGImage.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nwidth
public static float nwidth(long struct) Unsafe version ofwidth()
. -
nheight
public static float nheight(long struct) Unsafe version ofheight()
. -
nshapes
Unsafe version ofshapes()
.
-