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.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 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_RendererHooks
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic SVG_RendererHooks
calloc()
Returns a newSVG_RendererHooks
instance allocated withmemCalloc
.static SVG_RendererHooks.Buffer
calloc
(int capacity) Returns a newSVG_RendererHooks.Buffer
instance allocated withmemCalloc
.static SVG_RendererHooks.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newSVG_RendererHooks.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SVG_RendererHooks
calloc
(MemoryStack stack) Returns a newSVG_RendererHooks
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SVG_RendererHooks
create()
Returns a newSVG_RendererHooks
instance allocated withBufferUtils
.static SVG_RendererHooks.Buffer
create
(int capacity) Returns a newSVG_RendererHooks.Buffer
instance allocated withBufferUtils
.static SVG_RendererHooks
create
(long address) Returns a newSVG_RendererHooks
instance for the specified memory address.static SVG_RendererHooks.Buffer
create
(long address, int capacity) Create aSVG_RendererHooks.Buffer
instance at the specified memory.static @Nullable SVG_RendererHooks
createSafe
(long address) static @Nullable SVG_RendererHooks.Buffer
createSafe
(long address, int capacity) free_svg()
free_svg
(SVG_Lib_Free_FuncI value) Sets the specified value to thefree_svg
field.init_svg()
init_svg
(SVG_Lib_Init_FuncI value) Sets the specified value to theinit_svg
field.static SVG_RendererHooks
malloc()
Returns a newSVG_RendererHooks
instance allocated withmemAlloc
.static SVG_RendererHooks.Buffer
malloc
(int capacity) Returns a newSVG_RendererHooks.Buffer
instance allocated withmemAlloc
.static SVG_RendererHooks.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newSVG_RendererHooks.Buffer
instance allocated on the specifiedMemoryStack
.static SVG_RendererHooks
malloc
(MemoryStack stack) Returns a newSVG_RendererHooks
instance allocated on the specifiedMemoryStack
.static SVG_Lib_Free_Func
nfree_svg
(long struct) Unsafe version offree_svg()
.static void
nfree_svg
(long struct, SVG_Lib_Free_FuncI value) Unsafe version offree_svg
.static SVG_Lib_Init_Func
ninit_svg
(long struct) Unsafe version ofinit_svg()
.static void
ninit_svg
(long struct, SVG_Lib_Init_FuncI value) Unsafe version ofinit_svg
.static SVG_Lib_Preset_Slot_Func
npreset_slot
(long struct) Unsafe version ofpreset_slot()
.static void
npreset_slot
(long struct, SVG_Lib_Preset_Slot_FuncI value) Unsafe version ofpreset_slot
.static SVG_Lib_Render_Func
nrender_svg
(long struct) Unsafe version ofrender_svg()
.static void
nrender_svg
(long struct, SVG_Lib_Render_FuncI value) Unsafe version ofrender_svg
.Sets the specified value to thepreset_slot
field.render_svg
(SVG_Lib_Render_FuncI value) Sets the specified value to therender_svg
field.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.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.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. -
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_RendererHooks
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<SVG_RendererHooks>
-
init_svg
- Returns:
- the value of the
init_svg
field.
-
free_svg
- Returns:
- the value of the
free_svg
field.
-
render_svg
- Returns:
- the value of the
render_svg
field.
-
preset_slot
- Returns:
- the value of the
preset_slot
field.
-
init_svg
Sets the specified value to theinit_svg
field. -
free_svg
Sets the specified value to thefree_svg
field. -
render_svg
Sets the specified value to therender_svg
field. -
preset_slot
Sets the specified value to thepreset_slot
field. -
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_RendererHooks
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSVG_RendererHooks
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSVG_RendererHooks
instance allocated withBufferUtils
. -
create
Returns a newSVG_RendererHooks
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSVG_RendererHooks.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSVG_RendererHooks.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSVG_RendererHooks.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSVG_RendererHooks.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newSVG_RendererHooks
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSVG_RendererHooks
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSVG_RendererHooks.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSVG_RendererHooks.Buffer
instance allocated on the specifiedMemoryStack
and 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
-