Package org.lwjgl.util.freetype
Class FT_ClipBox
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct FT_ClipBox {
{@link FT_Vector FT_Vector} bottom_left;
{@link FT_Vector FT_Vector} top_left;
{@link FT_Vector FT_Vector} top_right;
{@link FT_Vector FT_Vector} bottom_right;
}-
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 size in bytes.static final intThe struct member offsets.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_ClipBox(ByteBuffer container) Creates aFT_ClipBoxinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_ClipBoxcalloc()Returns a newFT_ClipBoxinstance allocated withmemCalloc.static FT_ClipBox.Buffercalloc(int capacity) Returns a newFT_ClipBox.Bufferinstance allocated withmemCalloc.static FT_ClipBox.Buffercalloc(int capacity, MemoryStack stack) Returns a newFT_ClipBox.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FT_ClipBoxcalloc(MemoryStack stack) Returns a newFT_ClipBoxinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FT_ClipBoxcreate()Returns a newFT_ClipBoxinstance allocated withBufferUtils.static FT_ClipBox.Buffercreate(int capacity) Returns a newFT_ClipBox.Bufferinstance allocated withBufferUtils.static FT_ClipBoxcreate(long address) Returns a newFT_ClipBoxinstance for the specified memory address.static FT_ClipBox.Buffercreate(long address, int capacity) Create aFT_ClipBox.Bufferinstance at the specified memory.static @Nullable FT_ClipBoxcreateSafe(long address) static @Nullable FT_ClipBox.BuffercreateSafe(long address, int capacity) static FT_ClipBoxmalloc()Returns a newFT_ClipBoxinstance allocated withmemAlloc.static FT_ClipBox.Buffermalloc(int capacity) Returns a newFT_ClipBox.Bufferinstance allocated withmemAlloc.static FT_ClipBox.Buffermalloc(int capacity, MemoryStack stack) Returns a newFT_ClipBox.Bufferinstance allocated on the specifiedMemoryStack.static FT_ClipBoxmalloc(MemoryStack stack) Returns a newFT_ClipBoxinstance allocated on the specifiedMemoryStack.static FT_Vectornbottom_left(long struct) Unsafe version ofbottom_left().static FT_Vectornbottom_right(long struct) Unsafe version ofbottom_right().static FT_Vectorntop_left(long struct) Unsafe version oftop_left().static FT_Vectorntop_right(long struct) Unsafe version oftop_right().intsizeof()Returnssizeof(struct).top_left()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. -
BOTTOM_LEFT
public static final int BOTTOM_LEFTThe struct member offsets. -
TOP_LEFT
public static final int TOP_LEFTThe struct member offsets. -
TOP_RIGHT
public static final int TOP_RIGHTThe struct member offsets. -
BOTTOM_RIGHT
public static final int BOTTOM_RIGHTThe struct member offsets.
-
-
Constructor Details
-
FT_ClipBox
Creates aFT_ClipBoxinstance 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_ClipBox>
-
bottom_left
- Returns:
- a
FT_Vectorview of thebottom_leftfield.
-
top_left
- Returns:
- a
FT_Vectorview of thetop_leftfield.
-
top_right
- Returns:
- a
FT_Vectorview of thetop_rightfield.
-
bottom_right
- Returns:
- a
FT_Vectorview of thebottom_rightfield.
-
malloc
Returns a newFT_ClipBoxinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFT_ClipBoxinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFT_ClipBoxinstance allocated withBufferUtils. -
create
Returns a newFT_ClipBoxinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFT_ClipBox.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFT_ClipBox.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFT_ClipBox.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFT_ClipBox.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFT_ClipBoxinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFT_ClipBoxinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFT_ClipBox.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFT_ClipBox.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nbottom_left
Unsafe version ofbottom_left(). -
ntop_left
Unsafe version oftop_left(). -
ntop_right
Unsafe version oftop_right(). -
nbottom_right
Unsafe version ofbottom_right().
-