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.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.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_ClipBox
(ByteBuffer container) Creates aFT_ClipBox
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_ClipBox
calloc()
Returns a newFT_ClipBox
instance allocated withmemCalloc
.static FT_ClipBox.Buffer
calloc
(int capacity) Returns a newFT_ClipBox.Buffer
instance allocated withmemCalloc
.static FT_ClipBox.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newFT_ClipBox.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FT_ClipBox
calloc
(MemoryStack stack) Returns a newFT_ClipBox
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FT_ClipBox
create()
Returns a newFT_ClipBox
instance allocated withBufferUtils
.static FT_ClipBox.Buffer
create
(int capacity) Returns a newFT_ClipBox.Buffer
instance allocated withBufferUtils
.static FT_ClipBox
create
(long address) Returns a newFT_ClipBox
instance for the specified memory address.static FT_ClipBox.Buffer
create
(long address, int capacity) Create aFT_ClipBox.Buffer
instance at the specified memory.static @Nullable FT_ClipBox
createSafe
(long address) static @Nullable FT_ClipBox.Buffer
createSafe
(long address, int capacity) static FT_ClipBox
malloc()
Returns a newFT_ClipBox
instance allocated withmemAlloc
.static FT_ClipBox.Buffer
malloc
(int capacity) Returns a newFT_ClipBox.Buffer
instance allocated withmemAlloc
.static FT_ClipBox.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newFT_ClipBox.Buffer
instance allocated on the specifiedMemoryStack
.static FT_ClipBox
malloc
(MemoryStack stack) Returns a newFT_ClipBox
instance allocated on the specifiedMemoryStack
.static FT_Vector
nbottom_left
(long struct) Unsafe version ofbottom_left()
.static FT_Vector
nbottom_right
(long struct) Unsafe version ofbottom_right()
.static FT_Vector
ntop_left
(long struct) Unsafe version oftop_left()
.static FT_Vector
ntop_right
(long struct) Unsafe version oftop_right()
.int
sizeof()
Returnssizeof(struct)
.top_left()
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. -
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_ClipBox
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_ClipBox>
-
bottom_left
- Returns:
- a
FT_Vector
view of thebottom_left
field.
-
top_left
- Returns:
- a
FT_Vector
view of thetop_left
field.
-
top_right
- Returns:
- a
FT_Vector
view of thetop_right
field.
-
bottom_right
- Returns:
- a
FT_Vector
view of thebottom_right
field.
-
malloc
Returns a newFT_ClipBox
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFT_ClipBox
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFT_ClipBox
instance allocated withBufferUtils
. -
create
Returns a newFT_ClipBox
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFT_ClipBox.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFT_ClipBox.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFT_ClipBox.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFT_ClipBox.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFT_ClipBox
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFT_ClipBox
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFT_ClipBox.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFT_ClipBox.Buffer
instance allocated on the specifiedMemoryStack
and 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()
.
-