2016-03-17 13:48:19 +00:00
|
|
|
/* GSK - The GTK Scene Kit
|
|
|
|
*
|
|
|
|
* Copyright 2016 Endless
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2023-03-31 19:11:10 +00:00
|
|
|
#pragma once
|
2016-03-17 13:48:19 +00:00
|
|
|
|
2019-11-27 13:33:43 +00:00
|
|
|
#if !defined (__GSK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
2016-03-17 13:48:19 +00:00
|
|
|
#error "Only <gsk/gsk.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2016-12-13 20:59:28 +00:00
|
|
|
#include <gsk/gskroundedrect.h>
|
2016-03-17 13:48:19 +00:00
|
|
|
#include <gsk/gsktypes.h>
|
2020-09-18 15:46:57 +00:00
|
|
|
#include <gsk/gskglshader.h>
|
2019-04-24 16:30:46 +00:00
|
|
|
#include <gtk/css/gtkcss.h>
|
2016-03-17 13:48:19 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GSK_TYPE_RENDER_NODE (gsk_render_node_get_type ())
|
|
|
|
|
2023-07-10 04:23:45 +00:00
|
|
|
#define GSK_IS_RENDER_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GSK_TYPE_RENDER_NODE))
|
2016-03-17 13:48:19 +00:00
|
|
|
|
2016-12-23 07:03:36 +00:00
|
|
|
#define GSK_SERIALIZATION_ERROR (gsk_serialization_error_quark ())
|
|
|
|
|
2016-12-15 04:42:31 +00:00
|
|
|
typedef struct _GskColorStop GskColorStop;
|
2016-12-18 23:45:35 +00:00
|
|
|
typedef struct _GskShadow GskShadow;
|
2016-12-15 04:42:31 +00:00
|
|
|
|
2020-12-01 14:01:02 +00:00
|
|
|
/**
|
|
|
|
* GskColorStop:
|
|
|
|
* @offset: the offset of the color stop
|
|
|
|
* @color: the color at the given offset
|
|
|
|
*
|
|
|
|
* A color stop in a gradient node.
|
|
|
|
*/
|
2016-12-15 04:42:31 +00:00
|
|
|
struct _GskColorStop
|
|
|
|
{
|
2019-12-17 17:10:38 +00:00
|
|
|
float offset;
|
2016-12-15 04:42:31 +00:00
|
|
|
GdkRGBA color;
|
|
|
|
};
|
2016-03-17 13:48:19 +00:00
|
|
|
|
2020-12-01 14:01:02 +00:00
|
|
|
/**
|
|
|
|
* GskShadow:
|
|
|
|
* @color: the color of the shadow
|
|
|
|
* @dx: the horizontal offset of the shadow
|
|
|
|
* @dy: the vertical offset of the shadow
|
|
|
|
* @radius: the radius of the shadow
|
|
|
|
*
|
|
|
|
* The shadow parameters in a shadow node.
|
|
|
|
*/
|
2016-12-18 23:45:35 +00:00
|
|
|
struct _GskShadow
|
|
|
|
{
|
|
|
|
GdkRGBA color;
|
|
|
|
float dx;
|
|
|
|
float dy;
|
|
|
|
float radius;
|
|
|
|
};
|
|
|
|
|
2020-11-17 03:21:27 +00:00
|
|
|
typedef struct _GskParseLocation GskParseLocation;
|
|
|
|
|
2020-12-01 14:01:02 +00:00
|
|
|
/**
|
|
|
|
* GskParseLocation:
|
|
|
|
* @bytes: the offset of the location in the parse buffer, as bytes
|
|
|
|
* @chars: the offset of the location in the parse buffer, as characters
|
|
|
|
* @lines: the line of the location in the parse buffer
|
|
|
|
* @line_bytes: the position in the line, as bytes
|
|
|
|
* @line_chars: the position in the line, as characters
|
|
|
|
*
|
|
|
|
* A location in a parse buffer.
|
|
|
|
*/
|
2020-11-17 03:21:27 +00:00
|
|
|
struct _GskParseLocation
|
|
|
|
{
|
|
|
|
gsize bytes;
|
|
|
|
gsize chars;
|
|
|
|
gsize lines;
|
|
|
|
gsize line_bytes;
|
|
|
|
gsize line_chars;
|
|
|
|
};
|
|
|
|
|
2020-02-09 00:36:25 +00:00
|
|
|
/**
|
|
|
|
* GskParseErrorFunc:
|
2020-11-17 03:21:27 +00:00
|
|
|
* @start: start of the error location
|
|
|
|
* @end: end of the error location
|
|
|
|
* @error: the error
|
2020-02-09 00:36:25 +00:00
|
|
|
* @user_data: user data
|
|
|
|
*
|
2021-02-20 06:09:55 +00:00
|
|
|
* Type of callback that is called when an error occurs
|
|
|
|
* during node deserialization.
|
2020-02-09 00:36:25 +00:00
|
|
|
*/
|
2020-11-17 03:21:27 +00:00
|
|
|
typedef void (* GskParseErrorFunc) (const GskParseLocation *start,
|
|
|
|
const GskParseLocation *end,
|
|
|
|
const GError *error,
|
|
|
|
gpointer user_data);
|
2019-04-24 16:30:46 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-12-23 07:03:36 +00:00
|
|
|
GType gsk_render_node_get_type (void) G_GNUC_CONST;
|
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-12-23 07:03:36 +00:00
|
|
|
GQuark gsk_serialization_error_quark (void);
|
2016-03-17 13:48:19 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-06-29 18:05:33 +00:00
|
|
|
GskRenderNode * gsk_render_node_ref (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-06-29 18:05:33 +00:00
|
|
|
void gsk_render_node_unref (GskRenderNode *node);
|
2016-03-17 13:48:19 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-04 04:53:23 +00:00
|
|
|
GskRenderNodeType gsk_render_node_get_node_type (const GskRenderNode *node);
|
2016-12-10 20:42:01 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
void gsk_render_node_get_bounds (GskRenderNode *node,
|
|
|
|
graphene_rect_t *bounds);
|
|
|
|
|
2023-04-03 12:52:00 +00:00
|
|
|
GDK_AVAILABLE_IN_4_16
|
|
|
|
gboolean gsk_render_node_get_opaque_rect (GskRenderNode *self,
|
|
|
|
graphene_rect_t *out_opaque);
|
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
void gsk_render_node_draw (GskRenderNode *node,
|
|
|
|
cairo_t *cr);
|
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
GBytes * gsk_render_node_serialize (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
gboolean gsk_render_node_write_to_file (GskRenderNode *node,
|
|
|
|
const char *filename,
|
|
|
|
GError **error);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2019-04-24 16:30:46 +00:00
|
|
|
GskRenderNode * gsk_render_node_deserialize (GBytes *bytes,
|
|
|
|
GskParseErrorFunc error_func,
|
|
|
|
gpointer user_data);
|
2017-10-20 06:06:20 +00:00
|
|
|
|
2020-04-08 14:34:11 +00:00
|
|
|
#define GSK_TYPE_DEBUG_NODE (gsk_debug_node_get_type())
|
|
|
|
#define GSK_TYPE_COLOR_NODE (gsk_color_node_get_type())
|
|
|
|
#define GSK_TYPE_TEXTURE_NODE (gsk_texture_node_get_type())
|
2023-02-08 03:52:06 +00:00
|
|
|
#define GSK_TYPE_TEXTURE_SCALE_NODE (gsk_texture_scale_node_get_type())
|
2020-04-08 14:34:11 +00:00
|
|
|
#define GSK_TYPE_LINEAR_GRADIENT_NODE (gsk_linear_gradient_node_get_type())
|
|
|
|
#define GSK_TYPE_REPEATING_LINEAR_GRADIENT_NODE (gsk_repeating_linear_gradient_node_get_type())
|
2020-09-12 02:55:37 +00:00
|
|
|
#define GSK_TYPE_RADIAL_GRADIENT_NODE (gsk_radial_gradient_node_get_type())
|
|
|
|
#define GSK_TYPE_REPEATING_RADIAL_GRADIENT_NODE (gsk_repeating_radial_gradient_node_get_type())
|
2020-12-02 23:47:54 +00:00
|
|
|
#define GSK_TYPE_CONIC_GRADIENT_NODE (gsk_conic_gradient_node_get_type())
|
2020-04-08 14:34:11 +00:00
|
|
|
#define GSK_TYPE_BORDER_NODE (gsk_border_node_get_type())
|
|
|
|
#define GSK_TYPE_INSET_SHADOW_NODE (gsk_inset_shadow_node_get_type())
|
|
|
|
#define GSK_TYPE_OUTSET_SHADOW_NODE (gsk_outset_shadow_node_get_type())
|
|
|
|
#define GSK_TYPE_CAIRO_NODE (gsk_cairo_node_get_type())
|
|
|
|
#define GSK_TYPE_CONTAINER_NODE (gsk_container_node_get_type())
|
|
|
|
#define GSK_TYPE_TRANSFORM_NODE (gsk_transform_node_get_type())
|
|
|
|
#define GSK_TYPE_OPACITY_NODE (gsk_opacity_node_get_type())
|
|
|
|
#define GSK_TYPE_COLOR_MATRIX_NODE (gsk_color_matrix_node_get_type())
|
|
|
|
#define GSK_TYPE_REPEAT_NODE (gsk_repeat_node_get_type())
|
|
|
|
#define GSK_TYPE_CLIP_NODE (gsk_clip_node_get_type())
|
|
|
|
#define GSK_TYPE_ROUNDED_CLIP_NODE (gsk_rounded_clip_node_get_type())
|
2020-11-10 23:44:32 +00:00
|
|
|
#define GSK_TYPE_FILL_NODE (gsk_fill_node_get_type())
|
2020-11-11 06:36:04 +00:00
|
|
|
#define GSK_TYPE_STROKE_NODE (gsk_stroke_node_get_type())
|
2020-04-08 14:34:11 +00:00
|
|
|
#define GSK_TYPE_SHADOW_NODE (gsk_shadow_node_get_type())
|
|
|
|
#define GSK_TYPE_BLEND_NODE (gsk_blend_node_get_type())
|
|
|
|
#define GSK_TYPE_CROSS_FADE_NODE (gsk_cross_fade_node_get_type())
|
|
|
|
#define GSK_TYPE_TEXT_NODE (gsk_text_node_get_type())
|
|
|
|
#define GSK_TYPE_BLUR_NODE (gsk_blur_node_get_type())
|
2023-02-11 13:59:06 +00:00
|
|
|
#define GSK_TYPE_MASK_NODE (gsk_mask_node_get_type())
|
2020-09-18 15:46:57 +00:00
|
|
|
#define GSK_TYPE_GL_SHADER_NODE (gsk_gl_shader_node_get_type())
|
2023-10-29 15:48:16 +00:00
|
|
|
#define GSK_TYPE_SUBSURFACE_NODE (gsk_subsurface_node_get_type())
|
2020-04-07 22:33:54 +00:00
|
|
|
|
|
|
|
typedef struct _GskDebugNode GskDebugNode;
|
|
|
|
typedef struct _GskColorNode GskColorNode;
|
|
|
|
typedef struct _GskTextureNode GskTextureNode;
|
2023-02-08 03:52:06 +00:00
|
|
|
typedef struct _GskTextureScaleNode GskTextureScaleNode;
|
2020-04-07 22:33:54 +00:00
|
|
|
typedef struct _GskLinearGradientNode GskLinearGradientNode;
|
|
|
|
typedef struct _GskRepeatingLinearGradientNode GskRepeatingLinearGradientNode;
|
2020-09-12 02:55:37 +00:00
|
|
|
typedef struct _GskRadialGradientNode GskRadialGradientNode;
|
|
|
|
typedef struct _GskRepeatingRadialGradientNode GskRepeatingRadialGradientNode;
|
2020-12-02 23:47:54 +00:00
|
|
|
typedef struct _GskConicGradientNode GskConicGradientNode;
|
2020-04-07 22:33:54 +00:00
|
|
|
typedef struct _GskBorderNode GskBorderNode;
|
|
|
|
typedef struct _GskInsetShadowNode GskInsetShadowNode;
|
|
|
|
typedef struct _GskOutsetShadowNode GskOutsetShadowNode;
|
|
|
|
typedef struct _GskCairoNode GskCairoNode;
|
|
|
|
typedef struct _GskContainerNode GskContainerNode;
|
|
|
|
typedef struct _GskTransformNode GskTransformNode;
|
|
|
|
typedef struct _GskOpacityNode GskOpacityNode;
|
|
|
|
typedef struct _GskColorMatrixNode GskColorMatrixNode;
|
|
|
|
typedef struct _GskRepeatNode GskRepeatNode;
|
|
|
|
typedef struct _GskClipNode GskClipNode;
|
|
|
|
typedef struct _GskRoundedClipNode GskRoundedClipNode;
|
2020-11-10 23:44:32 +00:00
|
|
|
typedef struct _GskFillNode GskFillNode;
|
2020-11-11 06:36:04 +00:00
|
|
|
typedef struct _GskStrokeNode GskStrokeNode;
|
2020-04-07 22:33:54 +00:00
|
|
|
typedef struct _GskShadowNode GskShadowNode;
|
|
|
|
typedef struct _GskBlendNode GskBlendNode;
|
|
|
|
typedef struct _GskCrossFadeNode GskCrossFadeNode;
|
|
|
|
typedef struct _GskTextNode GskTextNode;
|
|
|
|
typedef struct _GskBlurNode GskBlurNode;
|
2023-02-11 13:59:06 +00:00
|
|
|
typedef struct _GskMaskNode GskMaskNode;
|
2024-07-04 16:12:16 +00:00
|
|
|
typedef struct _GskGLShaderNode GskGLShaderNode GDK_DEPRECATED_TYPE_IN_4_16_FOR(GtkGLArea);
|
2023-10-29 15:48:16 +00:00
|
|
|
typedef struct _GskSubsurfaceNode GskSubsurfaceNode;
|
2020-04-07 22:33:54 +00:00
|
|
|
|
2020-04-08 14:34:11 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gsk_debug_node_get_type (void) G_GNUC_CONST;
|
2018-04-23 22:41:48 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GskRenderNode * gsk_debug_node_new (GskRenderNode *child,
|
|
|
|
char *message);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
GskRenderNode * gsk_debug_node_get_child (const GskRenderNode *node) G_GNUC_PURE;
|
2018-04-23 22:41:48 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
const char * gsk_debug_node_get_message (const GskRenderNode *node) G_GNUC_PURE;
|
2018-04-23 22:41:48 +00:00
|
|
|
|
2020-04-08 14:34:11 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gsk_color_node_get_type (void) G_GNUC_CONST;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-12-13 02:35:56 +00:00
|
|
|
GskRenderNode * gsk_color_node_new (const GdkRGBA *rgba,
|
|
|
|
const graphene_rect_t *bounds);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
const GdkRGBA * gsk_color_node_get_color (const GskRenderNode *node) G_GNUC_PURE;
|
2016-12-13 02:35:56 +00:00
|
|
|
|
2020-04-08 14:34:11 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gsk_texture_node_get_type (void) G_GNUC_CONST;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-11-04 15:03:03 +00:00
|
|
|
GskRenderNode * gsk_texture_node_new (GdkTexture *texture,
|
2016-12-10 21:52:22 +00:00
|
|
|
const graphene_rect_t *bounds);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
GdkTexture * gsk_texture_node_get_texture (const GskRenderNode *node) G_GNUC_PURE;
|
2016-12-10 21:52:22 +00:00
|
|
|
|
2023-02-08 03:52:06 +00:00
|
|
|
GDK_AVAILABLE_IN_4_10
|
|
|
|
GType gsk_texture_scale_node_get_type (void) G_GNUC_CONST;
|
|
|
|
GDK_AVAILABLE_IN_4_10
|
|
|
|
GskRenderNode * gsk_texture_scale_node_new (GdkTexture *texture,
|
|
|
|
const graphene_rect_t *bounds,
|
|
|
|
GskScalingFilter filter);
|
|
|
|
GDK_AVAILABLE_IN_4_10
|
|
|
|
GdkTexture * gsk_texture_scale_node_get_texture (const GskRenderNode *node) G_GNUC_PURE;
|
|
|
|
GDK_AVAILABLE_IN_4_10
|
|
|
|
GskScalingFilter gsk_texture_scale_node_get_filter (const GskRenderNode *node) G_GNUC_PURE;
|
|
|
|
|
2020-04-08 14:34:11 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gsk_linear_gradient_node_get_type (void) G_GNUC_CONST;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
GskRenderNode * gsk_linear_gradient_node_new (const graphene_rect_t *bounds,
|
|
|
|
const graphene_point_t *start,
|
|
|
|
const graphene_point_t *end,
|
|
|
|
const GskColorStop *color_stops,
|
|
|
|
gsize n_color_stops);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
const graphene_point_t * gsk_linear_gradient_node_get_start (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
const graphene_point_t * gsk_linear_gradient_node_get_end (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
gsize gsk_linear_gradient_node_get_n_color_stops (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 22:49:42 +00:00
|
|
|
const GskColorStop * gsk_linear_gradient_node_get_color_stops (const GskRenderNode *node,
|
2023-12-25 04:18:37 +00:00
|
|
|
gsize *n_stops);
|
2017-10-20 06:06:20 +00:00
|
|
|
|
2020-04-08 14:34:11 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gsk_repeating_linear_gradient_node_get_type (void) G_GNUC_CONST;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
GskRenderNode * gsk_repeating_linear_gradient_node_new (const graphene_rect_t *bounds,
|
|
|
|
const graphene_point_t *start,
|
|
|
|
const graphene_point_t *end,
|
|
|
|
const GskColorStop *color_stops,
|
|
|
|
gsize n_color_stops);
|
2016-12-15 04:42:31 +00:00
|
|
|
|
2020-12-02 23:47:54 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gsk_conic_gradient_node_get_type (void) G_GNUC_CONST;
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GskRenderNode * gsk_conic_gradient_node_new (const graphene_rect_t *bounds,
|
|
|
|
const graphene_point_t *center,
|
|
|
|
float rotation,
|
|
|
|
const GskColorStop *color_stops,
|
|
|
|
gsize n_color_stops);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
const graphene_point_t * gsk_conic_gradient_node_get_center (const GskRenderNode *node) G_GNUC_PURE;
|
2020-12-02 23:47:54 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
float gsk_conic_gradient_node_get_rotation (const GskRenderNode *node) G_GNUC_PURE;
|
2021-03-07 15:51:38 +00:00
|
|
|
GDK_AVAILABLE_IN_4_2
|
2021-02-03 23:00:28 +00:00
|
|
|
float gsk_conic_gradient_node_get_angle (const GskRenderNode *node) G_GNUC_PURE;
|
2021-01-26 15:15:12 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
gsize gsk_conic_gradient_node_get_n_color_stops (const GskRenderNode *node) G_GNUC_PURE;
|
2020-12-02 23:47:54 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 22:49:42 +00:00
|
|
|
const GskColorStop * gsk_conic_gradient_node_get_color_stops (const GskRenderNode *node,
|
2023-12-25 04:18:37 +00:00
|
|
|
gsize *n_stops);
|
2020-12-02 23:47:54 +00:00
|
|
|
|
2020-09-12 02:55:37 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gsk_radial_gradient_node_get_type (void) G_GNUC_CONST;
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GskRenderNode * gsk_radial_gradient_node_new (const graphene_rect_t *bounds,
|
|
|
|
const graphene_point_t *center,
|
2020-09-12 13:16:17 +00:00
|
|
|
float hradius,
|
|
|
|
float vradius,
|
2020-09-12 02:55:37 +00:00
|
|
|
float start,
|
|
|
|
float end,
|
|
|
|
const GskColorStop *color_stops,
|
|
|
|
gsize n_color_stops);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
gsize gsk_radial_gradient_node_get_n_color_stops (const GskRenderNode *node) G_GNUC_PURE;
|
2020-09-12 02:55:37 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 22:49:42 +00:00
|
|
|
const GskColorStop * gsk_radial_gradient_node_get_color_stops (const GskRenderNode *node,
|
2023-12-25 04:18:37 +00:00
|
|
|
gsize *n_stops);
|
2020-09-12 02:55:37 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
const graphene_point_t *gsk_radial_gradient_node_get_center (const GskRenderNode *node) G_GNUC_PURE;
|
2020-09-12 02:55:37 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
float gsk_radial_gradient_node_get_hradius (const GskRenderNode *node) G_GNUC_PURE;
|
2020-09-12 02:55:37 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
float gsk_radial_gradient_node_get_vradius (const GskRenderNode *node) G_GNUC_PURE;
|
2020-09-12 02:55:37 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
float gsk_radial_gradient_node_get_start (const GskRenderNode *node) G_GNUC_PURE;
|
2020-09-12 02:55:37 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
float gsk_radial_gradient_node_get_end (const GskRenderNode *node) G_GNUC_PURE;
|
2020-09-12 02:55:37 +00:00
|
|
|
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gsk_repeating_radial_gradient_node_get_type (void) G_GNUC_CONST;
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GskRenderNode * gsk_repeating_radial_gradient_node_new (const graphene_rect_t *bounds,
|
|
|
|
const graphene_point_t *center,
|
2020-09-12 13:16:17 +00:00
|
|
|
float hradius,
|
|
|
|
float vradius,
|
2020-09-12 02:55:37 +00:00
|
|
|
float start,
|
|
|
|
float end,
|
|
|
|
const GskColorStop *color_stops,
|
|
|
|
gsize n_color_stops);
|
|
|
|
|
2020-04-08 14:34:11 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gsk_border_node_get_type (void) G_GNUC_CONST;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-12-18 17:14:53 +00:00
|
|
|
GskRenderNode * gsk_border_node_new (const GskRoundedRect *outline,
|
|
|
|
const float border_width[4],
|
|
|
|
const GdkRGBA border_color[4]);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
const GskRoundedRect * gsk_border_node_get_outline (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
const float * gsk_border_node_get_widths (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
const GdkRGBA * gsk_border_node_get_colors (const GskRenderNode *node) G_GNUC_PURE;
|
2017-10-20 06:06:20 +00:00
|
|
|
|
2020-04-08 14:34:11 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gsk_inset_shadow_node_get_type (void) G_GNUC_CONST;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-12-19 04:13:42 +00:00
|
|
|
GskRenderNode * gsk_inset_shadow_node_new (const GskRoundedRect *outline,
|
|
|
|
const GdkRGBA *color,
|
|
|
|
float dx,
|
|
|
|
float dy,
|
|
|
|
float spread,
|
|
|
|
float blur_radius);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
const GskRoundedRect * gsk_inset_shadow_node_get_outline (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
const GdkRGBA * gsk_inset_shadow_node_get_color (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
float gsk_inset_shadow_node_get_dx (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
float gsk_inset_shadow_node_get_dy (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
float gsk_inset_shadow_node_get_spread (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
float gsk_inset_shadow_node_get_blur_radius (const GskRenderNode *node) G_GNUC_PURE;
|
2017-10-20 06:06:20 +00:00
|
|
|
|
2020-04-08 14:34:11 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gsk_outset_shadow_node_get_type (void) G_GNUC_CONST;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-12-19 14:39:43 +00:00
|
|
|
GskRenderNode * gsk_outset_shadow_node_new (const GskRoundedRect *outline,
|
|
|
|
const GdkRGBA *color,
|
|
|
|
float dx,
|
|
|
|
float dy,
|
|
|
|
float spread,
|
|
|
|
float blur_radius);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
const GskRoundedRect * gsk_outset_shadow_node_get_outline (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
const GdkRGBA * gsk_outset_shadow_node_get_color (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
float gsk_outset_shadow_node_get_dx (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
float gsk_outset_shadow_node_get_dy (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
float gsk_outset_shadow_node_get_spread (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
float gsk_outset_shadow_node_get_blur_radius (const GskRenderNode *node) G_GNUC_PURE;
|
2016-12-19 04:13:42 +00:00
|
|
|
|
2020-04-08 14:34:11 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gsk_cairo_node_get_type (void) G_GNUC_CONST;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-12-11 00:23:02 +00:00
|
|
|
GskRenderNode * gsk_cairo_node_new (const graphene_rect_t *bounds);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-03-24 20:33:08 +00:00
|
|
|
cairo_t * gsk_cairo_node_get_draw_context (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-11-16 23:59:36 +00:00
|
|
|
cairo_surface_t * gsk_cairo_node_get_surface (GskRenderNode *node);
|
2016-12-11 00:23:02 +00:00
|
|
|
|
2020-04-08 14:34:11 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gsk_container_node_get_type (void) G_GNUC_CONST;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-12-13 01:33:15 +00:00
|
|
|
GskRenderNode * gsk_container_node_new (GskRenderNode **children,
|
|
|
|
guint n_children);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
guint gsk_container_node_get_n_children (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 22:49:42 +00:00
|
|
|
GskRenderNode * gsk_container_node_get_child (const GskRenderNode *node,
|
2021-02-03 23:00:28 +00:00
|
|
|
guint idx) G_GNUC_PURE;
|
2016-03-17 13:48:19 +00:00
|
|
|
|
2020-04-08 14:34:11 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gsk_transform_node_get_type (void) G_GNUC_CONST;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-12-12 23:11:06 +00:00
|
|
|
GskRenderNode * gsk_transform_node_new (GskRenderNode *child,
|
2019-03-01 05:35:55 +00:00
|
|
|
GskTransform *transform);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
GskRenderNode * gsk_transform_node_get_child (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
GskTransform * gsk_transform_node_get_transform (const GskRenderNode *node) G_GNUC_PURE;
|
2016-12-12 23:11:06 +00:00
|
|
|
|
2020-04-08 14:34:11 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gsk_opacity_node_get_type (void) G_GNUC_CONST;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-12-13 04:49:57 +00:00
|
|
|
GskRenderNode * gsk_opacity_node_new (GskRenderNode *child,
|
2019-12-18 08:48:25 +00:00
|
|
|
float opacity);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
GskRenderNode * gsk_opacity_node_get_child (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
float gsk_opacity_node_get_opacity (const GskRenderNode *node) G_GNUC_PURE;
|
2016-03-17 13:48:19 +00:00
|
|
|
|
2020-04-08 14:34:11 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gsk_color_matrix_node_get_type (void) G_GNUC_CONST;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-12-31 00:13:19 +00:00
|
|
|
GskRenderNode * gsk_color_matrix_node_new (GskRenderNode *child,
|
|
|
|
const graphene_matrix_t *color_matrix,
|
|
|
|
const graphene_vec4_t *color_offset);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
GskRenderNode * gsk_color_matrix_node_get_child (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
const graphene_matrix_t *
|
2021-02-03 23:00:28 +00:00
|
|
|
gsk_color_matrix_node_get_color_matrix (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
const graphene_vec4_t * gsk_color_matrix_node_get_color_offset (const GskRenderNode *node) G_GNUC_PURE;
|
2016-12-31 00:13:19 +00:00
|
|
|
|
2020-04-08 14:34:11 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gsk_repeat_node_get_type (void) G_GNUC_CONST;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-01-01 18:52:18 +00:00
|
|
|
GskRenderNode * gsk_repeat_node_new (const graphene_rect_t *bounds,
|
|
|
|
GskRenderNode *child,
|
|
|
|
const graphene_rect_t *child_bounds);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
GskRenderNode * gsk_repeat_node_get_child (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
const graphene_rect_t * gsk_repeat_node_get_child_bounds (const GskRenderNode *node) G_GNUC_PURE;
|
2017-01-01 18:52:18 +00:00
|
|
|
|
2020-04-08 14:34:11 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gsk_clip_node_get_type (void) G_GNUC_CONST;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-12-13 08:37:51 +00:00
|
|
|
GskRenderNode * gsk_clip_node_new (GskRenderNode *child,
|
|
|
|
const graphene_rect_t *clip);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
GskRenderNode * gsk_clip_node_get_child (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
const graphene_rect_t * gsk_clip_node_get_clip (const GskRenderNode *node) G_GNUC_PURE;
|
2017-10-20 06:06:20 +00:00
|
|
|
|
2020-04-08 14:34:11 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gsk_rounded_clip_node_get_type (void) G_GNUC_CONST;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-12-13 20:59:28 +00:00
|
|
|
GskRenderNode * gsk_rounded_clip_node_new (GskRenderNode *child,
|
|
|
|
const GskRoundedRect *clip);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
GskRenderNode * gsk_rounded_clip_node_get_child (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
const GskRoundedRect * gsk_rounded_clip_node_get_clip (const GskRenderNode *node) G_GNUC_PURE;
|
2016-12-13 20:59:28 +00:00
|
|
|
|
2020-11-10 23:44:32 +00:00
|
|
|
GDK_AVAILABLE_IN_4_14
|
|
|
|
GType gsk_fill_node_get_type (void) G_GNUC_CONST;
|
|
|
|
GDK_AVAILABLE_IN_4_14
|
|
|
|
GskRenderNode * gsk_fill_node_new (GskRenderNode *child,
|
|
|
|
GskPath *path,
|
|
|
|
GskFillRule fill_rule);
|
|
|
|
GDK_AVAILABLE_IN_4_14
|
|
|
|
GskRenderNode * gsk_fill_node_get_child (const GskRenderNode *node);
|
|
|
|
GDK_AVAILABLE_IN_4_14
|
|
|
|
GskPath * gsk_fill_node_get_path (const GskRenderNode *node);
|
|
|
|
GDK_AVAILABLE_IN_4_14
|
|
|
|
GskFillRule gsk_fill_node_get_fill_rule (const GskRenderNode *node);
|
|
|
|
|
2020-11-11 06:36:04 +00:00
|
|
|
GDK_AVAILABLE_IN_4_14
|
|
|
|
GType gsk_stroke_node_get_type (void) G_GNUC_CONST;
|
|
|
|
GDK_AVAILABLE_IN_4_14
|
|
|
|
GskRenderNode * gsk_stroke_node_new (GskRenderNode *child,
|
|
|
|
GskPath *path,
|
|
|
|
const GskStroke *stroke);
|
|
|
|
GDK_AVAILABLE_IN_4_14
|
|
|
|
GskRenderNode * gsk_stroke_node_get_child (const GskRenderNode *node);
|
|
|
|
GDK_AVAILABLE_IN_4_14
|
|
|
|
GskPath * gsk_stroke_node_get_path (const GskRenderNode *node);
|
|
|
|
GDK_AVAILABLE_IN_4_14
|
|
|
|
const GskStroke * gsk_stroke_node_get_stroke (const GskRenderNode *node);
|
|
|
|
|
2020-04-08 14:34:11 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gsk_shadow_node_get_type (void) G_GNUC_CONST;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-12-18 23:45:35 +00:00
|
|
|
GskRenderNode * gsk_shadow_node_new (GskRenderNode *child,
|
|
|
|
const GskShadow *shadows,
|
|
|
|
gsize n_shadows);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
GskRenderNode * gsk_shadow_node_get_child (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 22:49:42 +00:00
|
|
|
const GskShadow * gsk_shadow_node_get_shadow (const GskRenderNode *node,
|
2021-02-03 23:00:28 +00:00
|
|
|
gsize i) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
gsize gsk_shadow_node_get_n_shadows (const GskRenderNode *node) G_GNUC_PURE;
|
2016-12-18 23:45:35 +00:00
|
|
|
|
2020-04-08 14:34:11 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gsk_blend_node_get_type (void) G_GNUC_CONST;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-12-15 03:24:37 +00:00
|
|
|
GskRenderNode * gsk_blend_node_new (GskRenderNode *bottom,
|
|
|
|
GskRenderNode *top,
|
|
|
|
GskBlendMode blend_mode);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
GskRenderNode * gsk_blend_node_get_bottom_child (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
GskRenderNode * gsk_blend_node_get_top_child (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
GskBlendMode gsk_blend_node_get_blend_mode (const GskRenderNode *node) G_GNUC_PURE;
|
2016-12-10 21:52:22 +00:00
|
|
|
|
2020-04-08 14:34:11 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gsk_cross_fade_node_get_type (void) G_GNUC_CONST;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-12-17 06:44:10 +00:00
|
|
|
GskRenderNode * gsk_cross_fade_node_new (GskRenderNode *start,
|
|
|
|
GskRenderNode *end,
|
2019-12-18 08:48:25 +00:00
|
|
|
float progress);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
GskRenderNode * gsk_cross_fade_node_get_start_child (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
GskRenderNode * gsk_cross_fade_node_get_end_child (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
float gsk_cross_fade_node_get_progress (const GskRenderNode *node) G_GNUC_PURE;
|
2016-12-17 06:44:10 +00:00
|
|
|
|
2020-04-08 14:34:11 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gsk_text_node_get_type (void) G_GNUC_CONST;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
GskRenderNode * gsk_text_node_new (PangoFont *font,
|
|
|
|
PangoGlyphString *glyphs,
|
|
|
|
const GdkRGBA *color,
|
2019-05-19 02:08:29 +00:00
|
|
|
const graphene_point_t *offset);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
PangoFont * gsk_text_node_get_font (const GskRenderNode *node) G_GNUC_PURE;
|
2021-11-13 16:33:15 +00:00
|
|
|
GDK_AVAILABLE_IN_4_2
|
2021-02-03 23:00:28 +00:00
|
|
|
gboolean gsk_text_node_has_color_glyphs (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
guint gsk_text_node_get_num_glyphs (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 22:49:42 +00:00
|
|
|
const PangoGlyphInfo *gsk_text_node_get_glyphs (const GskRenderNode *node,
|
2023-12-25 04:18:37 +00:00
|
|
|
guint *n_glyphs);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
const GdkRGBA * gsk_text_node_get_color (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
const graphene_point_t *gsk_text_node_get_offset (const GskRenderNode *node) G_GNUC_PURE;
|
2017-08-29 21:28:10 +00:00
|
|
|
|
2020-04-08 14:34:11 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gsk_blur_node_get_type (void) G_GNUC_CONST;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
GskRenderNode * gsk_blur_node_new (GskRenderNode *child,
|
2019-12-18 08:48:25 +00:00
|
|
|
float radius);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
GskRenderNode * gsk_blur_node_get_child (const GskRenderNode *node) G_GNUC_PURE;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-02-03 23:00:28 +00:00
|
|
|
float gsk_blur_node_get_radius (const GskRenderNode *node) G_GNUC_PURE;
|
2016-12-21 04:43:14 +00:00
|
|
|
|
2023-02-11 13:59:06 +00:00
|
|
|
GDK_AVAILABLE_IN_4_10
|
|
|
|
GType gsk_mask_node_get_type (void) G_GNUC_CONST;
|
|
|
|
GDK_AVAILABLE_IN_4_10
|
|
|
|
GskRenderNode * gsk_mask_node_new (GskRenderNode *source,
|
2023-02-14 18:44:39 +00:00
|
|
|
GskRenderNode *mask,
|
|
|
|
GskMaskMode mask_mode);
|
2023-02-11 13:59:06 +00:00
|
|
|
GDK_AVAILABLE_IN_4_10
|
|
|
|
GskRenderNode * gsk_mask_node_get_source (const GskRenderNode *node);
|
|
|
|
GDK_AVAILABLE_IN_4_10
|
|
|
|
GskRenderNode * gsk_mask_node_get_mask (const GskRenderNode *node);
|
2023-02-14 18:44:39 +00:00
|
|
|
GDK_AVAILABLE_IN_4_10
|
|
|
|
GskMaskMode gsk_mask_node_get_mask_mode (const GskRenderNode *node);
|
2023-02-11 13:59:06 +00:00
|
|
|
|
2024-07-04 16:12:16 +00:00
|
|
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
|
|
|
|
|
|
|
GDK_DEPRECATED_IN_4_16_FOR(GtkGLArea)
|
2023-02-11 13:59:06 +00:00
|
|
|
GType gsk_gl_shader_node_get_type (void) G_GNUC_CONST;
|
2024-07-04 16:12:16 +00:00
|
|
|
GDK_DEPRECATED_IN_4_16_FOR(GtkGLArea)
|
2020-09-18 15:46:57 +00:00
|
|
|
GskRenderNode * gsk_gl_shader_node_new (GskGLShader *shader,
|
|
|
|
const graphene_rect_t *bounds,
|
|
|
|
GBytes *args,
|
|
|
|
GskRenderNode **children,
|
|
|
|
guint n_children);
|
2024-07-04 16:12:16 +00:00
|
|
|
GDK_DEPRECATED_IN_4_16_FOR(GtkGLArea)
|
2021-02-03 23:00:28 +00:00
|
|
|
guint gsk_gl_shader_node_get_n_children (const GskRenderNode *node) G_GNUC_PURE;
|
2024-07-04 16:12:16 +00:00
|
|
|
GDK_DEPRECATED_IN_4_16_FOR(GtkGLArea)
|
2021-02-03 22:49:42 +00:00
|
|
|
GskRenderNode * gsk_gl_shader_node_get_child (const GskRenderNode *node,
|
2021-02-03 23:00:28 +00:00
|
|
|
guint idx) G_GNUC_PURE;
|
2024-07-04 16:12:16 +00:00
|
|
|
GDK_DEPRECATED_IN_4_16_FOR(GtkGLArea)
|
2021-02-03 23:00:28 +00:00
|
|
|
GBytes * gsk_gl_shader_node_get_args (const GskRenderNode *node) G_GNUC_PURE;
|
2024-07-04 16:12:16 +00:00
|
|
|
GDK_DEPRECATED_IN_4_16_FOR(GtkGLArea)
|
2021-02-03 23:00:28 +00:00
|
|
|
GskGLShader * gsk_gl_shader_node_get_shader (const GskRenderNode *node) G_GNUC_PURE;
|
2020-09-18 15:46:57 +00:00
|
|
|
|
2024-07-04 16:12:16 +00:00
|
|
|
G_GNUC_END_IGNORE_DEPRECATIONS
|
|
|
|
|
2023-10-29 15:48:16 +00:00
|
|
|
GDK_AVAILABLE_IN_4_14
|
|
|
|
GType gsk_subsurface_node_get_type (void) G_GNUC_CONST;
|
|
|
|
GDK_AVAILABLE_IN_4_14
|
|
|
|
GskRenderNode * gsk_subsurface_node_new (GskRenderNode *child,
|
|
|
|
gpointer subsurface);
|
|
|
|
GDK_AVAILABLE_IN_4_14
|
|
|
|
GskRenderNode * gsk_subsurface_node_get_child (const GskRenderNode *node) G_GNUC_PURE;
|
|
|
|
GDK_AVAILABLE_IN_4_14
|
|
|
|
gpointer gsk_subsurface_node_get_subsurface (const GskRenderNode *node);
|
|
|
|
|
2021-08-19 21:36:16 +00:00
|
|
|
/**
|
|
|
|
* GSK_VALUE_HOLDS_RENDER_NODE:
|
|
|
|
* @value: a `GValue`
|
|
|
|
*
|
|
|
|
* Evaluates to %TRUE if @value was initialized with %GSK_TYPE_RENDER_NODE.
|
|
|
|
*/
|
|
|
|
#define GSK_VALUE_HOLDS_RENDER_NODE(value) (G_VALUE_HOLDS ((value), GSK_TYPE_RENDER_NODE))
|
|
|
|
|
|
|
|
GDK_AVAILABLE_IN_4_4
|
|
|
|
void gsk_value_set_render_node (GValue *value,
|
|
|
|
GskRenderNode *node);
|
|
|
|
GDK_AVAILABLE_IN_4_4
|
|
|
|
void gsk_value_take_render_node (GValue *value,
|
|
|
|
GskRenderNode *node);
|
|
|
|
GDK_AVAILABLE_IN_4_4
|
|
|
|
GskRenderNode * gsk_value_get_render_node (const GValue *value);
|
|
|
|
GDK_AVAILABLE_IN_4_4
|
|
|
|
GskRenderNode * gsk_value_dup_render_node (const GValue *value);
|
|
|
|
|
2022-09-23 23:40:42 +00:00
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GskRenderNode, gsk_render_node_unref)
|
2021-08-19 21:36:16 +00:00
|
|
|
|
2016-03-17 13:48:19 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|