Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtksnapshot.h
Go to the documentation of this file.
1/* GTK - The GIMP Toolkit
2 * Copyright (C) 2016 Benjamin Otte <otte@gnome.org>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18/*
19 * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
20 * file for a list of people on the GTK+ Team. See the ChangeLog
21 * files for a list of changes. These files are distributed with
22 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
23 */
24
25#pragma once
26
27
28#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
29#error "Only <gtk/gtk.h> can be included directly."
30#endif
31
32#include <gsk/gsk.h>
33
34#include <gtk/gtktypes.h>
35
37
38typedef struct _GtkSnapshotClass GtkSnapshotClass;
39
40#define GTK_TYPE_SNAPSHOT (gtk_snapshot_get_type ())
41
42#define GTK_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SNAPSHOT, GtkSnapshot))
43#define GTK_IS_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SNAPSHOT))
44
46
47
48
51
58 const graphene_size_t *size);
59
63GdkPaintable * gtk_snapshot_to_paintable (GtkSnapshot *snapshot,
64 const graphene_size_t *size);
65
68 const char *message,
69 ...) G_GNUC_PRINTF (2, 3);
72 double opacity);
75 double radius);
78 const graphene_matrix_t*color_matrix,
79 const graphene_vec4_t *color_offset);
82 const graphene_rect_t *bounds,
83 const graphene_rect_t *child_bounds);
86 const graphene_rect_t *bounds);
89 const GskRoundedRect *bounds);
92 GskPath *path,
93 GskFillRule fill_rule);
96 GskPath *path,
97 const GskStroke *stroke);
100 const GskShadow *shadow,
101 gsize n_shadows);
104 GskBlendMode blend_mode);
107 GskMaskMode mask_mode);
108
111 double progress);
115 GskGLShader *shader,
116 const graphene_rect_t *bounds,
117 GBytes *take_args);
129 GskTransform *transform);
132 const graphene_matrix_t*matrix);
135 const graphene_point_t *point);
138 const graphene_point3d_t*point);
141 float angle);
144 float angle,
145 const graphene_vec3_t *axis);
148 float factor_x,
149 float factor_y);
152 float factor_x,
153 float factor_y,
154 float factor_z);
157 float depth);
160 GskRenderNode *node);
163 const graphene_rect_t *bounds);
166 GdkTexture *texture,
167 const graphene_rect_t *bounds);
170 GdkTexture *texture,
171 GskScalingFilter filter,
172 const graphene_rect_t *bounds);
175 const GdkRGBA *color,
176 const graphene_rect_t *bounds);
179 const graphene_rect_t *bounds,
180 const graphene_point_t *start_point,
181 const graphene_point_t *end_point,
182 const GskColorStop *stops,
183 gsize n_stops);
186 const graphene_rect_t *bounds,
187 const graphene_point_t *start_point,
188 const graphene_point_t *end_point,
189 const GskColorStop *stops,
190 gsize n_stops);
193 const graphene_rect_t *bounds,
194 const graphene_point_t *center,
195 float hradius,
196 float vradius,
197 float start,
198 float end,
199 const GskColorStop *stops,
200 gsize n_stops);
203 const graphene_rect_t *bounds,
204 const graphene_point_t *center,
205 float hradius,
206 float vradius,
207 float start,
208 float end,
209 const GskColorStop *stops,
210 gsize n_stops);
213 const graphene_rect_t *bounds,
214 const graphene_point_t *center,
215 float rotation,
216 const GskColorStop *stops,
217 gsize n_stops);
220 const GskRoundedRect *outline,
221 const float border_width[4],
222 const GdkRGBA border_color[4]);
225 const GskRoundedRect *outline,
226 const GdkRGBA *color,
227 float dx,
228 float dy,
229 float spread,
230 float blur_radius);
233 const GskRoundedRect *outline,
234 const GdkRGBA *color,
235 float dx,
236 float dy,
237 float spread,
238 float blur_radius);
239/* next function implemented in gskpango.c */
242 PangoLayout *layout,
243 const GdkRGBA *color);
244
247 GskPath *path,
248 GskFillRule fill_rule,
249 const GdkRGBA *color);
252 GskPath *path,
253 const GskStroke *stroke,
254 const GdkRGBA *color);
255
257
struct _cairo cairo_t
Definition cairo.h:135
guint depth
typedefG_BEGIN_DECLS struct _GBytes GBytes
Definition garray.h:38
#define GDK_AVAILABLE_IN_4_10
#define GDK_DEPRECATED_IN_4_16_FOR(f)
#define GDK_AVAILABLE_IN_4_14
#define GDK_AVAILABLE_IN_ALL
struct _GdkTexture GdkTexture
Definition gdktypes.h:82
unsigned long gsize
Definition glibconfig.h:83
#define G_END_DECLS
Definition gmacros.h:910
#define G_GNUC_PRINTF(format_idx, arg_idx)
Definition gmacros.h:608
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_BEGIN_IGNORE_DEPRECATIONS
Definition gmacros.h:771
#define G_GNUC_CONST
Definition gmacros.h:637
#define G_DEFINE_AUTOPTR_CLEANUP_FUNC(TypeName, func)
Definition gmacros.h:1400
#define G_GNUC_END_IGNORE_DEPRECATIONS
Definition gmacros.h:772
GOBJECT_AVAILABLE_IN_ALL void g_object_unref(gpointer object)
GskMaskMode
Definition gskenums.h:471
GskFillRule
Definition gskenums.h:242
GskScalingFilter
Definition gskenums.h:143
GskBlendMode
Definition gskenums.h:179
struct _GskTransform GskTransform
Definition gsktypes.h:36
struct _GskRenderNode GskRenderNode
Definition gsktypes.h:33
struct _GskStroke GskStroke
Definition gsktypes.h:35
struct _GskPath GskPath
Definition gsktypes.h:28
GDK_AVAILABLE_IN_ALL GskRenderNode * gtk_snapshot_free_to_node(GtkSnapshot *snapshot)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_append_color(GtkSnapshot *snapshot, const GdkRGBA *color, const graphene_rect_t *bounds)
GDK_AVAILABLE_IN_ALL void GDK_AVAILABLE_IN_ALL void gtk_snapshot_push_opacity(GtkSnapshot *snapshot, double opacity)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_restore(GtkSnapshot *snapshot)
G_GNUC_END_IGNORE_DEPRECATIONS GDK_AVAILABLE_IN_ALL void gtk_snapshot_pop(GtkSnapshot *snapshot)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_append_border(GtkSnapshot *snapshot, const GskRoundedRect *outline, const float border_width[4], const GdkRGBA border_color[4])
GDK_AVAILABLE_IN_ALL void gtk_snapshot_append_node(GtkSnapshot *snapshot, GskRenderNode *node)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_append_inset_shadow(GtkSnapshot *snapshot, const GskRoundedRect *outline, const GdkRGBA *color, float dx, float dy, float spread, float blur_radius)
GDK_AVAILABLE_IN_4_14 void gtk_snapshot_push_fill(GtkSnapshot *snapshot, GskPath *path, GskFillRule fill_rule)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_push_clip(GtkSnapshot *snapshot, const graphene_rect_t *bounds)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_push_shadow(GtkSnapshot *snapshot, const GskShadow *shadow, gsize n_shadows)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_scale_3d(GtkSnapshot *snapshot, float factor_x, float factor_y, float factor_z)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_append_repeating_linear_gradient(GtkSnapshot *snapshot, const graphene_rect_t *bounds, const graphene_point_t *start_point, const graphene_point_t *end_point, const GskColorStop *stops, gsize n_stops)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_append_conic_gradient(GtkSnapshot *snapshot, const graphene_rect_t *bounds, const graphene_point_t *center, float rotation, const GskColorStop *stops, gsize n_stops)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_transform(GtkSnapshot *snapshot, GskTransform *transform)
GDK_AVAILABLE_IN_4_10 void gtk_snapshot_push_mask(GtkSnapshot *snapshot, GskMaskMode mask_mode)
GDK_AVAILABLE_IN_ALL GskRenderNode * gtk_snapshot_to_node(GtkSnapshot *snapshot)
void gtk_snapshot_gl_shader_pop_texture(GtkSnapshot *snapshot)
GDK_AVAILABLE_IN_4_14 void gtk_snapshot_append_stroke(GtkSnapshot *snapshot, GskPath *path, const GskStroke *stroke, const GdkRGBA *color)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_push_color_matrix(GtkSnapshot *snapshot, const graphene_matrix_t *color_matrix, const graphene_vec4_t *color_offset)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_translate_3d(GtkSnapshot *snapshot, const graphene_point3d_t *point)
GDK_AVAILABLE_IN_ALL GdkPaintable * gtk_snapshot_free_to_paintable(GtkSnapshot *snapshot, const graphene_size_t *size)
typedefG_BEGIN_DECLS struct _GtkSnapshotClass GtkSnapshotClass
Definition gtksnapshot.h:38
G_GNUC_BEGIN_IGNORE_DEPRECATIONS void gtk_snapshot_push_gl_shader(GtkSnapshot *snapshot, GskGLShader *shader, const graphene_rect_t *bounds, GBytes *take_args)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_push_rounded_clip(GtkSnapshot *snapshot, const GskRoundedRect *bounds)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_rotate(GtkSnapshot *snapshot, float angle)
GDK_AVAILABLE_IN_ALL GtkSnapshot * gtk_snapshot_new(void)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_append_repeating_radial_gradient(GtkSnapshot *snapshot, const graphene_rect_t *bounds, const graphene_point_t *center, float hradius, float vradius, float start, float end, const GskColorStop *stops, gsize n_stops)
GDK_AVAILABLE_IN_4_14 void gtk_snapshot_push_stroke(GtkSnapshot *snapshot, GskPath *path, const GskStroke *stroke)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_append_texture(GtkSnapshot *snapshot, GdkTexture *texture, const graphene_rect_t *bounds)
GDK_AVAILABLE_IN_ALL GdkPaintable * gtk_snapshot_to_paintable(GtkSnapshot *snapshot, const graphene_size_t *size)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_append_radial_gradient(GtkSnapshot *snapshot, const graphene_rect_t *bounds, const graphene_point_t *center, float hradius, float vradius, float start, float end, const GskColorStop *stops, gsize n_stops)
GDK_AVAILABLE_IN_ALL cairo_t * gtk_snapshot_append_cairo(GtkSnapshot *snapshot, const graphene_rect_t *bounds)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_scale(GtkSnapshot *snapshot, float factor_x, float factor_y)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_push_cross_fade(GtkSnapshot *snapshot, double progress)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_append_outset_shadow(GtkSnapshot *snapshot, const GskRoundedRect *outline, const GdkRGBA *color, float dx, float dy, float spread, float blur_radius)
GDK_AVAILABLE_IN_ALL GType gtk_snapshot_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_4_10 void gtk_snapshot_append_scaled_texture(GtkSnapshot *snapshot, GdkTexture *texture, GskScalingFilter filter, const graphene_rect_t *bounds)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_perspective(GtkSnapshot *snapshot, float depth)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_push_blend(GtkSnapshot *snapshot, GskBlendMode blend_mode)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_append_linear_gradient(GtkSnapshot *snapshot, const graphene_rect_t *bounds, const graphene_point_t *start_point, const graphene_point_t *end_point, const GskColorStop *stops, gsize n_stops)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_push_repeat(GtkSnapshot *snapshot, const graphene_rect_t *bounds, const graphene_rect_t *child_bounds)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_save(GtkSnapshot *snapshot)
GDK_AVAILABLE_IN_4_14 void gtk_snapshot_append_fill(GtkSnapshot *snapshot, GskPath *path, GskFillRule fill_rule, const GdkRGBA *color)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_push_debug(GtkSnapshot *snapshot, const char *message,...) G_GNUC_PRINTF(2
GDK_AVAILABLE_IN_ALL void gtk_snapshot_transform_matrix(GtkSnapshot *snapshot, const graphene_matrix_t *matrix)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_push_blur(GtkSnapshot *snapshot, double radius)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_rotate_3d(GtkSnapshot *snapshot, float angle, const graphene_vec3_t *axis)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_translate(GtkSnapshot *snapshot, const graphene_point_t *point)
GDK_AVAILABLE_IN_ALL void gtk_snapshot_append_layout(GtkSnapshot *snapshot, PangoLayout *layout, const GdkRGBA *color)
GdkSnapshot GtkSnapshot
Definition gtktypes.h:60
gsize GType
Definition gtype.h:427
typedefG_BEGIN_DECLS struct _PangoLayout PangoLayout