Up: cl-cffi-gtk4 API documentation

Package gsk

GTK Scene Graph Kit (GSK) is the rendering and scene graph API for GTK introduced with version 3.90. GSK lies between the graphical control elements (widgets) and the rendering. Like GDK, GSK is part of GTK and licensed under the GNU Lesser General Public License (LGPL). This is the API documentation of a Lisp binding to GSK.

About This Package

GskRenderer
GskPathMeasure
GtkPathPoint
GskStroke
GskPath
GskPathBuilder
GskRenderNode
GskRoundedRect
GskTransform
GskGLShader

GskRenderer

The gsk:renderer class is a class that renders a scene graph defined by a tree of gsk:render-node instances. ...

Accessor of the realized slot of the gsk:renderer class. ...

Accessor of the surface slot of the gsk:renderer class. ...

Creates an appropriate gsk:renderer instance for the given surface. ...

Creates the resources needed by the renderer to render the scene graph. ...

Releases all the resources created by the gsk:renderer-realize function. ...

Checks whether the renderer is realized or not. ...

Renders the scene graph, described by a tree of gsk:render-node instances, ensuring that the given region gets redrawn. ...

Renders the scene graph, described by a tree of gsk:render-node instances, to a gdk:texture instance. ...

The GSK renderer that is using Cairo. ...

Creates a new gsk:renderer instance using Cairo. ...

The OpenGL based renderer. ...

Creates a new gsk:renderer instance using OpenGL. ...

The new experimental OpenGL based renderer. ...

Creates an instance of the new experimental OpenGL renderer. ...

GskPathMeasure

The gsk:path-measure structure is a structure that allows measurements on gsk:path intances such as determining the length of the path. ...

Creates a measure object for the given path with the default tolerance. ...

Creates a measure object for the given path and tolerance. ...

Gets the length of the path being measured. ...

Returns the path that the measure was created for. ...

Returns the point at the given distance into the path. ...

Returns the tolerance that the measure was created with. ...

GtkPathPoint

The values of the gsk:path-direction enumeration are used to pick one of the four tangents at a given point on the path. ...

The gsk:path-point structure is an opaque type representing a point on a path. ...

Calculates the curvature of the path at the point. ...

Returns the distance from the beginning of the path to point. ...

Gets the position of the point. ...

Gets the direction of the tangent at a given point. ...

Gets the tangent of the path at the point. ...

Returns whether point1 is before or after point2. ...

Copies a path point. ...

Returns whether the two path points refer to the same location on all paths. ...

GskStroke

Specifies how to render the start and end points of contours or dashes when stroking. ...

Specifies how to render the junction of two lines when stroking. ...

The gsk:stroke structure collects the parameters that influence the operation of stroking a path. ...

Creates a new gsk:stroke instance with the given width. ...

Creates a copy of the given stroke. ...

Checks if two strokes are identical. ...

The gsk:stroke-dash function gets the list of dashes in use or nil if dashing is disabled. ...

The gsk:stroke-dash-offset function returns the dash offset of a gsk:stroke instance. ...

The gsk:stroke-line-cap function gets the line cap used. ...

The gsk:stroke-line-join function gets the line join used. ...

The gsk:stroke-line-width function gets the line width used. ...

The gsk:stroke-miter-limit function returns the miter limit of a gsk:stroke instance. ...

A helper function that sets the stroke parameters of context from the values found in stroke. ...

GskPath

Flags that can be passed to the gsk:path-foreach function to influence what kinds of operations the path is decomposed into. ...

Path operations are used to describe the segments of a gsk:path instance. ...

The gsk:fill-rule enumeration is used to select how paths are filled. ...

A gsk:path structure describes lines and curves that are more complex than simple rectangles. ...

This is a convenience function that constructs a gsk:path instance from a serialized form. ...

Prototype of the callback function to iterate through the operations of a path. ...

Calls func for every operation of the path. ...

Computes the bounds of the given path. ...

Computes the closest point on the path to the given point and sets the result to it. ...

Gets the start point of the path. ...

Gets the end point of the path. ...

Computes the bounds for stroking the given path with the parameters in stroke. ...

Returns whether the given point is inside the area that would be affected if the path was filled according to rule. ...

Returns if the path represents a single closed contour. ...

Checks if the path is empty, that is, contains no lines or curves. ...

Appends the given path to the given Cairo context for drawing with Cairo. ...

Converts the path into a human-readable string representation suitable for printing. ...

GskPathBuilder

The gsk:path-builder structure is an auxiliary structure for constructing gsk:path instances. ...

Create a new gsk:path-builder instance. ...

Creates a new gsk:path instance from the given path builder. ...

Gets the current point. ...

Ends the current contour with a line back to the start point. ...

Adds rect as a new contour to the path built by the path builder. ...

Adds a circle with center and radius. ...

Adds the outlines for the glyphs in layout to the path builder. ...

Appends all of path to the path builder. ...

Appends all of path to the path builder, reverse order. ...

Adds rect as a new contour to the path built in builder. ...

Adds to builder the segment of path from start to end. ...

Adds a Cairo path to the path builder. ...

Starts a new contour by placing the pen at x, y. ...

Starts a new contour by placing the pen at x, y relative to the current point. ...

Draws a line from the current point to x, y and makes it the new current point. ...

Draws a line from the current point to a point offset from it by x, y and makes it the new current point. ...

Adds an elliptical arc from the current point to x2, y2 with x1, y1 determining the tangent directions. ...

Adds an elliptical arc from the current point to x2, y2 with x1, y1 determining the tangent directions. ...

Adds a conic curve from the current point to x2, y2 with the given weight and x1, y1 as the control point. ...

Adds a conic curve from the current point to x2, y2 with the given weight and x1, y1 as the control point. ...

Adds a cubic Bézier curve from the current point to x3, y3 with x1, y1 and x2, y2 as the control points. ...

Adds a cubic Bézier curve from the current point to x3, y3 with x1, y1 and x2, y2 as the control points. ...

Adds a quadratic Bézier curve from the current point to x2, y2 with x1, y1 as the control point. ...

Adds a quadratic Bézier curve from the current point to x2, y2 with x1, y1 as the control point. ...

Implements arc-to according to the HTML Canvas spec. ...

Implements arc-to according to the HTML Canvas spec. ...

Implements arc-to according to the SVG spec. ...

Implements arc-to according to the SVG spec. ...

GskRenderNode

The type of a node determines what the node is rendering. ...

The filters used when scaling texture data. ...

The blend modes available for render nodes. ...

The mask modes available for mask nodes. ...

The gsk:render-node instance is the basic block in a scene graph to be rendered using the gsk:renderer object. ...

Acquires a reference on the given render node. ...

Releases a reference on the given render node. ...

Returns the type of the render node. ...

Draw the contents of node to the given Cairo context. ...

Serializes the node for later deserialization via the gsk:render-node-deserialize function. ...

Loads data previously created via the gsk:render-node-serialize function. ...

This function is mostly intended for use inside a debugger to quickly dump a render node to a file for later inspection. ...

Retrieves the boundaries of the render node. ...

A render node that can contain other render nodes. ...

Creates a new container node for holding the given children. ...

Retrieves the number of direct children of node. ...

Gets one of the children of the container node. ...

A render node for a Cairo surface. ...

Creates a render node that will render a Cairo surface into the area given by bounds. ...

Creates a Cairo context for drawing using the surface associated to the render node. ...

Retrieves the Cairo surface used by the render node. ...

A render node for a solid color. ...

Creates a render node that will render the color specified by rgba into the area given by bounds. ...

Retrieves the color of the given render node. ...

A render node for a linear gradient. ...

Creates a render node that will create a linear gradient from the given points and color stops, and render that into the area given by bounds. ...

Retrieves the initial point of the linear gradient. ...

Retrieves the final point of the linear gradient. ...

Retrieves the number of color stops in the linear gradient. ...

Retrieves the color stops in the linear gradient. ...

A render node for a repeating linear gradient. ...

Creates a render node that will create a repeating linear gradient from the given points and color stops, and render that into the area given by bounds. ...

A render node for a radial gradient. ...

Creates a render node that will create a radial gradient. ...

Retrieves the number of color stops in the radial gradient. ...

Retrieves the color stops in the radial gradient. ...

Retrieves the start value for the radial gradient. ...

Retrieves the end value for the radial gradient. ...

Retrieves the horizontal radius for the radial gradient. ...

Retrieves the vertical radius for the radial gradient. ...

Retrieves the center point for the radial gradient. ...

A render node for a repeating radial gradient. ...

Creates a render node that will create a repeating radial gradient. ...

A render node for a conic gradient. ...

Creates a render node that draws a conic gradient. ...

Retrieves the number of color stops in the conic gradient. ...

Retrieves the color stops in the conic gradient. ...

Retrieves the center pointer for the gradient. ...

Retrieves the rotation for the conic gradient in degrees. ...

A render node for a border. ...

Creates a border render node that will stroke a border rectangle inside the given outline. ...

Retrieves the outline of the border. ...

Retrieves the stroke widths of the border. ...

Retrieves the colors of the border. ...

A render node for a gdk:texture object. ...

Creates a render node that will render the given texture into the area given by bounds. ...

Retrieves the texture used when creating this render node. ...

A render node for an inset shadow. ...

Creates a render node that will render an inset shadow into the box given by outline. ...

Retrieves the outline rectangle of the inset shadow. ...

Retrieves the color of the inset shadow. ...

Retrieves the horizontal offset of the inset shadow. ...

Retrieves the vertical offset of the inset shadow. ...

Retrieves how much the shadow spreads inwards. ...

Retrieves the blur radius to apply to the shadow. ...

A render node for an outset shadow. ...

Creates a render node that will render an outset shadow into the box given by outline. ...

Retrieves the outline rectangle of the outset shadow. ...

Retrieves the color of the outset shadow. ...

Retrieves the horizontal offset of the outset shadow. ...

Retrieves the vertical offset of the outset shadow. ...

Retrieves how much the shadow spreads inwards. ...

Retrieves the blur radius to apply to the shadow. ...

A render node applying a gsk:transform instance to its single child render node. ...

Creates a render node that will transform the given child with the given transform. ...

Gets the child render node that is getting transformed by the given node. ...

Retrieves the gsk:transform instance used by node. ...

A render node controlling the opacity of its single child render node. ...

Creates a render node that will draw the child with reduced opacity. ...

Gets the child node that is getting opacityed by the given node. ...

Gets the transparency factor for an opacity node. ...

A render node controlling the color matrix of its single child render node. ...

Creates a render node that will draw the child render node with reduced matrix. ...

Gets the child render node that is getting its colors modified by the given node. ...

Retrieves the color matrix used by node. ...

Retrieves the color offset used by node. ...

A render node repeating its single child render node. ...

Creates a render node that will repeat the drawing of child across the given bounds. ...

Retrieves the child of node. ...

Retrieves the bounding rectangle of the child of node. ...

A render node applying a rectangular clip to its single child render node. ...

Creates a render node that will clip the child render node to the area given by clip. ...

Gets the child render node that is getting clipped by the given node. ...

Retrieves the clip rectangle for node. ...

A render node applying a rounded rectangle clip to its single child render node. ...

Creates a render node that will clip the child node to the area given by clip. ...

Gets the child node that is getting clipped by the given node. ...

Retrievs the rounded rectangle used to clip the contents of node. ...

A render node drawing one or more shadows behind its single child render node. ...

Creates a render node that will draw a child with the given shadows below it. ...

Retrieves the shadow data at the given index. ...

Retrieves the number of shadows in node. ...

Retrieves the child render node of the shadow node. ...

A render node applying a blending function between its two child nodes. ...

Creates a render node that will use mode to blend the top node onto the bottom node. ...

Retrieves the bottom render node child of node. ...

Retrieves the top render node child of node. ...

Retrieves the blend mode used by node. ...

A render node cross fading between two child render nodes. ...

Creates a render node that will do a cross-fade between start and end. ...

Retrieves the child render node at the beginning of the cross-fade. ...

Retrieves the child render node at the end of the cross-fade. ...

Retrieves the progress value of the cross fade node. ...

A render node drawing a set of glyphs. ...

Creates a render node that renders the given glyphs. ...

Returns the font used by the text node. ...

Retrieves the color used by the text node. ...

Checks whether the text node has color glyphs. ...

Retrieves the number of glyphs in the text node. ...

Retrieves the offset applied to the text node. ...

A render node applying a blur effect between its single child node. ...

Creates a render node that blurs the child render node. ...

Retrieves the child render node of the blur render node. ...

Retrieves the blur radius of the blur render node. ...

A render node that emits a debugging message when drawing its child render node. ...

Creates a render node that will add debug information about the given child. ...

Gets the child node that is getting drawn by the given node. ...

Gets the debug message that was set on this render node. ...

A render node for a gdk:texture object. ...

Retrieves the gsk:scaling-filter value used when creating the render node. ...

Retrieves the texture used when creating the render node. ...

A render node masking one child node with another. ...

Creates a gsk:render-node instance that will mask a given node by another. ...

Retrieves the gsk:render-node instance with the mask child of the node. ...

Retrieves the mask mode used by node. ...

Retrieves the gsk:render-node instance with the source child of the node. ...

A render node filling the area given by a gsk:path instance and a gsk:fill-rule value with the child node. ...

Creates a gsk:render-node instance that will fill the child in the area given by path and rule. ...

Gets the child node that is getting drawn by the given node. ...

Retrieves the fill rule used to determine how the path is filled. ...

Retrieves the path used to describe the area filled with the contents of the node. ...

A render node that will fill the area determined by stroking the the given gsk:path instance using the gsk:stroke attributes. ...

Creates a gsk:render-node instance that will fill the outline generated by stroking the given path using the attributes defined in stroke. ...

Gets the child node that is getting drawn by the given node. ...

Retrieves the path that will be stroked with the contents of node. ...

Retrieves the stroke attributes used in node. ...

A render node that potentially diverts a part of the scene graph to a subsurface. ...

Creates a gsk:render-node instance that will possibly divert the child node to a subsurface. ...

Gets the subsurface that was set on this node. ...

Gets the child node that is getting drawn by the given node. ...

GskRoundedRect

The corner indices used by the gsk:rounded-rect instance. ...

A rectangular region with rounded corners. ...

Accessor of the bounds slot of the rounded rectangle. ...

Accessor of the nth corner of the rounded rectangle. ...

Initializes the given rect with the given values. ...

Initializes rect using the given src rounded rectangle. ...

Initializes rect to the given bounds and sets the radius of all four corners to radius. ...

Normalizes the passed rounded rectangle. ...

Offsets the origin of the bound by dx and dy. ...

Shrinks (or grows) the given rounded rectangle by moving the 4 sides according to the offsets given. ...

Checks if all corners of rect are right angles and the rounded rectangle covers all of its bounds. ...

Checks if the given point is inside the rounded rectangle. ...

Checks if the given other is contained inside the rounded rectangle. ...

Checks if part of the given other is contained inside the rounded rectangle. ...

GskTransform

The categories of matrices relevant for GSK and GTK. ...

The gsk:transform structure is a structure to describe transform matrices. ...

Creates a new transform matrix. ...

Returns the category this transform matrix belongs to. ...

Parses the given string into a transform matrix. ...

Converts a tansform matrix into a string that is suitable for printing and can later be parsed with the gsk:transform-parse function. ...

Computes the actual values of the transform matrix and stores it in matrix. ...

Converts a gsk:transform instace to a 2D transformation matrix. ...

Converts a gsk:transform instance to 2D transformation factors. ...

Converts a gsk:transform instance to 2D affine transformation factors. ...

Converts a gsk:transform instance to a translation operation. ...

Applies all the operations from other to transform. ...

Inverts the given transform. ...

Multiplies transform with the given matrix. ...

Translates the transform matrix in 2dimensional space by point. ...

Translates the transform matrix by point. ...

Rotates the transformation matrix angle degrees in 2D, or in 3D speak, around the z axis. ...

Rotates the transform matrix angle degrees around axis. ...

Scales transform in 2-dimensional space by the given factors. ...

Scales the transform matrix by the given factors. ...

Applies a skew transform. ...

Applies a perspective projection transform. ...

Checks two transforms for equality. ...

Transforms a graphene:rect-t instance using the given transform matrix. ...

Transforms a graphene:point-t instance using the given transform matrix. ...

GskGLShader

Exported Symbol Index

blend-node, GskRenderNode
blur-node, GskRenderNode
border-node, GskRenderNode
cairo-node, GskRenderNode
cairo-renderer, Class
clip-node, GskRenderNode
color-matrix-node, GskRenderNode
color-node, GskRenderNode
conic-gradient-node, GskRenderNode
container-node, GskRenderNode
cross-fade-node, GskRenderNode
debug-node, GskRenderNode
fill-node, GskRenderNode
gl-renderer, Class
inset-shadow-node, GskRenderNode
linear-gradient-node, GskRenderNode
mask-node, GskRenderNode
ngl-renderer, Class
opacity-node, GskRenderNode
outset-shadow-node, GskRenderNode
path, GBoxed
path-builder, GBoxed
path-measure, GBoxed
path-point, GBoxed
radial-gradient-node, GskRenderNode
render-node, GskRenderNode
renderer, Class
repeat-node, GskRenderNode
repeating-linear-gradient-node, GskRenderNode
repeating-radial-gradient-node, GskRenderNode
rounded-clip-node, GskRenderNode
shadow-node, GskRenderNode
stroke, GBoxed
stroke-node, GskRenderNode
subsurface-node, GskRenderNode
text-node, GskRenderNode
texture-node, GskRenderNode
texture-scale-node, GskRenderNode
transform, GBoxed
transform-node, GskRenderNode
blend-node-blend-mode, Function
blend-node-bottom-child, Function
blend-node-new, Function
blend-node-top-child, Function
blur-node-child, Function
blur-node-new, Function
blur-node-radius, Function
border-node-colors, Function
border-node-new, Function
border-node-outline, Function
border-node-widths, Function
cairo-node-draw-context, Function
cairo-node-new, Function
cairo-node-surface, Function
cairo-renderer-new, Function
clip-node-child, Function
clip-node-clip, Function
clip-node-new, Function
color-matrix-node-child, Function
color-matrix-node-color-matrix, Function
color-matrix-node-color-offset, Function
color-matrix-node-new, Function
color-node-color, Function
color-node-new, Function
conic-gradient-node-center, Function
conic-gradient-node-color-stops, Function
conic-gradient-node-n-color-stops, Function
conic-gradient-node-new, Function
conic-gradient-node-rotation, Function
container-node-child, Function
container-node-n-children, Function
container-node-new, Function
cross-fade-node-end-child, Function
cross-fade-node-new, Function
cross-fade-node-progress, Function
cross-fade-node-start-child, Function
debug-node-child, Function
debug-node-message, Function
debug-node-new, Function
fill-node-child, Function
fill-node-fill-rule, Function
fill-node-new, Function
fill-node-path, Function
gl-renderer-new, Function
inset-shadow-node-blur-radius, Function
inset-shadow-node-color, Function
inset-shadow-node-dx, Function
inset-shadow-node-dy, Function
inset-shadow-node-new, Function
inset-shadow-node-outline, Function
inset-shadow-node-spread, Function
linear-gradient-node-color-stops, Function
linear-gradient-node-end, Function
linear-gradient-node-n-color-stops, Function
linear-gradient-node-new, Function
linear-gradient-node-start, Function
mask-node-mask, Function
mask-node-mask-mode, Function
mask-node-new, Function
mask-node-source, Function
ngl-renderer-new, Function
opacity-node-child, Function
opacity-node-new, Function
opacity-node-opacity, Function
outset-shadow-node-blur-radius, Function
outset-shadow-node-color, Function
outset-shadow-node-dx, Function
outset-shadow-node-dy, Function
outset-shadow-node-new, Function
outset-shadow-node-outline, Function
outset-shadow-node-spread, Function
path-bounds, Function
path-builder-add-cairo-path, Function
path-builder-add-circle, Function
path-builder-add-layout, Function
path-builder-add-path, Function
path-builder-add-rect, Function
path-builder-add-reverse-path, Function
path-builder-add-rounded-rect, Function
path-builder-add-segment, Function
path-builder-arc-to, Function
path-builder-close, Function
path-builder-conic-to, Function
path-builder-cubic-to, Function
path-builder-current-point, Function
path-builder-html-arc-to, Function
path-builder-line-to, Function
path-builder-move-to, Function
path-builder-new, Function
path-builder-quad-to, Function
path-builder-rel-arc-to, Function
path-builder-rel-conic-to, Function
path-builder-rel-cubic-to, Function
path-builder-rel-html-arc-to, Function
path-builder-rel-line-to, Function
path-builder-rel-move-to, Function
path-builder-rel-quad-to, Function
path-builder-rel-svg-arc-to, Function
path-builder-svg-arc-to, Function
path-builder-to-path, Function
path-closest-point, Function
path-end-point, Function
path-foreach, Function
path-in-fill, Function
path-is-closed, Function
path-is-empty, Function
path-measure-length, Function
path-measure-new, Function
path-measure-new-with-tolerance, Function
path-measure-path, Function
path-measure-point, Function
path-measure-tolerance, Function
path-parse, Function
path-point-compare, Function
path-point-copy, Function
path-point-curvature, Function
path-point-distance, Function
path-point-equal, Function
path-point-position, Function
path-point-rotation, Function
path-point-tangent, Function
path-start-point, Function
path-stroke-bounds, Function
path-to-cairo, Function
path-to-string, Function
radial-gradient-node-center, Function
radial-gradient-node-color-stops, Function
radial-gradient-node-end, Function
radial-gradient-node-hradius, Function
radial-gradient-node-n-color-stops, Function
radial-gradient-node-new, Function
radial-gradient-node-start, Function
radial-gradient-node-vradius, Function
render-node-bounds, Function
render-node-deserialize, Function
render-node-draw, Function
render-node-node-type, Function
render-node-ref, Function
render-node-serialize, Function
render-node-unref, Function
render-node-write-to-file, Function
renderer-is-realized, Function
renderer-new-for-surface, Function
renderer-realize, Function
renderer-realized, Accessor
renderer-render, Function
renderer-render-texture, Function
renderer-surface, Accessor
renderer-unrealize, Function
repeat-node-child, Function
repeat-node-child-bounds, Function
repeat-node-new, Function
repeating-linear-gradient-node-new, Function
repeating-radial-gradient-node-new, Function
rounded-clip-node-child, Function
rounded-clip-node-clip, Function
rounded-clip-node-new, Function
rounded-rect-bounds, Function
rounded-rect-contains-point, Function
rounded-rect-contains-rect, Function
rounded-rect-corner, Function
rounded-rect-init, Function
rounded-rect-init-copy, Function
rounded-rect-init-from-rect, Function
rounded-rect-intersects-rect, Function
rounded-rect-is-rectilinear, Function
rounded-rect-normalize, Function
rounded-rect-offset, Function
rounded-rect-shrink, Function
shadow-node-child, Function
shadow-node-n-shadows, Function
shadow-node-new, Function
shadow-node-shadow, Function
stroke-copy, Function
stroke-dash, Function
stroke-dash-offset, Function
stroke-equal, Function
stroke-line-cap, Function
stroke-line-join, Function
stroke-line-width, Function
stroke-miter-limit, Function
stroke-new, Function
stroke-node-child, Function
stroke-node-new, Function
stroke-node-path, Function
stroke-node-stroke, Function
stroke-to-cairo, Function
subsurface-node-child, Function
subsurface-node-new, Function
subsurface-node-subsurface, Function
text-node-color, Function
text-node-font, Function
text-node-has-color-glyphs, Function
text-node-new, Function
text-node-num-glyphs, Function
text-node-offset, Function
texture-node-new, Function
texture-node-texture, Function
texture-scale-new, Function
texture-scale-node-filter, Function
texture-scale-node-texture, Function
transform-category, Function
transform-equal, Function
transform-invert, Function
transform-matrix, Function
transform-new, Function
transform-node-child, Function
transform-node-new, Function
transform-node-transform, Function
transform-parse, Function
transform-perspective, Function
transform-rotate, Function
transform-rotate-3d, Function
transform-scale, Function
transform-scale-3d, Function
transform-skew, Function
transform-to-2d, Function
transform-to-2d-components, Function
transform-to-affine, Function
transform-to-matrix, Function
transform-to-string, Function
transform-to-translate, Function
transform-transform, Function
transform-transform-bounds, Function
transform-transform-point, Function
transform-translate, Function
transform-translate-3d, Function
blend-mode, GEnum
corner, GEnum
fill-rule, GEnum
line-cap, GEnum
line-join, GEnum
mask-mode, GEnum
path-direction, GEnum
path-foreach-flags, GFlags
path-foreach-func, Callback
path-operation, GEnum
render-node-type, GEnum
rounded-rect, CStruct
scaling-filter, GEnum
transform-category, GEnum