Namespace

Gsk – 4.0

The GTK toolkit

Version4.1.0
AuthorsGTK Development Team
LicenseGPL-2.1-or-later
Websitehttps://www.gtk.org
Browse codehttps://gitlab.gnome.org/GNOME/gtk/

Build

C headersgsk/gsk.h
pkg-config filesgtk4

Dependencies

GObject The base type system library
Browse documentation
Graphene A thin layer of mathematical types for 3D libraries
Browse documentation
Pango Text shaping and rendering
Browse documentation
GDK The GTK windowing system abstraction
Browse documentation

Classes

BlendNode

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

BlurNode

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

BorderNode

A render node for a border.

CairoNode

A render node for a Cairo surface.

CairoRenderer
ClipNode

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

ColorMatrixNode

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

ColorNode

A render node for a solid color.

ConicGradientNode

A render node for a conic gradient.

ContainerNode

A render node that can contain other render nodes.

CrossFadeNode

A render node cross fading between two child nodes.

DebugNode

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

GLRenderer
GLShader

An object representing a GL shader program.

GLShaderNode

A render node using a GL shader when drawing its children nodes.

InsetShadowNode

A render node for an inset shadow.

LinearGradientNode

A render node for a linear gradient.

OpacityNode

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

OutsetShadowNode

A render node for an outset shadow.

RadialGradientNode

A render node for a radial gradient.

Renderer

Base type for the object managing the rendering pipeline for a GdkSurface.

RenderNode

A node in the render tree.

RepeatingLinearGradientNode

A render node for a repeating linear gradient.

RepeatingRadialGradientNode

A render node for a repeating radial gradient.

RepeatNode

A render node repeating its single child node.

RoundedClipNode

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

ShadowNode

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

TextNode

A render node drawing a set of glyphs.

TextureNode

A render node for a GdkTexture.

TransformNode

A render node applying a GskTransform to its single child node.

VulkanRenderer

Structs

ColorStop

A color stop in a gradient node.

ParseLocation

A location in a parse buffer.

RoundedRect

A rectangular region with rounded corners.

ShaderArgsBuilder

An object to build the uniforms data for a GskGLShader.

Shadow

The shadow parameters in a shadow node.

Transform

The GskTransform structure contains only private data.

Enumerations

BlendMode

The blend modes available for render nodes.

Corner

The corner indices used by GskRoundedRect.

GLUniformType

This defines the types of the uniforms that GskGLShaders declare. It defines both what the type is called in the GLSL shader code, and what the corresponding C type is on the Gtk side.

RenderNodeType

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

ScalingFilter

The filters used when scaling texture data.

TransformCategory

The categories of matrices relevant for GSK and GTK. Note that any category includes matrices of all later categories. So if you want to for example check if a matrix is a 2D matrix, category >= GSK_TRANSFORM_CATEGORY_2D is the way to do this.

Error domains

SerializationError

Errors that can happen during (de)serialization.

Callbacks

ParseErrorFunc

The type of callback that is called when a parse error occurs during deserialization of node data.

Functions

serialization_error_quark
transform_parse

Parses the given string into a transform and puts it in out_transform. Strings printed via gsk_transform_to_string() can be read in again successfully using this function.