| 1 | /* |
| 2 | * Copyright © 2018 Benjamin Otte |
| 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.1 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 | * Authors: Benjamin Otte <[email protected]> |
| 18 | */ |
| 19 | |
| 20 | #include "config.h"cxx . . $ `<file>/build/config.h`/ |
| 21 | |
| 22 | #include "fpsoverlay.h"cxx . . $ `<file>/gtk/inspector/fpsoverlay.h`/ |
| 23 | |
| 24 | #include "gtkwidget.h"cxx . . $ `<file>/gtk/gtkwidget.h`/ |
| 25 | #include "gtkwindow.h"cxx . . $ `<file>/gtk/gtkwindow.h`/ |
| 26 | #include "gtknative.h"cxx . . $ `<file>/gtk/gtknative.h`/ |
| 27 | #include "gtkmain.h"cxx . . $ `<file>/gtk/gtkmain.h`/ |
| 28 | |
| 29 | /* duration before we start fading in us */ |
| 30 | #define GDK_FPS_OVERLAY_LINGER_DURATIONcxx . . $ `gtk/inspector/fpsoverlay.c:30:9`! (1000 * 1000) |
| 31 | /* duration when fade is finished in us */ |
| 32 | #define GDK_FPS_OVERLAY_FADE_DURATIONcxx . . $ `gtk/inspector/fpsoverlay.c:32:9`! (500 * 1000) |
| 33 | |
| 34 | typedef struct _GtkFpsInfocxx . . $ _GtkFpsInfo# GtkFpsInfocxx . . $ GtkFpsInfo#; |
| 35 | |
| 36 | struct _GtkFpsInfocxx . . $ _GtkFpsInfo# |
| 37 | { |
| 38 | PangoFontcxx . . $ PangoFont# *fontcxx . . $ _GtkFpsInfo#font.; |
| 39 | PangoGlyphStringcxx . . $ PangoGlyphString# *glyphscxx . . $ _GtkFpsInfo#glyphs.; |
| 40 | PangoGlyphStringcxx . . $ PangoGlyphString# *digitscxx . . $ _GtkFpsInfo#digits.; |
| 41 | int widthcxx . . $ _GtkFpsInfo#width., heightcxx . . $ _GtkFpsInfo#height., baselinecxx . . $ _GtkFpsInfo#baseline.; |
| 42 | |
| 43 | gint64cxx . . $ gint64# last_framecxx . . $ _GtkFpsInfo#last_frame.; |
| 44 | GskRenderNodecxx . . $ GskRenderNode# *last_nodecxx . . $ _GtkFpsInfo#last_node.; |
| 45 | }; |
| 46 | |
| 47 | struct _GtkFpsOverlaycxx . . $ _GtkFpsOverlay# |
| 48 | { |
| 49 | GtkInspectorOverlaycxx . . $ GtkInspectorOverlay# parent_instancecxx . . $ _GtkFpsOverlay#parent_instance.; |
| 50 | |
| 51 | GHashTablecxx . . $ GHashTable# *infoscxx . . $ _GtkFpsOverlay#infos.; /* GtkWidget => GtkFpsInfo */ |
| 52 | }; |
| 53 | |
| 54 | struct _GtkFpsOverlayClasscxx . . $ _GtkFpsOverlayClass# |
| 55 | { |
| 56 | GtkInspectorOverlayClasscxx . . $ GtkInspectorOverlayClass# parent_classcxx . . $ _GtkFpsOverlayClass#parent_class.; |
| 57 | }; |
| 58 | |
| 59 | G_DEFINE_TYPEcxx . . $ `<external>/9567554376676449156/gtype.h:1834:9`! (GtkFpsOverlay, gtk_fps_overlay, GTK_TYPE_INSPECTOR_OVERLAYcxx . . $ `gtk/inspector/inspectoroverlay.h:26:9`!) |
| 60 | |
| 61 | static void |
| 62 | gtk_fps_info_freecxx . . $ gtk_fps_info_free(5d22bdacc48458e8). (gpointercxx . . $ gpointer# data) |
| 63 | { |
| 64 | GtkFpsInfocxx . . $ GtkFpsInfo# *info = data; |
| 65 | |
| 66 | g_clear_pointercxx . . $ `<external>/1123956534522462559/gmem.h:135:9`! (&info->glyphs, pango_glyph_string_free); |
| 67 | g_clear_pointercxx . . $ `<external>/1123956534522462559/gmem.h:135:9`! (&info->digits, pango_glyph_string_free); |
| 68 | g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&info->font); |
| 69 | |
| 70 | gsk_render_node_unrefcxx . . $ gsk_render_node_unref(8a7ac56c05ee882). (info->last_nodecxx . . $ _GtkFpsInfo#last_node.); |
| 71 | |
| 72 | g_freecxx . . $ g_free(5d22bdacc48458e8). (info); |
| 73 | } |
| 74 | |
| 75 | static GtkFpsInfocxx . . $ GtkFpsInfo# * |
| 76 | gtk_fps_info_newcxx . . $ gtk_fps_info_new(2f6b2a571d9c0052). (GtkWidgetcxx . . $ GtkWidget# *widget) |
| 77 | { |
| 78 | PangoLayoutcxx . . $ PangoLayout# *layout; |
| 79 | PangoLayoutItercxx . . $ PangoLayoutIter# *iter; |
| 80 | PangoLayoutRuncxx . . $ PangoLayoutRun# *run; |
| 81 | PangoAttrListcxx . . $ PangoAttrList# *attrs; |
| 82 | GtkFpsInfocxx . . $ GtkFpsInfo# *info; |
| 83 | |
| 84 | info = g_new0cxx . . $ `<external>/1123956534522462559/gmem.h:335:9`! (GtkFpsInfo, 1); |
| 85 | |
| 86 | layout = gtk_widget_create_pango_layoutcxx . . $ gtk_widget_create_pango_layout(e1804973e9b72966). (widget, "000000.00 fps"); |
| 87 | attrs = pango_attr_list_newcxx . . $ pango_attr_list_new(169bebe072f9142e). (); |
| 88 | pango_attr_list_insertcxx . . $ pango_attr_list_insert(db91f5ecbb0f813c). (attrs, pango_attr_font_features_newcxx . . $ pango_attr_font_features_new(1ce2dc48e17cfbbe). ("tnum=1")); |
| 89 | pango_layout_set_attributescxx . . $ pango_layout_set_attributes(b6ddc5fc8bc1382). (layout, attrs); |
| 90 | pango_attr_list_unrefcxx . . $ pango_attr_list_unref(c4bf0c0856846d1b). (attrs); |
| 91 | pango_layout_get_pixel_sizecxx . . $ pango_layout_get_pixel_size(4e8562eb28bfa385). (layout, &info->widthcxx . . $ _GtkFpsInfo#width., &info->heightcxx . . $ _GtkFpsInfo#height.); |
| 92 | |
| 93 | iter = pango_layout_get_itercxx . . $ pango_layout_get_iter(7655ba191e41e2de). (layout); |
| 94 | info->baselinecxx . . $ _GtkFpsInfo#baseline. = pango_layout_iter_get_baselinecxx . . $ pango_layout_iter_get_baseline(5ad9625bb5cf9402). (iter) / (double) PANGO_SCALEcxx . . $ `<external>/16549852590339199443/pango-types.h:96:9`!; |
| 95 | run = pango_layout_iter_get_run_readonlycxx . . $ pango_layout_iter_get_run_readonly(7038a8a71d37d3a3). (iter); |
| 96 | |
| 97 | info->glyphscxx . . $ _GtkFpsInfo#glyphs. = pango_glyph_string_copycxx . . $ pango_glyph_string_copy(3a72779b4b0c36ab). (run->glyphscxx . . $ _PangoGlyphItem#glyphs.); |
| 98 | info->fontcxx . . $ _GtkFpsInfo#font. = g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (run->item->analysis.font); |
| 99 | |
| 100 | pango_layout_iter_freecxx . . $ pango_layout_iter_free(7c49264df6892503). (iter); |
| 101 | |
| 102 | pango_layout_set_textcxx . . $ pango_layout_set_text(ae336bc313b2a60b). (layout, "0123456789 ", -1); |
| 103 | |
| 104 | iter = pango_layout_get_itercxx . . $ pango_layout_get_iter(7655ba191e41e2de). (layout); |
| 105 | run = pango_layout_iter_get_run_readonlycxx . . $ pango_layout_iter_get_run_readonly(7038a8a71d37d3a3). (iter); |
| 106 | |
| 107 | g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`! (run->glyphs->num_glyphs == 11); |
| 108 | |
| 109 | info->digitscxx . . $ _GtkFpsInfo#digits. = pango_glyph_string_copycxx . . $ pango_glyph_string_copy(3a72779b4b0c36ab). (run->glyphscxx . . $ _PangoGlyphItem#glyphs.); |
| 110 | |
| 111 | pango_layout_iter_freecxx . . $ pango_layout_iter_free(7c49264df6892503). (iter); |
| 112 | g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (layout); |
| 113 | |
| 114 | return info; |
| 115 | } |
| 116 | |
| 117 | static double |
| 118 | gtk_fps_overlay_get_fpscxx . . $ gtk_fps_overlay_get_fps(904e901eae418b8). (GtkWidgetcxx . . $ GtkWidget# *widget) |
| 119 | { |
| 120 | GdkFrameClockcxx . . $ GdkFrameClock# *frame_clock; |
| 121 | |
| 122 | frame_clock = gtk_widget_get_frame_clockcxx . . $ gtk_widget_get_frame_clock(82b8f1b122c490a1). (widget); |
| 123 | if (frame_clock == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 124 | return 0.0; |
| 125 | |
| 126 | return gdk_frame_clock_get_fpscxx . . $ gdk_frame_clock_get_fps(5c0d1f5e55ed06c8). (frame_clock); |
| 127 | } |
| 128 | |
| 129 | static gbooleancxx . . $ gboolean# |
| 130 | gtk_fps_overlay_force_redrawcxx . . $ gtk_fps_overlay_force_redraw(d70983e0fefb11f). (GtkWidgetcxx . . $ GtkWidget# *widget, |
| 131 | GdkFrameClockcxx . . $ GdkFrameClock# *clock, |
| 132 | gpointercxx . . $ gpointer# unused) |
| 133 | { |
| 134 | gdk_surface_queue_rendercxx . . $ gdk_surface_queue_render(4ba45883080e8f68). (gtk_native_get_surfacecxx . . $ gtk_native_get_surface(bdacbdb7fef9c16f). (gtk_widget_get_nativecxx . . $ gtk_widget_get_native(38d4aa93baea8f2d). (widget))); |
| 135 | |
| 136 | return G_SOURCE_REMOVEcxx . . $ `<external>/1856471541377536744/gmain.h:475:9`!; |
| 137 | } |
| 138 | |
| 139 | static void |
| 140 | gtk_fps_overlay_snapshotcxx . . $ gtk_fps_overlay_snapshot(49ccbdb25f37a252). (GtkInspectorOverlaycxx . . $ GtkInspectorOverlay# *overlay, |
| 141 | GtkSnapshotcxx . . $ GtkSnapshot# *snapshot, |
| 142 | GskRenderNodecxx . . $ GskRenderNode# *node, |
| 143 | GtkWidgetcxx . . $ GtkWidget# *widget) |
| 144 | { |
| 145 | GtkFpsOverlaycxx . . $ GtkFpsOverlay# *self = GTK_FPS_OVERLAYcxx . . $ GTK_FPS_OVERLAY(1acd0fd519708251). (overlay); |
| 146 | GtkFpsInfocxx . . $ GtkFpsInfo# *info; |
| 147 | gint64cxx . . $ gint64# now; |
| 148 | double fps; |
| 149 | graphene_rect_tcxx . . $ graphene_rect_t# bounds; |
| 150 | gbooleancxx . . $ gboolean# has_bounds; |
| 151 | double overlay_opacity; |
| 152 | |
| 153 | now = gdk_frame_clock_get_frame_timecxx . . $ gdk_frame_clock_get_frame_time(417c30ec8704d8fe). (gtk_widget_get_frame_clockcxx . . $ gtk_widget_get_frame_clock(82b8f1b122c490a1). (widget)); |
| 154 | info = g_hash_table_lookupcxx . . $ g_hash_table_lookup(8183d62c39a6a245). (self->infoscxx . . $ _GtkFpsOverlay#infos., widget); |
| 155 | if (info == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 156 | { |
| 157 | info = gtk_fps_info_newcxx . . $ gtk_fps_info_new(2f6b2a571d9c0052). (widget); |
| 158 | g_hash_table_insertcxx . . $ g_hash_table_insert(6a7c46015dd5ef26). (self->infoscxx . . $ _GtkFpsOverlay#infos., widget, info); |
| 159 | } |
| 160 | if (info->last_nodecxx . . $ _GtkFpsInfo#last_node. != node) |
| 161 | { |
| 162 | g_clear_pointercxx . . $ `<external>/1123956534522462559/gmem.h:135:9`! (&info->last_node, gsk_render_node_unref); |
| 163 | info->last_nodecxx . . $ _GtkFpsInfo#last_node. = gsk_render_node_refcxx . . $ gsk_render_node_ref(265e97a70c649899). (node); |
| 164 | info->last_framecxx . . $ _GtkFpsInfo#last_frame. = now; |
| 165 | overlay_opacity = 1.0; |
| 166 | } |
| 167 | else |
| 168 | { |
| 169 | if (now - info->last_framecxx . . $ _GtkFpsInfo#last_frame. > GDK_FPS_OVERLAY_LINGER_DURATIONcxx . . $ `gtk/inspector/fpsoverlay.c:30:9`! + GDK_FPS_OVERLAY_FADE_DURATIONcxx . . $ `gtk/inspector/fpsoverlay.c:32:9`!) |
| 170 | { |
| 171 | g_hash_table_removecxx . . $ g_hash_table_remove(453ebbf4abdbe50e). (self->infoscxx . . $ _GtkFpsOverlay#infos., widget); |
| 172 | return; |
| 173 | } |
| 174 | else if (now - info->last_framecxx . . $ _GtkFpsInfo#last_frame. > GDK_FPS_OVERLAY_LINGER_DURATIONcxx . . $ `gtk/inspector/fpsoverlay.c:30:9`!) |
| 175 | { |
| 176 | overlay_opacity = 1.0 - (double) (now - info->last_framecxx . . $ _GtkFpsInfo#last_frame. - GDK_FPS_OVERLAY_LINGER_DURATIONcxx . . $ `gtk/inspector/fpsoverlay.c:30:9`!) |
| 177 | / GDK_FPS_OVERLAY_FADE_DURATIONcxx . . $ `gtk/inspector/fpsoverlay.c:32:9`!; |
| 178 | } |
| 179 | else |
| 180 | { |
| 181 | overlay_opacity = 1.0; |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | if (GTK_IS_WINDOWcxx . . $ `gtk/gtkwindow.h:41:9`! (widget)) |
| 186 | { |
| 187 | GtkWidgetcxx . . $ GtkWidget# *child = gtk_window_get_childcxx . . $ gtk_window_get_child(531371cb518b0b30). (GTK_WINDOWcxx . . $ `gtk/gtkwindow.h:39:9`! (widget)); |
| 188 | if (!child || |
| 189 | !gtk_widget_compute_boundscxx . . $ gtk_widget_compute_bounds(167d30efbd6565d7). (child, widget, &bounds)) |
| 190 | has_bounds = gtk_widget_compute_boundscxx . . $ gtk_widget_compute_bounds(167d30efbd6565d7). (widget, widget, &bounds); |
| 191 | else |
| 192 | has_bounds = gtk_widget_compute_boundscxx . . $ gtk_widget_compute_bounds(167d30efbd6565d7). (child, widget, &bounds); |
| 193 | } |
| 194 | else |
| 195 | { |
| 196 | has_bounds = gtk_widget_compute_boundscxx . . $ gtk_widget_compute_bounds(167d30efbd6565d7). (widget, widget, &bounds); |
| 197 | } |
| 198 | |
| 199 | gtk_snapshot_savecxx . . $ gtk_snapshot_save(afbd0a0317d5665f). (snapshot); |
| 200 | if (has_bounds) |
| 201 | gtk_snapshot_translatecxx . . $ gtk_snapshot_translate(c73e8a4383f18867). (snapshot, &GRAPHENE_POINT_INITcxx . . $ `<external>/9324137249738369859/graphene-point.h:50:9`! (bounds.origin.x + bounds.size.width - info->width, bounds.origin.y)); |
| 202 | |
| 203 | if (overlay_opacity < 1.0) |
| 204 | gtk_snapshot_push_opacitycxx . . $ gtk_snapshot_push_opacity(2e366f2d8f7ead54). (snapshot, overlay_opacity); |
| 205 | |
| 206 | fps = gtk_fps_overlay_get_fpscxx . . $ gtk_fps_overlay_get_fps(904e901eae418b8). (widget); |
| 207 | if (fps != 0.0) |
| 208 | { |
| 209 | GskRenderNodecxx . . $ GskRenderNode# *fps_node; |
| 210 | char fps_string[40]; |
| 211 | gbooleancxx . . $ gboolean# bg_drawn = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 212 | float bg_x = 0; |
| 213 | |
| 214 | g_snprintfcxx . . $ g_snprintf(ea502d73e74c754c). (fps_string, sizeof (fps_string), "%9.2f fps", fps); |
| 215 | for (int i = 0; i < 9; i++) |
| 216 | { |
| 217 | if (fps_string[i] == ' ') |
| 218 | { |
| 219 | info->glyphscxx . . $ _GtkFpsInfo#glyphs.->glyphscxx . . $ _PangoGlyphString#glyphs.[i].glyphcxx . . $ _PangoGlyphInfo#glyph. = info->digitscxx . . $ _GtkFpsInfo#digits.->glyphscxx . . $ _PangoGlyphString#glyphs.[10].glyphcxx . . $ _PangoGlyphInfo#glyph.; |
| 220 | bg_x += (float) info->glyphscxx . . $ _GtkFpsInfo#glyphs.->glyphscxx . . $ _PangoGlyphString#glyphs.[i].geometrycxx . . $ _PangoGlyphInfo#geometry..widthcxx . . $ _PangoGlyphGeometry#width. / PANGO_SCALEcxx . . $ `<external>/16549852590339199443/pango-types.h:96:9`!; |
| 221 | } |
| 222 | else |
| 223 | { |
| 224 | if (!bg_drawn) |
| 225 | { |
| 226 | gtk_snapshot_append_colorcxx . . $ gtk_snapshot_append_color(402330aed7850122). (snapshot, |
| 227 | &(GdkRGBAcxx . . $ GdkRGBA#) { 0, 0, 0, 0.5 }, |
| 228 | &GRAPHENE_RECT_INITcxx . . $ `<external>/7539008420172022992/graphene-rect.h:50:9`! (bg_x - 1, -1, |
| 229 | info->width + 2 - bg_x, info->height + 2)); |
| 230 | bg_drawn = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 231 | } |
| 232 | |
| 233 | if (g_ascii_isdigitcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:70:9`! (fps_string[i])) |
| 234 | info->glyphscxx . . $ _GtkFpsInfo#glyphs.->glyphscxx . . $ _PangoGlyphString#glyphs.[i].glyphcxx . . $ _PangoGlyphInfo#glyph. = info->digitscxx . . $ _GtkFpsInfo#digits.->glyphscxx . . $ _PangoGlyphString#glyphs.[fps_string[i] - '0'].glyphcxx . . $ _PangoGlyphInfo#glyph.; |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | fps_node = gsk_text_node_newcxx . . $ gsk_text_node_new(b7036f3fe043ed0e). (info->fontcxx . . $ _GtkFpsInfo#font., |
| 239 | info->glyphscxx . . $ _GtkFpsInfo#glyphs., |
| 240 | &(GdkRGBAcxx . . $ GdkRGBA#) { 1, 1, 1, 1 }, |
| 241 | &GRAPHENE_POINT_INITcxx . . $ `<external>/9324137249738369859/graphene-point.h:50:9`! (0, info->baseline)); |
| 242 | gtk_snapshot_append_nodecxx . . $ gtk_snapshot_append_node(2039bb10640c36f0). (snapshot, fps_node); |
| 243 | gsk_render_node_unrefcxx . . $ gsk_render_node_unref(8a7ac56c05ee882). (fps_node); |
| 244 | } |
| 245 | |
| 246 | if (overlay_opacity < 1.0) |
| 247 | gtk_snapshot_popcxx . . $ gtk_snapshot_pop(afbd0a0317d5665f). (snapshot); |
| 248 | gtk_snapshot_restorecxx . . $ gtk_snapshot_restore(afbd0a0317d5665f). (snapshot); |
| 249 | |
| 250 | gtk_widget_add_tick_callbackcxx . . $ gtk_widget_add_tick_callback(358f9307fc320412). (widget, gtk_fps_overlay_force_redrawcxx . . $ gtk_fps_overlay_force_redraw(d70983e0fefb11f)., 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`!); |
| 251 | } |
| 252 | |
| 253 | static void |
| 254 | gtk_fps_overlay_queue_drawcxx . . $ gtk_fps_overlay_queue_draw(2042e79fc25a5242). (GtkInspectorOverlaycxx . . $ GtkInspectorOverlay# *overlay) |
| 255 | { |
| 256 | GtkFpsOverlaycxx . . $ GtkFpsOverlay# *self = GTK_FPS_OVERLAYcxx . . $ GTK_FPS_OVERLAY(1acd0fd519708251). (overlay); |
| 257 | GHashTableItercxx . . $ GHashTableIter# iter; |
| 258 | gpointercxx . . $ gpointer# widget; |
| 259 | |
| 260 | g_hash_table_iter_initcxx . . $ g_hash_table_iter_init(1fd6bbae530c3b4). (&iter, self->infoscxx . . $ _GtkFpsOverlay#infos.); |
| 261 | while (g_hash_table_iter_nextcxx . . $ g_hash_table_iter_next(1740d3f8cffea03c). (&iter, &widget, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)) |
| 262 | { |
| 263 | GdkSurfacecxx . . $ GdkSurface# *surface = gtk_native_get_surfacecxx . . $ gtk_native_get_surface(bdacbdb7fef9c16f). (gtk_widget_get_nativecxx . . $ gtk_widget_get_native(38d4aa93baea8f2d). (widget)); |
| 264 | if (surface) |
| 265 | gdk_surface_queue_rendercxx . . $ gdk_surface_queue_render(4ba45883080e8f68). (surface); |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | static void |
| 270 | gtk_fps_overlay_disposecxx . . $ gtk_fps_overlay_dispose(6087475fa43034d3). (GObjectcxx . . $ GObject# *object) |
| 271 | { |
| 272 | GtkFpsOverlaycxx . . $ GtkFpsOverlay# *self = GTK_FPS_OVERLAYcxx . . $ GTK_FPS_OVERLAY(1acd0fd519708251). (object); |
| 273 | |
| 274 | g_hash_table_unrefcxx . . $ g_hash_table_unref(ce4eddf544b9218). (self->infoscxx . . $ _GtkFpsOverlay#infos.); |
| 275 | |
| 276 | G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (gtk_fps_overlay_parent_class)->disposecxx . . $ _GObjectClass#dispose. (object); |
| 277 | } |
| 278 | |
| 279 | static void |
| 280 | gtk_fps_overlay_class_initcxx . . $ gtk_fps_overlay_class_init(f1134e8f75a9c4c6). (GtkFpsOverlayClasscxx . . $ GtkFpsOverlayClass# *klass) |
| 281 | { |
| 282 | GObjectClasscxx . . $ GObjectClass# *gobject_class = G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (klass); |
| 283 | GtkInspectorOverlayClasscxx . . $ GtkInspectorOverlayClass# *overlay_class = GTK_INSPECTOR_OVERLAY_CLASScxx . . $ GTK_INSPECTOR_OVERLAY_CLASS(562f990d41eee0d2). (klass); |
| 284 | |
| 285 | overlay_class->snapshotcxx . . $ _GtkInspectorOverlayClass#snapshot. = gtk_fps_overlay_snapshotcxx . . $ gtk_fps_overlay_snapshot(49ccbdb25f37a252).; |
| 286 | overlay_class->queue_drawcxx . . $ _GtkInspectorOverlayClass#queue_draw. = gtk_fps_overlay_queue_drawcxx . . $ gtk_fps_overlay_queue_draw(2042e79fc25a5242).; |
| 287 | |
| 288 | gobject_class->disposecxx . . $ _GObjectClass#dispose. = gtk_fps_overlay_disposecxx . . $ gtk_fps_overlay_dispose(6087475fa43034d3).; |
| 289 | } |
| 290 | |
| 291 | static void |
| 292 | gtk_fps_overlay_initcxx . . $ gtk_fps_overlay_init(4f521bab48df8ea9). (GtkFpsOverlaycxx . . $ GtkFpsOverlay# *self) |
| 293 | { |
| 294 | self->infoscxx . . $ _GtkFpsOverlay#infos. = g_hash_table_new_fullcxx . . $ g_hash_table_new_full(e2dd12b570de7430). (g_direct_hashcxx . . $ g_direct_hash(b11f534102b1ad6)., g_direct_equalcxx . . $ g_direct_equal(9148c8c3ff42c9d8)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, gtk_fps_info_freecxx . . $ gtk_fps_info_free(5d22bdacc48458e8).); |
| 295 | } |
| 296 | |
| 297 | GtkInspectorOverlaycxx . . $ GtkInspectorOverlay# * |
| 298 | gtk_fps_overlay_newcxx . . $ gtk_fps_overlay_new(1538c992afb1e868). (void) |
| 299 | { |
| 300 | GtkFpsOverlaycxx . . $ GtkFpsOverlay# *self; |
| 301 | |
| 302 | self = g_object_newcxx . . $ g_object_new(8485fe61b4be4c78). (GTK_TYPE_FPS_OVERLAYcxx . . $ `gtk/inspector/fpsoverlay.h:26:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 303 | |
| 304 | return GTK_INSPECTOR_OVERLAYcxx . . $ GTK_INSPECTOR_OVERLAY(eb9a907969d2724f). (self); |
| 305 | } |
| 306 |