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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe 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_Outlineinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_Outlinecalloc()Returns a newFT_Outlineinstance allocated withmemCalloc.static FT_Outline.Buffercalloc(int capacity) Returns a newFT_Outline.Bufferinstance allocated withmemCalloc.static FT_Outline.Buffercalloc(int capacity, MemoryStack stack) Returns a newFT_Outline.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FT_Outlinecalloc(MemoryStack stack) Returns a newFT_Outlineinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.contours()static FT_Outlinecreate()Returns a newFT_Outlineinstance allocated withBufferUtils.static FT_Outline.Buffercreate(int capacity) Returns a newFT_Outline.Bufferinstance allocated withBufferUtils.static FT_Outlinecreate(long address) Returns a newFT_Outlineinstance for the specified memory address.static FT_Outline.Buffercreate(long address, int capacity) Create aFT_Outline.Bufferinstance at the specified memory.static @Nullable FT_OutlinecreateSafe(long address) static @Nullable FT_Outline.BuffercreateSafe(long address, int capacity) intflags()static FT_Outlinemalloc()Returns a newFT_Outlineinstance allocated withmemAlloc.static FT_Outline.Buffermalloc(int capacity) Returns a newFT_Outline.Bufferinstance allocated withmemAlloc.static FT_Outline.Buffermalloc(int capacity, MemoryStack stack) Returns a newFT_Outline.Bufferinstance allocated on the specifiedMemoryStack.static FT_Outlinemalloc(MemoryStack stack) Returns a newFT_Outlineinstance allocated on the specifiedMemoryStack.shortshortn_points()static ShortBufferncontours(long struct) Unsafe version ofcontours.static intnflags(long struct) Unsafe version offlags().static shortnn_contours(long struct) Unsafe version ofn_contours().static shortnn_points(long struct) Unsafe version ofn_points().static FT_Vector.Buffernpoints(long struct) Unsafe version ofpoints().static ByteBufferntags(long struct) Unsafe version oftags.points()intsizeof()Returnssizeof(struct).tags()Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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_Outlineinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<FT_Outline>
-
n_contours
public short n_contours()- Returns:
- the value of the
n_contoursfield.
-
n_points
public short n_points()- Returns:
- the value of the
n_pointsfield.
-
points
- Returns:
- a
FT_Vector.Bufferview of the struct array pointed to by thepointsfield.
-
tags
- Returns:
- a
ByteBufferview of the data pointed to by thetagsfield.
-
contours
- Returns:
- a
ShortBufferview of the data pointed to by thecontoursfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
malloc
Returns a newFT_Outlineinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFT_Outlineinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFT_Outlineinstance allocated withBufferUtils. -
create
Returns a newFT_Outlineinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFT_Outline.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFT_Outline.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFT_Outline.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFT_Outline.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFT_Outlineinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFT_Outlineinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFT_Outline.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFT_Outline.Bufferinstance allocated on the specifiedMemoryStackand 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().
-