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.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 member offsets.static final intThe 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_Funcsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FT_Raster_Funcscalloc()Returns a newFT_Raster_Funcsinstance allocated withmemCalloc.static FT_Raster_Funcs.Buffercalloc(int capacity) Returns a newFT_Raster_Funcs.Bufferinstance allocated withmemCalloc.static FT_Raster_Funcs.Buffercalloc(int capacity, MemoryStack stack) Returns a newFT_Raster_Funcs.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FT_Raster_Funcscalloc(MemoryStack stack) Returns a newFT_Raster_Funcsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FT_Raster_Funcscreate()Returns a newFT_Raster_Funcsinstance allocated withBufferUtils.static FT_Raster_Funcs.Buffercreate(int capacity) Returns a newFT_Raster_Funcs.Bufferinstance allocated withBufferUtils.static FT_Raster_Funcscreate(long address) Returns a newFT_Raster_Funcsinstance for the specified memory address.static FT_Raster_Funcs.Buffercreate(long address, int capacity) Create aFT_Raster_Funcs.Bufferinstance at the specified memory.static @Nullable FT_Raster_FuncscreateSafe(long address) static @Nullable FT_Raster_Funcs.BuffercreateSafe(long address, int capacity) intglyph_format(int value) Sets the specified value to theglyph_formatfield.static FT_Raster_Funcsmalloc()Returns a newFT_Raster_Funcsinstance allocated withmemAlloc.static FT_Raster_Funcs.Buffermalloc(int capacity) Returns a newFT_Raster_Funcs.Bufferinstance allocated withmemAlloc.static FT_Raster_Funcs.Buffermalloc(int capacity, MemoryStack stack) Returns a newFT_Raster_Funcs.Bufferinstance allocated on the specifiedMemoryStack.static FT_Raster_Funcsmalloc(MemoryStack stack) Returns a newFT_Raster_Funcsinstance allocated on the specifiedMemoryStack.static intnglyph_format(long struct) Unsafe version ofglyph_format().static voidnglyph_format(long struct, int value) Unsafe version ofglyph_format.static @Nullable FT_Raster_DoneFuncnraster_done(long struct) Unsafe version ofraster_done().static voidnraster_done(long struct, @Nullable FT_Raster_DoneFuncI value) Unsafe version ofraster_done.static @Nullable FT_Raster_NewFuncnraster_new(long struct) Unsafe version ofraster_new().static voidnraster_new(long struct, @Nullable FT_Raster_NewFuncI value) Unsafe version ofraster_new.static @Nullable FT_Raster_RenderFuncnraster_render(long struct) Unsafe version ofraster_render().static voidnraster_render(long struct, @Nullable FT_Raster_RenderFuncI value) Unsafe version ofraster_render.static @Nullable FT_Raster_ResetFuncnraster_reset(long struct) Unsafe version ofraster_reset().static voidnraster_reset(long struct, @Nullable FT_Raster_ResetFuncI value) Unsafe version ofraster_reset.static @Nullable FT_Raster_SetModeFuncnraster_set_mode(long struct) Unsafe version ofraster_set_mode().static voidnraster_set_mode(long struct, @Nullable FT_Raster_SetModeFuncI value) Unsafe version ofraster_set_mode.@Nullable FT_Raster_DoneFuncraster_done(@Nullable FT_Raster_DoneFuncI value) Sets the specified value to theraster_donefield.@Nullable FT_Raster_NewFuncraster_new(@Nullable FT_Raster_NewFuncI value) Sets the specified value to theraster_newfield.@Nullable FT_Raster_RenderFuncraster_render(@Nullable FT_Raster_RenderFuncI value) Sets the specified value to theraster_renderfield.@Nullable FT_Raster_ResetFuncraster_reset(@Nullable FT_Raster_ResetFuncI value) Sets the specified value to theraster_resetfield.@Nullable FT_Raster_SetModeFuncraster_set_mode(@Nullable FT_Raster_SetModeFuncI value) Sets the specified value to theraster_set_modefield.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.intsizeof()Returnssizeof(struct).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. -
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_Funcsinstance 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_Raster_Funcs>
-
glyph_format
public int glyph_format()- Returns:
- the value of the
glyph_formatfield.
-
raster_new
- Returns:
- the value of the
raster_newfield.
-
raster_reset
- Returns:
- the value of the
raster_resetfield.
-
raster_set_mode
- Returns:
- the value of the
raster_set_modefield.
-
raster_render
- Returns:
- the value of the
raster_renderfield.
-
raster_done
- Returns:
- the value of the
raster_donefield.
-
glyph_format
Sets the specified value to theglyph_formatfield. -
raster_new
Sets the specified value to theraster_newfield. -
raster_reset
Sets the specified value to theraster_resetfield. -
raster_set_mode
Sets the specified value to theraster_set_modefield. -
raster_render
Sets the specified value to theraster_renderfield. -
raster_done
Sets the specified value to theraster_donefield. -
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_Funcsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFT_Raster_Funcsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFT_Raster_Funcsinstance allocated withBufferUtils. -
create
Returns a newFT_Raster_Funcsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFT_Raster_Funcs.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFT_Raster_Funcs.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFT_Raster_Funcs.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFT_Raster_Funcs.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFT_Raster_Funcsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFT_Raster_Funcsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFT_Raster_Funcs.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFT_Raster_Funcs.Bufferinstance allocated on the specifiedMemoryStackand 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.
-