| 1 | /* GSK - The GTK Scene Kit |
| 2 | * |
| 3 | * Copyright 2025 Benjamin Otte |
| 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Lesser General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2 of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Lesser General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Lesser General Public |
| 16 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | #include "config.h"cxx . . $ `<file>/build/config.h`/ |
| 20 | |
| 21 | #include "gskrenderreplay.h"cxx . . $ `<file>/gsk/gskrenderreplay.h`/ |
| 22 | |
| 23 | #include "gskrendernodeprivate.h"cxx . . $ `<file>/gsk/gskrendernodeprivate.h`/ |
| 24 | |
| 25 | /** |
| 26 | * GskRenderReplay: (free-func gsk_render_replay_free) |
| 27 | * |
| 28 | * A facility to replay a [[email protected]] and its children, potentially |
| 29 | * modifying them. |
| 30 | * |
| 31 | * This is a utility tool to walk a rendernode tree. The most powerful way |
| 32 | * is to provide a function via [[email protected]_node_filter] |
| 33 | * to filter each individual node and then run |
| 34 | * [[email protected]_node] on the nodes you want to filter. |
| 35 | * |
| 36 | * If you want to just walk the node tree and extract information |
| 37 | * without any modifications, you can also use [[email protected]_children]. |
| 38 | * |
| 39 | * Here is a little example application that redacts text in a node file: |
| 40 | * |
| 41 | * ``` |
| 42 | * #include <gtk/gtk.h> |
| 43 | * |
| 44 | * static GskRenderNode * |
| 45 | * redact_nodes (GskRenderReplay *replay, |
| 46 | * GskRenderNode *node, |
| 47 | * gpointer user_data) |
| 48 | * { |
| 49 | * GskRenderNode *result; |
| 50 | * |
| 51 | * if (gsk_render_node_get_node_type (node) == GSK_TEXT_NODE) |
| 52 | * { |
| 53 | * graphene_rect_t bounds; |
| 54 | * const GdkRGBA *color; |
| 55 | * |
| 56 | * gsk_render_node_get_bounds (node, &bounds); |
| 57 | * color = gsk_text_node_get_color (node); |
| 58 | * |
| 59 | * result = gsk_color_node_new (color, &bounds); |
| 60 | * } |
| 61 | * else |
| 62 | * { |
| 63 | * result = gsk_render_replay_default (replay, node); |
| 64 | * } |
| 65 | * |
| 66 | * return result; |
| 67 | * } |
| 68 | * |
| 69 | * int |
| 70 | * main (int argc, char *argv[]) |
| 71 | * { |
| 72 | * GFile *file; |
| 73 | * GBytes *bytes; |
| 74 | * GskRenderNode *result, *node; |
| 75 | * GskRenderReplay *replay; |
| 76 | * |
| 77 | * gtk_init (); |
| 78 | * |
| 79 | * if (argc != 3) |
| 80 | * { |
| 81 | * g_print ("usage: %s INFILE OUTFILE\n", argv[0]); |
| 82 | * return 0; |
| 83 | * } |
| 84 | * |
| 85 | * file = g_file_new_for_commandline_arg (argv[1]); |
| 86 | * bytes = g_file_load_bytes (file, NULL, NULL, NULL); |
| 87 | * g_object_unref (file); |
| 88 | * if (bytes == NULL) |
| 89 | * return 1; |
| 90 | * |
| 91 | * node = gsk_render_node_deserialize (bytes, NULL, NULL); |
| 92 | * g_bytes_unref (bytes); |
| 93 | * if (node == NULL) |
| 94 | * return 1; |
| 95 | * |
| 96 | * replay = gsk_render_replay_new (); |
| 97 | * gsk_render_replay_set_node_filter (replay, redact_nodes, NULL, NULL); |
| 98 | * result = gsk_render_replay_filter_node (replay, node); |
| 99 | * gsk_render_replay_free (replay); |
| 100 | * |
| 101 | * if (!gsk_render_node_write_to_file (result, argv[2], NULL)) |
| 102 | * return 1; |
| 103 | * |
| 104 | * gsk_render_node_unref (result); |
| 105 | * gsk_render_node_unref (node); |
| 106 | * |
| 107 | * return 0; |
| 108 | * } |
| 109 | * ``` |
| 110 | * |
| 111 | * Since: 4.22 |
| 112 | */ |
| 113 | |
| 114 | struct _GskRenderReplaycxx . . $ _GskRenderReplay# |
| 115 | { |
| 116 | GskRenderReplayNodeFiltercxx . . $ GskRenderReplayNodeFilter# node_filtercxx . . $ _GskRenderReplay#node_filter.; |
| 117 | gpointercxx . . $ gpointer# node_filter_datacxx . . $ _GskRenderReplay#node_filter_data.; |
| 118 | GDestroyNotifycxx . . $ GDestroyNotify# node_filter_destroycxx . . $ _GskRenderReplay#node_filter_destroy.; |
| 119 | |
| 120 | GskRenderReplayTextureFiltercxx . . $ GskRenderReplayTextureFilter# texture_filtercxx . . $ _GskRenderReplay#texture_filter.; |
| 121 | gpointercxx . . $ gpointer# texture_filter_datacxx . . $ _GskRenderReplay#texture_filter_data.; |
| 122 | GDestroyNotifycxx . . $ GDestroyNotify# texture_filter_destroycxx . . $ _GskRenderReplay#texture_filter_destroy.; |
| 123 | |
| 124 | GskRenderReplayFontFiltercxx . . $ GskRenderReplayFontFilter# font_filtercxx . . $ _GskRenderReplay#font_filter.; |
| 125 | gpointercxx . . $ gpointer# font_filter_datacxx . . $ _GskRenderReplay#font_filter_data.; |
| 126 | GDestroyNotifycxx . . $ GDestroyNotify# font_filter_destroycxx . . $ _GskRenderReplay#font_filter_destroy.; |
| 127 | }; |
| 128 | |
| 129 | /** |
| 130 | * gsk_render_replay_new: |
| 131 | * |
| 132 | * Creates a new replay object to replay nodes. |
| 133 | * |
| 134 | * Returns: A new replay object to replay nodes |
| 135 | * |
| 136 | * Since: 4.22 |
| 137 | **/ |
| 138 | GskRenderReplaycxx . . $ GskRenderReplay# * |
| 139 | gsk_render_replay_newcxx . . $ gsk_render_replay_new(ae818739bbfea2ec). (void) |
| 140 | { |
| 141 | GskRenderReplaycxx . . $ GskRenderReplay# *self; |
| 142 | |
| 143 | self = g_new0cxx . . $ `<external>/1123956534522462559/gmem.h:335:9`! (GskRenderReplay, 1); |
| 144 | |
| 145 | return self; |
| 146 | } |
| 147 | |
| 148 | /** |
| 149 | * gsk_render_replay_free: |
| 150 | * @self: the replay object to free |
| 151 | * |
| 152 | * Frees a `GskRenderReplay`. |
| 153 | * |
| 154 | * Since: 4.22 |
| 155 | **/ |
| 156 | void |
| 157 | gsk_render_replay_freecxx . . $ gsk_render_replay_free(33995fb752715aac). (GskRenderReplaycxx . . $ GskRenderReplay# *self) |
| 158 | { |
| 159 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (self != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 160 | |
| 161 | gsk_render_replay_set_node_filtercxx . . $ gsk_render_replay_set_node_filter(e4f46ebb41e3b8f4). (self, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 162 | gsk_render_replay_set_texture_filtercxx . . $ gsk_render_replay_set_texture_filter(11411d699538bc93). (self, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 163 | gsk_render_replay_set_font_filtercxx . . $ gsk_render_replay_set_font_filter(6b8c2badf38683ad). (self, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 164 | |
| 165 | g_freecxx . . $ g_free(5d22bdacc48458e8). (self); |
| 166 | } |
| 167 | |
| 168 | /** |
| 169 | * gsk_render_replay_set_node_filter: |
| 170 | * @filter: (nullable) (scope notified) (closure user_data) (destroy user_destroy): |
| 171 | * the function to call to replay nodes |
| 172 | * @user_data: user data to pass to @func |
| 173 | * @user_destroy: destroy notify that will be called to release |
| 174 | * the user data parameter |
| 175 | * |
| 176 | * Sets the function to use as a node filter. |
| 177 | * |
| 178 | * This is the most complex function to use for replaying nodes. |
| 179 | * It can either: |
| 180 | * |
| 181 | * * keep the node and just return it unchanged |
| 182 | * |
| 183 | * * create a replacement node and return that |
| 184 | * |
| 185 | * * discard the node by returning `NULL` |
| 186 | * |
| 187 | * * call [[email protected]] to have the default handler |
| 188 | * run for this node, which calls your function on its children |
| 189 | * |
| 190 | * Since: 4.22 |
| 191 | */ |
| 192 | void |
| 193 | gsk_render_replay_set_node_filtercxx . . $ gsk_render_replay_set_node_filter(e4f46ebb41e3b8f4). (GskRenderReplaycxx . . $ GskRenderReplay# *self, |
| 194 | GskRenderReplayNodeFiltercxx . . $ GskRenderReplayNodeFilter# filter, |
| 195 | gpointercxx . . $ gpointer# user_data, |
| 196 | GDestroyNotifycxx . . $ GDestroyNotify# user_destroy) |
| 197 | { |
| 198 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (self != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 199 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (filter || user_data == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 200 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (user_data || !user_destroy); |
| 201 | |
| 202 | if (self->node_filter_destroycxx . . $ _GskRenderReplay#node_filter_destroy.) |
| 203 | self->node_filter_destroycxx . . $ _GskRenderReplay#node_filter_destroy. (self->node_filter_datacxx . . $ _GskRenderReplay#node_filter_data.); |
| 204 | |
| 205 | self->node_filtercxx . . $ _GskRenderReplay#node_filter. = filter; |
| 206 | self->node_filter_datacxx . . $ _GskRenderReplay#node_filter_data. = user_data; |
| 207 | self->node_filter_destroycxx . . $ _GskRenderReplay#node_filter_destroy. = user_destroy; |
| 208 | } |
| 209 | |
| 210 | /** |
| 211 | * gsk_render_replay_filter_node: |
| 212 | * @self: the replay |
| 213 | * @node: the node to replay |
| 214 | * |
| 215 | * Replays a node using the replay's filter function. |
| 216 | * |
| 217 | * After the replay the node may be unchanged, or it may be |
| 218 | * removed, which will result in %NULL being returned. |
| 219 | * |
| 220 | * If no filter node is set, [[email protected]] is |
| 221 | * called instead. |
| 222 | * |
| 223 | * Returns: (transfer full) (nullable): The replayed node |
| 224 | * |
| 225 | * Since: 4.22 |
| 226 | **/ |
| 227 | GskRenderNodecxx . . $ GskRenderNode# * |
| 228 | gsk_render_replay_filter_nodecxx . . $ gsk_render_replay_filter_node(cfb462e0e94c2da9). (GskRenderReplaycxx . . $ GskRenderReplay# *self, |
| 229 | GskRenderNodecxx . . $ GskRenderNode# *node) |
| 230 | { |
| 231 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (self != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 232 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GSK_IS_RENDER_NODEcxx . . $ `gsk/gskrendernode.h:33:9`! (node), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 233 | |
| 234 | if (self->node_filtercxx . . $ _GskRenderReplay#node_filter.) |
| 235 | return self->node_filtercxx . . $ _GskRenderReplay#node_filter. (self, node, self->node_filter_datacxx . . $ _GskRenderReplay#node_filter_data.); |
| 236 | else |
| 237 | return gsk_render_replay_defaultcxx . . $ gsk_render_replay_default(cfb462e0e94c2da9). (self, node); |
| 238 | } |
| 239 | |
| 240 | /** |
| 241 | * gsk_render_replay_default: |
| 242 | * @self: the replay |
| 243 | * @node: the node to replay |
| 244 | * |
| 245 | * Replays the node using the default method. |
| 246 | * |
| 247 | * The default method calls [[email protected]_node] |
| 248 | * on all its child nodes and the filter functions for all its |
| 249 | * properties. If none of them are changed, it returns the passed |
| 250 | * in node. Otherwise it constructs a new node with the changed |
| 251 | * children and properties. |
| 252 | * |
| 253 | * It may not be possible to construct a new node when any of the |
| 254 | * callbacks return NULL. In that case, this function will return |
| 255 | * NULL, too. |
| 256 | * |
| 257 | * Returns: (transfer full) (nullable): The replayed node |
| 258 | * |
| 259 | * Since: 4.22 |
| 260 | **/ |
| 261 | GskRenderNodecxx . . $ GskRenderNode# * |
| 262 | gsk_render_replay_defaultcxx . . $ gsk_render_replay_default(cfb462e0e94c2da9). (GskRenderReplaycxx . . $ GskRenderReplay# *self, |
| 263 | GskRenderNodecxx . . $ GskRenderNode# *node) |
| 264 | { |
| 265 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (self != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 266 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GSK_IS_RENDER_NODEcxx . . $ `gsk/gskrendernode.h:33:9`! (node), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 267 | |
| 268 | return GSK_RENDER_NODE_GET_CLASScxx . . $ `gsk/gskrendernodeprivate.h:156:9`! (node)->replaycxx . . $ _GskRenderNodeClass#replay. (node, self); |
| 269 | } |
| 270 | |
| 271 | /** |
| 272 | * gsk_render_replay_set_texture_filter: |
| 273 | * @self: the replay |
| 274 | * @filter: (nullable) (scope notified) (closure user_data) (destroy user_destroy): |
| 275 | * the texture filter function |
| 276 | * @user_data: user data to pass to @filter |
| 277 | * @user_destroy: destroy notify that will be called to release |
| 278 | * the user data parameter |
| 279 | * |
| 280 | * Sets a filter function to be called by [[email protected]] |
| 281 | * for nodes that contain textures. |
| 282 | * |
| 283 | * You can call [[email protected]_texture] to filter |
| 284 | * a texture yourself. |
| 285 | * |
| 286 | * Since: 4.22 |
| 287 | **/ |
| 288 | void |
| 289 | gsk_render_replay_set_texture_filtercxx . . $ gsk_render_replay_set_texture_filter(11411d699538bc93). (GskRenderReplaycxx . . $ GskRenderReplay# *self, |
| 290 | GskRenderReplayTextureFiltercxx . . $ GskRenderReplayTextureFilter# filter, |
| 291 | gpointercxx . . $ gpointer# user_data, |
| 292 | GDestroyNotifycxx . . $ GDestroyNotify# user_destroy) |
| 293 | { |
| 294 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (self != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 295 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (filter || user_data == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 296 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (user_data || !user_destroy); |
| 297 | |
| 298 | if (self->texture_filter_destroycxx . . $ _GskRenderReplay#texture_filter_destroy.) |
| 299 | self->texture_filter_destroycxx . . $ _GskRenderReplay#texture_filter_destroy. (self->texture_filter_datacxx . . $ _GskRenderReplay#texture_filter_data.); |
| 300 | |
| 301 | if (filter) |
| 302 | self->texture_filtercxx . . $ _GskRenderReplay#texture_filter. = filter; |
| 303 | self->texture_filter_datacxx . . $ _GskRenderReplay#texture_filter_data. = user_data; |
| 304 | self->texture_filter_destroycxx . . $ _GskRenderReplay#texture_filter_destroy. = user_destroy; |
| 305 | } |
| 306 | |
| 307 | /** |
| 308 | * gsk_render_replay_filter_texture: |
| 309 | * @self: the replay |
| 310 | * @texture: The texture to filter |
| 311 | * |
| 312 | * Filters a texture using the current filter function. |
| 313 | * |
| 314 | * Returns: (transfer full): the filtered texture |
| 315 | * |
| 316 | * Since: 4.22 |
| 317 | **/ |
| 318 | GdkTexturecxx . . $ GdkTexture# * |
| 319 | gsk_render_replay_filter_texturecxx . . $ gsk_render_replay_filter_texture(15a0f8ade446f44e). (GskRenderReplaycxx . . $ GskRenderReplay# *self, |
| 320 | GdkTexturecxx . . $ GdkTexture# *texture) |
| 321 | { |
| 322 | GdkTexturecxx . . $ GdkTexture# *result; |
| 323 | |
| 324 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (self != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 325 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GDK_IS_TEXTUREcxx . . $ `gdk/gdktexture.h:33:9`! (texture), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 326 | |
| 327 | if (!self->texture_filtercxx . . $ _GskRenderReplay#texture_filter.) |
| 328 | return g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (texture); |
| 329 | |
| 330 | result = self->texture_filtercxx . . $ _GskRenderReplay#texture_filter. (self, texture, self->texture_filter_datacxx . . $ _GskRenderReplay#texture_filter_data.); |
| 331 | g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`! (result != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 332 | |
| 333 | return result; |
| 334 | } |
| 335 | |
| 336 | /** |
| 337 | * gsk_render_replay_set_font_filter: |
| 338 | * @self: the replay |
| 339 | * @filter: (nullable) (scope notified) (closure user_data) (destroy user_destroy): |
| 340 | * the font filter function |
| 341 | * @user_data: user data to pass to @filter |
| 342 | * @user_destroy: destroy notify that will be called to release |
| 343 | * the user data parameter |
| 344 | * |
| 345 | * Sets a filter function to be called by [[email protected]] |
| 346 | * for nodes that contain fonts. |
| 347 | * |
| 348 | * You can call [[email protected]_font] to filter |
| 349 | * a font yourself. |
| 350 | * |
| 351 | * Since: 4.22 |
| 352 | **/ |
| 353 | void |
| 354 | gsk_render_replay_set_font_filtercxx . . $ gsk_render_replay_set_font_filter(6b8c2badf38683ad). (GskRenderReplaycxx . . $ GskRenderReplay# *self, |
| 355 | GskRenderReplayFontFiltercxx . . $ GskRenderReplayFontFilter# filter, |
| 356 | gpointercxx . . $ gpointer# user_data, |
| 357 | GDestroyNotifycxx . . $ GDestroyNotify# user_destroy) |
| 358 | { |
| 359 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (self != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 360 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (filter || user_data == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 361 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (user_data || !user_destroy); |
| 362 | |
| 363 | if (self->font_filter_destroycxx . . $ _GskRenderReplay#font_filter_destroy.) |
| 364 | self->font_filter_destroycxx . . $ _GskRenderReplay#font_filter_destroy. (self->font_filter_datacxx . . $ _GskRenderReplay#font_filter_data.); |
| 365 | |
| 366 | if (filter) |
| 367 | self->font_filtercxx . . $ _GskRenderReplay#font_filter. = filter; |
| 368 | self->font_filter_datacxx . . $ _GskRenderReplay#font_filter_data. = user_data; |
| 369 | self->font_filter_destroycxx . . $ _GskRenderReplay#font_filter_destroy. = user_destroy; |
| 370 | } |
| 371 | |
| 372 | /** |
| 373 | * gsk_render_replay_filter_font: |
| 374 | * @self: the replay |
| 375 | * @font: The font to filter |
| 376 | * |
| 377 | * Filters a font using the current filter function. |
| 378 | * |
| 379 | * Returns: (transfer full): the filtered font |
| 380 | * |
| 381 | * Since: 4.22 |
| 382 | **/ |
| 383 | PangoFontcxx . . $ PangoFont# * |
| 384 | gsk_render_replay_filter_fontcxx . . $ gsk_render_replay_filter_font(2ddbe3f0014564). (GskRenderReplaycxx . . $ GskRenderReplay# *self, |
| 385 | PangoFontcxx . . $ PangoFont# *font) |
| 386 | { |
| 387 | PangoFontcxx . . $ PangoFont# *result; |
| 388 | |
| 389 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (self != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 390 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (PANGO_IS_FONTcxx . . $ `<external>/13833497419501663053/pango-font.h:601:9`! (font), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 391 | |
| 392 | if (!self->font_filtercxx . . $ _GskRenderReplay#font_filter.) |
| 393 | return g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (font); |
| 394 | |
| 395 | result = self->font_filtercxx . . $ _GskRenderReplay#font_filter. (self, font, self->font_filter_datacxx . . $ _GskRenderReplay#font_filter_data.); |
| 396 | g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`! (result != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 397 | |
| 398 | return result; |
| 399 | } |
| 400 | |
| 401 | G_DEFINE_POINTER_TYPEcxx . . $ `<external>/9567554376676449156/gtype.h:2549:9`! (GskRenderReplay, gsk_render_replay) |