Package org.lwjgl.util.freetype
Class FT_Raster_Funcs
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct FT_Raster_Funcs {
FT_Glyph_Format glyph_format;
{@link FT_Raster_NewFuncI FT_Raster_NewFunc} raster_new;
{@link FT_Raster_ResetFuncI FT_Raster_ResetFunc} raster_reset;
{@link FT_Raster_SetModeFuncI FT_Raster_SetModeFunc} raster_set_mode;
{@link FT_Raster_RenderFuncI FT_Raster_RenderFunc} raster_render;
{@link FT_Raster_DoneFuncI FT_Raster_DoneFunc} raster_done;
}
-
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 member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionFT_Raster_Funcs
(ByteBuffer container) Creates aFT_Raster_Funcs
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_Raster_Funcs
calloc()
Returns a newFT_Raster_Funcs
instance allocated withmemCalloc
.static FT_Raster_Funcs.Buffer
calloc
(int capacity) Returns a newFT_Raster_Funcs.Buffer
instance allocated withmemCalloc
.static FT_Raster_Funcs.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newFT_Raster_Funcs.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FT_Raster_Funcs
calloc
(MemoryStack stack) Returns a newFT_Raster_Funcs
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FT_Raster_Funcs
create()
Returns a newFT_Raster_Funcs
instance allocated withBufferUtils
.static FT_Raster_Funcs.Buffer
create
(int capacity) Returns a newFT_Raster_Funcs.Buffer
instance allocated withBufferUtils
.static FT_Raster_Funcs
create
(long address) Returns a newFT_Raster_Funcs
instance for the specified memory address.static FT_Raster_Funcs.Buffer
create
(long address, int capacity) Create aFT_Raster_Funcs.Buffer
instance at the specified memory.static @Nullable FT_Raster_Funcs
createSafe
(long address) static @Nullable FT_Raster_Funcs.Buffer
createSafe
(long address, int capacity) int
glyph_format
(int value) Sets the specified value to theglyph_format
field.static FT_Raster_Funcs
malloc()
Returns a newFT_Raster_Funcs
instance allocated withmemAlloc
.static FT_Raster_Funcs.Buffer
malloc
(int capacity) Returns a newFT_Raster_Funcs.Buffer
instance allocated withmemAlloc
.static FT_Raster_Funcs.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newFT_Raster_Funcs.Buffer
instance allocated on the specifiedMemoryStack
.static FT_Raster_Funcs
malloc
(MemoryStack stack) Returns a newFT_Raster_Funcs
instance allocated on the specifiedMemoryStack
.static int
nglyph_format
(long struct) Unsafe version ofglyph_format()
.static void
nglyph_format
(long struct, int value) Unsafe version ofglyph_format
.static @Nullable FT_Raster_DoneFunc
nraster_done
(long struct) Unsafe version ofraster_done()
.static void
nraster_done
(long struct, @Nullable FT_Raster_DoneFuncI value) Unsafe version ofraster_done
.static @Nullable FT_Raster_NewFunc
nraster_new
(long struct) Unsafe version ofraster_new()
.static void
nraster_new
(long struct, @Nullable FT_Raster_NewFuncI value) Unsafe version ofraster_new
.static @Nullable FT_Raster_RenderFunc
nraster_render
(long struct) Unsafe version ofraster_render()
.static void
nraster_render
(long struct, @Nullable FT_Raster_RenderFuncI value) Unsafe version ofraster_render
.static @Nullable FT_Raster_ResetFunc
nraster_reset
(long struct) Unsafe version ofraster_reset()
.static void
nraster_reset
(long struct, @Nullable FT_Raster_ResetFuncI value) Unsafe version ofraster_reset
.static @Nullable FT_Raster_SetModeFunc
nraster_set_mode
(long struct) Unsafe version ofraster_set_mode()
.static void
nraster_set_mode
(long struct, @Nullable FT_Raster_SetModeFuncI value) Unsafe version ofraster_set_mode
.@Nullable FT_Raster_DoneFunc
raster_done
(@Nullable FT_Raster_DoneFuncI value) Sets the specified value to theraster_done
field.@Nullable FT_Raster_NewFunc
raster_new
(@Nullable FT_Raster_NewFuncI value) Sets the specified value to theraster_new
field.@Nullable FT_Raster_RenderFunc
raster_render
(@Nullable FT_Raster_RenderFuncI value) Sets the specified value to theraster_render
field.@Nullable FT_Raster_ResetFunc
raster_reset
(@Nullable FT_Raster_ResetFuncI value) Sets the specified value to theraster_reset
field.@Nullable FT_Raster_SetModeFunc
raster_set_mode
(@Nullable FT_Raster_SetModeFuncI value) Sets the specified value to theraster_set_mode
field.set
(int glyph_format, FT_Raster_NewFuncI raster_new, FT_Raster_ResetFuncI raster_reset, FT_Raster_SetModeFuncI raster_set_mode, FT_Raster_RenderFuncI raster_render, FT_Raster_DoneFuncI raster_done) Initializes this struct with the specified values.set
(FT_Raster_Funcs src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.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. -
GLYPH_FORMAT
public static final int GLYPH_FORMATThe struct member offsets. -
RASTER_NEW
public static final int RASTER_NEWThe struct member offsets. -
RASTER_RESET
public static final int RASTER_RESETThe struct member offsets. -
RASTER_SET_MODE
public static final int RASTER_SET_MODEThe struct member offsets. -
RASTER_RENDER
public static final int RASTER_RENDERThe struct member offsets. -
RASTER_DONE
public static final int RASTER_DONEThe struct member offsets.
-
-
Constructor Details
-
FT_Raster_Funcs
Creates aFT_Raster_Funcs
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_Raster_Funcs>
-
glyph_format
public int glyph_format()- Returns:
- the value of the
glyph_format
field.
-
raster_new
- Returns:
- the value of the
raster_new
field.
-
raster_reset
- Returns:
- the value of the
raster_reset
field.
-
raster_set_mode
- Returns:
- the value of the
raster_set_mode
field.
-
raster_render
- Returns:
- the value of the
raster_render
field.
-
raster_done
- Returns:
- the value of the
raster_done
field.
-
glyph_format
Sets the specified value to theglyph_format
field. -
raster_new
Sets the specified value to theraster_new
field. -
raster_reset
Sets the specified value to theraster_reset
field. -
raster_set_mode
Sets the specified value to theraster_set_mode
field. -
raster_render
Sets the specified value to theraster_render
field. -
raster_done
Sets the specified value to theraster_done
field. -
set
public FT_Raster_Funcs set(int glyph_format, FT_Raster_NewFuncI raster_new, FT_Raster_ResetFuncI raster_reset, FT_Raster_SetModeFuncI raster_set_mode, FT_Raster_RenderFuncI raster_render, FT_Raster_DoneFuncI raster_done) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newFT_Raster_Funcs
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFT_Raster_Funcs
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFT_Raster_Funcs
instance allocated withBufferUtils
. -
create
Returns a newFT_Raster_Funcs
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFT_Raster_Funcs.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFT_Raster_Funcs.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFT_Raster_Funcs.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFT_Raster_Funcs.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFT_Raster_Funcs
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFT_Raster_Funcs
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFT_Raster_Funcs.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFT_Raster_Funcs.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nglyph_format
public static int nglyph_format(long struct) Unsafe version ofglyph_format()
. -
nraster_new
Unsafe version ofraster_new()
. -
nraster_reset
Unsafe version ofraster_reset()
. -
nraster_set_mode
Unsafe version ofraster_set_mode()
. -
nraster_render
Unsafe version ofraster_render()
. -
nraster_done
Unsafe version ofraster_done()
. -
nglyph_format
public static void nglyph_format(long struct, int value) Unsafe version ofglyph_format
. -
nraster_new
Unsafe version ofraster_new
. -
nraster_reset
Unsafe version ofraster_reset
. -
nraster_set_mode
Unsafe version ofraster_set_mode
. -
nraster_render
Unsafe version ofraster_render
. -
nraster_done
Unsafe version ofraster_done
.
-