Package org.lwjgl.util.freetype
Class FT_Outline
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct FT_Outline {
unsigned short n_contours;
unsigned short n_points;
{@link FT_Vector FT_Vector} * points;
unsigned char * tags;
unsigned short * contours;
int flags;
}
-
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 member offsets.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
ConstructorsConstructorDescriptionFT_Outline
(ByteBuffer container) Creates aFT_Outline
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_Outline
calloc()
Returns a newFT_Outline
instance allocated withmemCalloc
.static FT_Outline.Buffer
calloc
(int capacity) Returns a newFT_Outline.Buffer
instance allocated withmemCalloc
.static FT_Outline.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newFT_Outline.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FT_Outline
calloc
(MemoryStack stack) Returns a newFT_Outline
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.contours()
static FT_Outline
create()
Returns a newFT_Outline
instance allocated withBufferUtils
.static FT_Outline.Buffer
create
(int capacity) Returns a newFT_Outline.Buffer
instance allocated withBufferUtils
.static FT_Outline
create
(long address) Returns a newFT_Outline
instance for the specified memory address.static FT_Outline.Buffer
create
(long address, int capacity) Create aFT_Outline.Buffer
instance at the specified memory.static @Nullable FT_Outline
createSafe
(long address) static @Nullable FT_Outline.Buffer
createSafe
(long address, int capacity) int
flags()
static FT_Outline
malloc()
Returns a newFT_Outline
instance allocated withmemAlloc
.static FT_Outline.Buffer
malloc
(int capacity) Returns a newFT_Outline.Buffer
instance allocated withmemAlloc
.static FT_Outline.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newFT_Outline.Buffer
instance allocated on the specifiedMemoryStack
.static FT_Outline
malloc
(MemoryStack stack) Returns a newFT_Outline
instance allocated on the specifiedMemoryStack
.short
short
n_points()
static ShortBuffer
ncontours
(long struct) Unsafe version ofcontours
.static int
nflags
(long struct) Unsafe version offlags()
.static short
nn_contours
(long struct) Unsafe version ofn_contours()
.static short
nn_points
(long struct) Unsafe version ofn_points()
.static FT_Vector.Buffer
npoints
(long struct) Unsafe version ofpoints()
.static ByteBuffer
ntags
(long struct) Unsafe version oftags
.points()
int
sizeof()
Returnssizeof(struct)
.tags()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
N_CONTOURS
public static final int N_CONTOURSThe struct member offsets. -
N_POINTS
public static final int N_POINTSThe struct member offsets. -
POINTS
public static final int POINTSThe struct member offsets. -
TAGS
public static final int TAGSThe struct member offsets. -
CONTOURS
public static final int CONTOURSThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets.
-
-
Constructor Details
-
FT_Outline
Creates aFT_Outline
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)
.- Specified by:
sizeof
in classStruct<FT_Outline>
-
n_contours
public short n_contours()- Returns:
- the value of the
n_contours
field.
-
n_points
public short n_points()- Returns:
- the value of the
n_points
field.
-
points
- Returns:
- a
FT_Vector.Buffer
view of the struct array pointed to by thepoints
field.
-
tags
- Returns:
- a
ByteBuffer
view of the data pointed to by thetags
field.
-
contours
- Returns:
- a
ShortBuffer
view of the data pointed to by thecontours
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
malloc
Returns a newFT_Outline
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFT_Outline
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFT_Outline
instance allocated withBufferUtils
. -
create
Returns a newFT_Outline
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFT_Outline.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFT_Outline.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFT_Outline.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFT_Outline.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFT_Outline
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFT_Outline
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFT_Outline.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFT_Outline.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nn_contours
public static short nn_contours(long struct) Unsafe version ofn_contours()
. -
nn_points
public static short nn_points(long struct) Unsafe version ofn_points()
. -
npoints
Unsafe version ofpoints()
. -
ntags
Unsafe version oftags
. -
ncontours
Unsafe version ofcontours
. -
nflags
public static int nflags(long struct) Unsafe version offlags()
.
-