Package org.lwjgl.util.freetype
Class SVG_RendererHooks
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct SVG_RendererHooks {
{@link SVG_Lib_Init_FuncI SVG_Lib_Init_Func} init_svg;
{@link SVG_Lib_Free_FuncI SVG_Lib_Free_Func} free_svg;
{@link SVG_Lib_Render_FuncI SVG_Lib_Render_Func} render_svg;
{@link SVG_Lib_Preset_Slot_FuncI SVG_Lib_Preset_Slot_Func} preset_slot;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionSVG_RendererHooks(ByteBuffer container) Creates aSVG_RendererHooksinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic SVG_RendererHookscalloc()Returns a newSVG_RendererHooksinstance allocated withmemCalloc.static SVG_RendererHooks.Buffercalloc(int capacity) Returns a newSVG_RendererHooks.Bufferinstance allocated withmemCalloc.static SVG_RendererHooks.Buffercalloc(int capacity, MemoryStack stack) Returns a newSVG_RendererHooks.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SVG_RendererHookscalloc(MemoryStack stack) Returns a newSVG_RendererHooksinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SVG_RendererHookscreate()Returns a newSVG_RendererHooksinstance allocated withBufferUtils.static SVG_RendererHooks.Buffercreate(int capacity) Returns a newSVG_RendererHooks.Bufferinstance allocated withBufferUtils.static SVG_RendererHookscreate(long address) Returns a newSVG_RendererHooksinstance for the specified memory address.static SVG_RendererHooks.Buffercreate(long address, int capacity) Create aSVG_RendererHooks.Bufferinstance at the specified memory.static @Nullable SVG_RendererHookscreateSafe(long address) static @Nullable SVG_RendererHooks.BuffercreateSafe(long address, int capacity) free_svg()free_svg(SVG_Lib_Free_FuncI value) Sets the specified value to thefree_svgfield.init_svg()init_svg(SVG_Lib_Init_FuncI value) Sets the specified value to theinit_svgfield.static SVG_RendererHooksmalloc()Returns a newSVG_RendererHooksinstance allocated withmemAlloc.static SVG_RendererHooks.Buffermalloc(int capacity) Returns a newSVG_RendererHooks.Bufferinstance allocated withmemAlloc.static SVG_RendererHooks.Buffermalloc(int capacity, MemoryStack stack) Returns a newSVG_RendererHooks.Bufferinstance allocated on the specifiedMemoryStack.static SVG_RendererHooksmalloc(MemoryStack stack) Returns a newSVG_RendererHooksinstance allocated on the specifiedMemoryStack.static SVG_Lib_Free_Funcnfree_svg(long struct) Unsafe version offree_svg().static voidnfree_svg(long struct, SVG_Lib_Free_FuncI value) Unsafe version offree_svg.static SVG_Lib_Init_Funcninit_svg(long struct) Unsafe version ofinit_svg().static voidninit_svg(long struct, SVG_Lib_Init_FuncI value) Unsafe version ofinit_svg.static SVG_Lib_Preset_Slot_Funcnpreset_slot(long struct) Unsafe version ofpreset_slot().static voidnpreset_slot(long struct, SVG_Lib_Preset_Slot_FuncI value) Unsafe version ofpreset_slot.static SVG_Lib_Render_Funcnrender_svg(long struct) Unsafe version ofrender_svg().static voidnrender_svg(long struct, SVG_Lib_Render_FuncI value) Unsafe version ofrender_svg.Sets the specified value to thepreset_slotfield.render_svg(SVG_Lib_Render_FuncI value) Sets the specified value to therender_svgfield.set(SVG_Lib_Init_FuncI init_svg, SVG_Lib_Free_FuncI free_svg, SVG_Lib_Render_FuncI render_svg, SVG_Lib_Preset_Slot_FuncI preset_slot) Initializes this struct with the specified values.set(SVG_RendererHooks src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.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. -
INIT_SVG
public static final int INIT_SVGThe struct member offsets. -
FREE_SVG
public static final int FREE_SVGThe struct member offsets. -
RENDER_SVG
public static final int RENDER_SVGThe struct member offsets. -
PRESET_SLOT
public static final int PRESET_SLOTThe struct member offsets.
-
-
Constructor Details
-
SVG_RendererHooks
Creates aSVG_RendererHooksinstance 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<SVG_RendererHooks>
-
init_svg
- Returns:
- the value of the
init_svgfield.
-
free_svg
- Returns:
- the value of the
free_svgfield.
-
render_svg
- Returns:
- the value of the
render_svgfield.
-
preset_slot
- Returns:
- the value of the
preset_slotfield.
-
init_svg
Sets the specified value to theinit_svgfield. -
free_svg
Sets the specified value to thefree_svgfield. -
render_svg
Sets the specified value to therender_svgfield. -
preset_slot
Sets the specified value to thepreset_slotfield. -
set
public SVG_RendererHooks set(SVG_Lib_Init_FuncI init_svg, SVG_Lib_Free_FuncI free_svg, SVG_Lib_Render_FuncI render_svg, SVG_Lib_Preset_Slot_FuncI preset_slot) 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 newSVG_RendererHooksinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSVG_RendererHooksinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSVG_RendererHooksinstance allocated withBufferUtils. -
create
Returns a newSVG_RendererHooksinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSVG_RendererHooks.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSVG_RendererHooks.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSVG_RendererHooks.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSVG_RendererHooks.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSVG_RendererHooksinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSVG_RendererHooksinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSVG_RendererHooks.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSVG_RendererHooks.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ninit_svg
Unsafe version ofinit_svg(). -
nfree_svg
Unsafe version offree_svg(). -
nrender_svg
Unsafe version ofrender_svg(). -
npreset_slot
Unsafe version ofpreset_slot(). -
ninit_svg
Unsafe version ofinit_svg. -
nfree_svg
Unsafe version offree_svg. -
nrender_svg
Unsafe version ofrender_svg. -
npreset_slot
Unsafe version ofpreset_slot. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-