Package org.gnome.rsvg
Interface SizeFunc
- All Superinterfaces:
FunctionPointer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@Deprecated
@Generated("io.github.jwharm.JavaGI")
public interface SizeFunc
extends FunctionPointer
Deprecated.
Functional interface declaration of the
SizeFunc callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.default MemorySegmenttoCallback(Arena arena) Deprecated.Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)method.default voidupcall(MemorySegment width, MemorySegment height, MemorySegment userData) Deprecated.Theupcallmethod is called from native code.
-
Method Details
-
run
Deprecated.UseHandle.renderDocument(org.freedesktop.cairo.Context, org.gnome.rsvg.Rectangle)instead, which lets you specify a viewport size in which to render the SVG document.Function to let a user of the library specify the SVG's dimensionsSee the documentation for
Handle.setSizeCallback(org.gnome.rsvg.SizeFunc)for an example, and for the reasons for deprecation. -
upcall
Deprecated.Theupcallmethod is called from native code. The parameters are marshaled andrun(org.javagi.base.Out<java.lang.Integer>, org.javagi.base.Out<java.lang.Integer>)is executed. -
toCallback
Deprecated.Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-
Handle.renderDocument(org.freedesktop.cairo.Context, org.gnome.rsvg.Rectangle)instead, which lets you specify a viewport size in which to render the SVG document.