snap package:gi-gtk
Appends a stroked border rectangle inside the given
outline.
The four sides of the border can have different widths and colors.
Creates a new
CairoNode and appends it to the current render
node of
snapshot, without changing the current node.
Creates a new render node drawing the color into the
given bounds and appends it to the current render node
of snapshot.
You should try to avoid calling this function if color
is transparent.
Appends a conic gradient node with the given stops to
snapshot.
A convenience method to fill a path with a color.
See
snapshotPushFill if you need to fill a path with more
complex content than a color.
Since: 4.14
Appends an inset shadow into the box given by outline.
Creates render nodes for rendering
layout in the given
foregound
color and appends them to the current node
of
snapshot without changing the current node. The
current theme's foreground color for a widget can be obtained with
widgetGetColor.
Note that if the layout does not produce any visible output, then
nodes may not be added to the
snapshot.
Appends a linear gradient node with the given stops to
snapshot.
Appends node to the current render node of
snapshot, without changing the current node.
If snapshot does not have a current node yet,
node will become the initial node.
Appends an outset shadow node around the box given by
outline.
Appends a radial gradient node with the given stops to
snapshot.
Appends a repeating linear gradient node with the given stops to
snapshot.
Appends a repeating radial gradient node with the given stops to
snapshot.
Creates a new render node drawing the
texture into the
given
bounds and appends it to the current render node
of
snapshot.
In contrast to
snapshotAppendTexture, this function provides
control about how the filter that is used when scaling.
Since: 4.10
A convenience method to stroke a path with a color.
See
snapshotPushStroke if you need to stroke a path with more
complex content than a color.
Since: 4.14
Creates a new render node drawing the
texture into the
given
bounds and appends it to the current render node
of
snapshot.
If the texture needs to be scaled to fill
bounds,
linear filtering is used. See
snapshotAppendScaledTexture if
you need other filtering, such as nearest-neighbour.
Deprecated: (Since version 4.16)GTK's new Vulkan-focused
renderingdoes not support this feature. Use GLArea forOpenGL
rendering.
Creates a new GtkSnapshot.
Applies a perspective projection transform.
See
transformPerspective for a discussion on the details.
Removes the top element from the stack of render nodes, and appends it
to the node underneath it.
Blends together two images with the given blend mode.
Until the first call to
snapshotPop, the bottom image for the
blend operation will be recorded. After that call, the top image to be
blended will be recorded until the second call to
snapshotPop.
Calling this function requires two subsequent calls to
snapshotPop.
Blurs an image.
The image is recorded until the next call to
snapshotPop.
Clips an image to a rectangle.
The image is recorded until the next call to
snapshotPop.
Modifies the colors of an image by applying an affine transformation
in RGB space.
In particular, the colors will be transformed by applying
pixel = transpose(color_matrix) * pixel + color_offset
for every pixel. The transformation operates on unpremultiplied
colors, with color components ordered R, G, B, A.
The image is recorded until the next call to
snapshotPop.
Snapshots a cross-fade operation between two images with the given
progress.
Until the first call to
snapshotPop, the start image will be
snapshot. After that call, the end image will be recorded until the
second call to
snapshotPop.
Calling this function requires two subsequent calls to
snapshotPop.