java.lang.Object
io.github.jwharm.cairobindings.Proxy
org.freedesktop.cairo.Surface
org.freedesktop.cairo.TeeSurface
- All Implemented Interfaces:
AutoCloseable
The "tee" surface supports redirecting all its input to multiple surfaces.
- Since:
- 1.10
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTeeSurface(MemorySegment address) Constructor used internally to instantiate a java TeeSurface object for a nativecairo_surface_tinstance -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a new target surface to the list of replicas of a tee surface.static TeeSurfaceCreates a new "tee" surface.index(int index) Retrieves the replica surface at the given index.voidRemoves the given surface from the list of replicas of a tee surface.Methods inherited from class org.freedesktop.cairo.Surface
close, copyPage, createForRectangle, createSimilar, createSimilarImage, destroy, finish, flush, getContent, getDevice, getDeviceOffset, getDeviceScale, getFallbackResolution, getFontOptions, getMimeData, getSurfaceType, getType, getUserData, hasShowTextGlyphs, mapToImage, markDirty, markDirtyRectangle, setDeviceOffset, setDeviceScale, setFallbackResolution, setMimeData, setUserData, showPage, status, supportsMimeType, unmapImage
-
Constructor Details
-
TeeSurface
Constructor used internally to instantiate a java TeeSurface object for a nativecairo_surface_tinstance- Parameters:
address- the memory address of the nativecairo_surface_tinstance
-
-
Method Details
-
create
Creates a new "tee" surface.The
primarysurface is used when querying surface options, like font options and extents.Operations performed on the tee surface will be replayed on any surface added to it.
- Parameters:
primary- the primarySurface- Returns:
- the newly created surface
- Since:
- 1.10
-
add
Adds a new target surface to the list of replicas of a tee surface.- Parameters:
target- the surface to add- Since:
- 1.10
-
index
Retrieves the replica surface at the given index.The primary surface used to create the TeeSurface is always set at the zero index.
- Parameters:
index- the index of the replica to retrieve- Returns:
- the surface at the given index
- Since:
- 1.10
-
remove
Removes the given surface from the list of replicas of a tee surface.- Parameters:
target- the surface to remove- Since:
- 1.10
-