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/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GSK_RENDER_NODE_H__
|
|
|
|
#define __GSK_RENDER_NODE_H__
|
|
|
|
|
|
|
|
#if !defined (__GSK_H_INSIDE__) && !defined (GSK_COMPILATION)
|
|
|
|
#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>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GSK_TYPE_RENDER_NODE (gsk_render_node_get_type ())
|
|
|
|
|
2016-12-10 14:33:16 +00:00
|
|
|
#define GSK_IS_RENDER_NODE(obj) ((obj) != NULL)
|
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-03-17 13:48:19 +00:00
|
|
|
typedef struct _GskRenderNode GskRenderNode;
|
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
|
|
|
|
|
|
|
struct _GskColorStop
|
|
|
|
{
|
|
|
|
double offset;
|
|
|
|
GdkRGBA color;
|
|
|
|
};
|
2016-03-17 13:48:19 +00:00
|
|
|
|
2016-12-18 23:45:35 +00:00
|
|
|
struct _GskShadow
|
|
|
|
{
|
|
|
|
GdkRGBA color;
|
|
|
|
float dx;
|
|
|
|
float dy;
|
|
|
|
float radius;
|
|
|
|
};
|
|
|
|
|
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
|
2016-12-10 20:42:01 +00:00
|
|
|
GskRenderNodeType gsk_render_node_get_node_type (GskRenderNode *node);
|
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
void gsk_render_node_set_name (GskRenderNode *node,
|
|
|
|
const char *name);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
const char * gsk_render_node_get_name (GskRenderNode *node);
|
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);
|
|
|
|
|
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
|
2017-10-20 06:06:20 +00:00
|
|
|
GskRenderNode * gsk_render_node_deserialize (GBytes *bytes,
|
|
|
|
GError **error);
|
|
|
|
|
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
|
2017-10-20 06:06:20 +00:00
|
|
|
const GdkRGBA * gsk_color_node_peek_color (GskRenderNode *node);
|
2016-12-13 02:35:56 +00:00
|
|
|
|
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
|
2017-11-04 15:03:03 +00:00
|
|
|
GdkTexture * gsk_texture_node_get_texture (GskRenderNode *node);
|
2016-12-10 21:52:22 +00:00
|
|
|
|
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
|
2017-10-20 06:06:20 +00:00
|
|
|
const graphene_point_t * gsk_linear_gradient_node_peek_start (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
const graphene_point_t * gsk_linear_gradient_node_peek_end (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-23 14:23:09 +00:00
|
|
|
gsize gsk_linear_gradient_node_get_n_color_stops (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
const GskColorStop * gsk_linear_gradient_node_peek_color_stops (GskRenderNode *node);
|
|
|
|
|
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
|
|
|
|
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
|
2017-10-20 06:06:20 +00:00
|
|
|
const GskRoundedRect * gsk_border_node_peek_outline (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
const float * gsk_border_node_peek_widths (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
const GdkRGBA * gsk_border_node_peek_colors (GskRenderNode *node);
|
|
|
|
|
2016-12-18 17:14:53 +00:00
|
|
|
|
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
|
2017-10-20 06:06:20 +00:00
|
|
|
const GskRoundedRect * gsk_inset_shadow_node_peek_outline (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
const GdkRGBA * gsk_inset_shadow_node_peek_color (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
float gsk_inset_shadow_node_get_dx (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
float gsk_inset_shadow_node_get_dy (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
float gsk_inset_shadow_node_get_spread (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
float gsk_inset_shadow_node_get_blur_radius (GskRenderNode *node);
|
|
|
|
|
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
|
2017-10-20 06:06:20 +00:00
|
|
|
const GskRoundedRect * gsk_outset_shadow_node_peek_outline (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
const GdkRGBA * gsk_outset_shadow_node_peek_color (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
float gsk_outset_shadow_node_get_dx (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
float gsk_outset_shadow_node_get_dy (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
float gsk_outset_shadow_node_get_spread (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
float gsk_outset_shadow_node_get_blur_radius (GskRenderNode *node);
|
2016-12-19 04:13:42 +00:00
|
|
|
|
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
|
2016-12-11 00:23:02 +00:00
|
|
|
cairo_t * gsk_cairo_node_get_draw_context (GskRenderNode *node,
|
|
|
|
GskRenderer *renderer);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:52:02 +00:00
|
|
|
const cairo_surface_t * gsk_cairo_node_peek_surface (GskRenderNode *node);
|
2016-12-11 00:23:02 +00:00
|
|
|
|
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
|
2016-12-13 01:33:15 +00:00
|
|
|
guint gsk_container_node_get_n_children (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-12-13 01:33:15 +00:00
|
|
|
GskRenderNode * gsk_container_node_get_child (GskRenderNode *node,
|
|
|
|
guint idx);
|
2016-03-17 13:48:19 +00:00
|
|
|
|
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,
|
2016-08-04 14:20:06 +00:00
|
|
|
const graphene_matrix_t *transform);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-12-12 23:11:06 +00:00
|
|
|
GskRenderNode * gsk_transform_node_get_child (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 07:31:14 +00:00
|
|
|
const graphene_matrix_t *
|
|
|
|
gsk_transform_node_peek_transform (GskRenderNode *node);
|
2016-12-12 23:11:06 +00:00
|
|
|
|
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,
|
|
|
|
double opacity);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2016-12-13 04:49:57 +00:00
|
|
|
GskRenderNode * gsk_opacity_node_get_child (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
double gsk_opacity_node_get_opacity (GskRenderNode *node);
|
2016-03-17 13:48:19 +00:00
|
|
|
|
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
|
2017-10-20 06:06:20 +00:00
|
|
|
GskRenderNode * gsk_color_matrix_node_get_child (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
const graphene_matrix_t *
|
|
|
|
gsk_color_matrix_node_peek_color_matrix (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
const graphene_vec4_t * gsk_color_matrix_node_peek_color_offset (GskRenderNode *node);
|
2016-12-31 00:13:19 +00:00
|
|
|
|
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
|
2017-10-20 06:06:20 +00:00
|
|
|
GskRenderNode * gsk_repeat_node_get_child (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
const graphene_rect_t * gsk_repeat_node_peek_child_bounds (GskRenderNode *node);
|
2017-01-01 18:52:18 +00:00
|
|
|
|
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
|
2016-12-13 08:37:51 +00:00
|
|
|
GskRenderNode * gsk_clip_node_get_child (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
const graphene_rect_t * gsk_clip_node_peek_clip (GskRenderNode *node);
|
|
|
|
|
2016-12-13 08:37:51 +00:00
|
|
|
|
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
|
2016-12-13 20:59:28 +00:00
|
|
|
GskRenderNode * gsk_rounded_clip_node_get_child (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
const GskRoundedRect * gsk_rounded_clip_node_peek_clip (GskRenderNode *node);
|
2016-12-13 20:59:28 +00:00
|
|
|
|
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
|
2017-10-20 06:06:20 +00:00
|
|
|
GskRenderNode * gsk_shadow_node_get_child (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
const GskShadow * gsk_shadow_node_peek_shadow (GskRenderNode *node,
|
|
|
|
gsize i);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
gsize gsk_shadow_node_get_n_shadows (GskRenderNode *node);
|
2016-12-18 23:45:35 +00:00
|
|
|
|
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
|
2017-10-20 06:06:20 +00:00
|
|
|
GskRenderNode * gsk_blend_node_get_bottom_child (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
GskRenderNode * gsk_blend_node_get_top_child (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
GskBlendMode gsk_blend_node_get_blend_mode (GskRenderNode *node);
|
2016-12-10 21:52:22 +00:00
|
|
|
|
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,
|
|
|
|
double progress);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
GskRenderNode * gsk_cross_fade_node_get_start_child (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
GskRenderNode * gsk_cross_fade_node_get_end_child (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
double gsk_cross_fade_node_get_progress (GskRenderNode *node);
|
2016-12-17 06:44:10 +00:00
|
|
|
|
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,
|
|
|
|
double x,
|
|
|
|
double y);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-03-04 16:35:17 +00:00
|
|
|
GskRenderNode * gsk_text_node_new_with_bounds (PangoFont *font,
|
|
|
|
PangoGlyphString *glyphs,
|
|
|
|
const GdkRGBA *color,
|
|
|
|
double x,
|
|
|
|
double y,
|
|
|
|
const graphene_rect_t *bounds);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 07:12:19 +00:00
|
|
|
const PangoFont * gsk_text_node_peek_font (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-27 21:13:40 +00:00
|
|
|
guint gsk_text_node_get_num_glyphs (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-27 21:13:40 +00:00
|
|
|
const PangoGlyphInfo *gsk_text_node_peek_glyphs (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 07:12:19 +00:00
|
|
|
const GdkRGBA * gsk_text_node_peek_color (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
float gsk_text_node_get_x (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
float gsk_text_node_get_y (GskRenderNode *node);
|
2017-08-29 21:28:10 +00:00
|
|
|
|
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,
|
|
|
|
double radius);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
GskRenderNode * gsk_blur_node_get_child (GskRenderNode *node);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-20 06:06:20 +00:00
|
|
|
double gsk_blur_node_get_radius (GskRenderNode *node);
|
2016-12-21 04:43:14 +00:00
|
|
|
|
2016-03-17 13:48:19 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GSK_RENDER_NODE_H__ */
|