| 1 | /* |
| 2 | * Copyright © 2021 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 "measuregraph.h"cxx . . $ `<file>/gtk/inspector/measuregraph.h`/ |
| 23 | |
| 24 | /* gdk_texture_new_for_surface() */ |
| 25 | #include "gdk/gdktextureprivate.h"cxx . . $ `<file>/gdk/gdktextureprivate.h`/ |
| 26 | |
| 27 | #define MAX_SIZEScxx . . $ `gtk/inspector/measuregraph.c:27:9`! 2048 |
| 28 | |
| 29 | typedef struct _Sizecxx . . $ _Size# Sizecxx . . $ Size#; |
| 30 | struct _Sizecxx . . $ _Size# |
| 31 | { |
| 32 | int mincxx . . $ _Size#min.; |
| 33 | int natcxx . . $ _Size#nat.; |
| 34 | }; |
| 35 | |
| 36 | struct _GtkInspectorMeasureGraphcxx . . $ _GtkInspectorMeasureGraph# |
| 37 | { |
| 38 | GObjectcxx . . $ GObject# parent_instancecxx . . $ _GtkInspectorMeasureGraph#parent_instance.; |
| 39 | |
| 40 | GdkPaintablecxx . . $ GdkPaintable# *texturecxx . . $ _GtkInspectorMeasureGraph#texture.; |
| 41 | Sizecxx . . $ Size# widthcxx . . $ _GtkInspectorMeasureGraph#width.; |
| 42 | Sizecxx . . $ Size# heightcxx . . $ _GtkInspectorMeasureGraph#height.; |
| 43 | Sizecxx . . $ Size# width_for_heightcxx . . $ _GtkInspectorMeasureGraph#width_for_height.[MAX_SIZEScxx . . $ `gtk/inspector/measuregraph.c:27:9`!]; |
| 44 | Sizecxx . . $ Size# height_for_widthcxx . . $ _GtkInspectorMeasureGraph#height_for_width.[MAX_SIZEScxx . . $ `gtk/inspector/measuregraph.c:27:9`!]; |
| 45 | }; |
| 46 | |
| 47 | struct _GtkInspectorMeasureGraphClasscxx . . $ _GtkInspectorMeasureGraphClass# |
| 48 | { |
| 49 | GObjectClasscxx . . $ GObjectClass# parent_classcxx . . $ _GtkInspectorMeasureGraphClass#parent_class.; |
| 50 | }; |
| 51 | |
| 52 | static void |
| 53 | gtk_inspector_measure_graph_ensure_texturecxx . . $ gtk_inspector_measure_graph_ensure_texture(f56c760c764093df). (GtkInspectorMeasureGraphcxx . . $ GtkInspectorMeasureGraph# *self) |
| 54 | { |
| 55 | int i, width, height; |
| 56 | cairo_surface_tcxx . . $ cairo_surface_t# *surface; |
| 57 | cairo_tcxx . . $ cairo_t# *cr; |
| 58 | |
| 59 | if (self->texturecxx . . $ _GtkInspectorMeasureGraph#texture.) |
| 60 | return; |
| 61 | |
| 62 | if (self->widthcxx . . $ _GtkInspectorMeasureGraph#width..natcxx . . $ _Size#nat. == 0 || self->heightcxx . . $ _GtkInspectorMeasureGraph#height..natcxx . . $ _Size#nat. == 0) |
| 63 | { |
| 64 | self->texturecxx . . $ _GtkInspectorMeasureGraph#texture. = gdk_paintable_new_emptycxx . . $ gdk_paintable_new_empty(97470f74e01a32d4). (0, 0); |
| 65 | return; |
| 66 | } |
| 67 | |
| 68 | width = self->widthcxx . . $ _GtkInspectorMeasureGraph#width..natcxx . . $ _Size#nat.; |
| 69 | for (i = 0; i < MAX_SIZEScxx . . $ `gtk/inspector/measuregraph.c:27:9`!; i++) |
| 70 | width = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (width, self->width_for_height[i].nat); |
| 71 | width = MINcxx . . $ `<external>/12741050725406041920/gmacros.h:978:9`! (width, MAX_SIZEScxx . . $ `gtk/inspector/measuregraph.c:27:9`!); |
| 72 | height = self->heightcxx . . $ _GtkInspectorMeasureGraph#height..natcxx . . $ _Size#nat.; |
| 73 | for (i = 0; i < MAX_SIZEScxx . . $ `gtk/inspector/measuregraph.c:27:9`!; i++) |
| 74 | height = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (height, self->height_for_width[i].nat); |
| 75 | height = MINcxx . . $ `<external>/12741050725406041920/gmacros.h:978:9`! (height, MAX_SIZEScxx . . $ `gtk/inspector/measuregraph.c:27:9`!); |
| 76 | |
| 77 | surface = cairo_image_surface_createcxx . . $ cairo_image_surface_create(f5323823c5d32b71). (CAIRO_FORMAT_ARGB32cxx . . $ CAIRO_FORMAT_ARGB32., width, height); |
| 78 | cr = cairo_createcxx . . $ cairo_create(b6f0039b687ec546). (surface); |
| 79 | cairo_set_operatorcxx . . $ cairo_set_operator(25547dbf60e71973). (cr, CAIRO_OPERATOR_ADDcxx . . $ CAIRO_OPERATOR_ADD.); |
| 80 | |
| 81 | cairo_set_source_rgbacxx . . $ cairo_set_source_rgba(1653902e9f448da4). (cr, 0.5, 0, 0, 1); |
| 82 | cairo_rectanglecxx . . $ cairo_rectangle(1653902e9f448da4). (cr, 0, 0, self->widthcxx . . $ _GtkInspectorMeasureGraph#width..mincxx . . $ _Size#min., height); |
| 83 | cairo_fillcxx . . $ cairo_fill(21788b7825b29bf). (cr); |
| 84 | cairo_set_source_rgbacxx . . $ cairo_set_source_rgba(1653902e9f448da4). (cr, 1, 0, 0, 1); |
| 85 | for (i = self->widthcxx . . $ _GtkInspectorMeasureGraph#width..mincxx . . $ _Size#min.; i < width; i++) |
| 86 | cairo_rectanglecxx . . $ cairo_rectangle(1653902e9f448da4). (cr, i, 0, 1, self->height_for_widthcxx . . $ _GtkInspectorMeasureGraph#height_for_width.[i].mincxx . . $ _Size#min.); |
| 87 | cairo_fillcxx . . $ cairo_fill(21788b7825b29bf). (cr); |
| 88 | cairo_set_source_rgbacxx . . $ cairo_set_source_rgba(1653902e9f448da4). (cr, 1, 0, 0, 0.3); |
| 89 | for (i = self->widthcxx . . $ _GtkInspectorMeasureGraph#width..mincxx . . $ _Size#min.; i < width; i++) |
| 90 | cairo_rectanglecxx . . $ cairo_rectangle(1653902e9f448da4). (cr, i, self->height_for_widthcxx . . $ _GtkInspectorMeasureGraph#height_for_width.[i].mincxx . . $ _Size#min., 1, self->height_for_widthcxx . . $ _GtkInspectorMeasureGraph#height_for_width.[i].natcxx . . $ _Size#nat. - self->height_for_widthcxx . . $ _GtkInspectorMeasureGraph#height_for_width.[i].mincxx . . $ _Size#min.); |
| 91 | cairo_fillcxx . . $ cairo_fill(21788b7825b29bf). (cr); |
| 92 | |
| 93 | cairo_set_source_rgbacxx . . $ cairo_set_source_rgba(1653902e9f448da4). (cr, 0, 0, 0.5, 1); |
| 94 | cairo_rectanglecxx . . $ cairo_rectangle(1653902e9f448da4). (cr, 0, 0, width, self->heightcxx . . $ _GtkInspectorMeasureGraph#height..mincxx . . $ _Size#min.); |
| 95 | cairo_fillcxx . . $ cairo_fill(21788b7825b29bf). (cr); |
| 96 | cairo_set_source_rgbacxx . . $ cairo_set_source_rgba(1653902e9f448da4). (cr, 0, 0, 1, 1); |
| 97 | for (i = self->heightcxx . . $ _GtkInspectorMeasureGraph#height..mincxx . . $ _Size#min.; i < height; i++) |
| 98 | cairo_rectanglecxx . . $ cairo_rectangle(1653902e9f448da4). (cr, 0, i, self->width_for_heightcxx . . $ _GtkInspectorMeasureGraph#width_for_height.[i].mincxx . . $ _Size#min., 1); |
| 99 | cairo_fillcxx . . $ cairo_fill(21788b7825b29bf). (cr); |
| 100 | cairo_set_source_rgbacxx . . $ cairo_set_source_rgba(1653902e9f448da4). (cr, 0, 0, 1, 0.3); |
| 101 | for (i = self->heightcxx . . $ _GtkInspectorMeasureGraph#height..mincxx . . $ _Size#min.; i < height; i++) |
| 102 | cairo_rectanglecxx . . $ cairo_rectangle(1653902e9f448da4). (cr, self->width_for_heightcxx . . $ _GtkInspectorMeasureGraph#width_for_height.[i].mincxx . . $ _Size#min., i, self->width_for_heightcxx . . $ _GtkInspectorMeasureGraph#width_for_height.[i].natcxx . . $ _Size#nat. - self->width_for_heightcxx . . $ _GtkInspectorMeasureGraph#width_for_height.[i].mincxx . . $ _Size#min., 1); |
| 103 | cairo_fillcxx . . $ cairo_fill(21788b7825b29bf). (cr); |
| 104 | |
| 105 | cairo_set_operatorcxx . . $ cairo_set_operator(25547dbf60e71973). (cr, CAIRO_OPERATOR_OVERcxx . . $ CAIRO_OPERATOR_OVER.); |
| 106 | cairo_set_source_rgbacxx . . $ cairo_set_source_rgba(1653902e9f448da4). (cr, 0, 0, 0, 1); |
| 107 | cairo_rectanglecxx . . $ cairo_rectangle(1653902e9f448da4). (cr, self->widthcxx . . $ _GtkInspectorMeasureGraph#width..natcxx . . $ _Size#nat., 0, 1, height); |
| 108 | cairo_rectanglecxx . . $ cairo_rectangle(1653902e9f448da4). (cr, 0, self->heightcxx . . $ _GtkInspectorMeasureGraph#height..natcxx . . $ _Size#nat., width, 1); |
| 109 | cairo_fillcxx . . $ cairo_fill(21788b7825b29bf). (cr); |
| 110 | |
| 111 | cairo_destroycxx . . $ cairo_destroy(21788b7825b29bf). (cr); |
| 112 | self->texturecxx . . $ _GtkInspectorMeasureGraph#texture. = GDK_PAINTABLEcxx . . $ GDK_PAINTABLE(2d62fee13419e51d). (gdk_texture_new_for_surfacecxx . . $ gdk_texture_new_for_surface(ed75b3e7d56d1b86). (surface)); |
| 113 | cairo_surface_destroycxx . . $ cairo_surface_destroy(2fa2b40fabeeffa2). (surface); |
| 114 | } |
| 115 | |
| 116 | static void |
| 117 | gtk_inspector_measure_graph_paintable_snapshotcxx . . $ gtk_inspector_measure_graph_paintable_snapshot(59826c9f4416dc8a). (GdkPaintablecxx . . $ GdkPaintable# *paintable, |
| 118 | GdkSnapshotcxx . . $ GdkSnapshot# *snapshot, |
| 119 | double width, |
| 120 | double height) |
| 121 | { |
| 122 | GtkInspectorMeasureGraphcxx . . $ GtkInspectorMeasureGraph# *self = GTK_INSPECTOR_MEASURE_GRAPHcxx . . $ GTK_INSPECTOR_MEASURE_GRAPH(ff3a9138a870deae). (paintable); |
| 123 | |
| 124 | gtk_inspector_measure_graph_ensure_texturecxx . . $ gtk_inspector_measure_graph_ensure_texture(f56c760c764093df). (self); |
| 125 | |
| 126 | if (self->texturecxx . . $ _GtkInspectorMeasureGraph#texture. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 127 | return; |
| 128 | |
| 129 | gdk_paintable_snapshotcxx . . $ gdk_paintable_snapshot(59826c9f4416dc8a). (self->texturecxx . . $ _GtkInspectorMeasureGraph#texture., snapshot, width, height); |
| 130 | } |
| 131 | |
| 132 | static int |
| 133 | gtk_inspector_measure_graph_paintable_get_intrinsic_widthcxx . . $ gtk_inspector_measure_graph_paintable_get_intrinsic_width(f3fbaf4b8d531752). (GdkPaintablecxx . . $ GdkPaintable# *paintable) |
| 134 | { |
| 135 | GtkInspectorMeasureGraphcxx . . $ GtkInspectorMeasureGraph# *self = GTK_INSPECTOR_MEASURE_GRAPHcxx . . $ GTK_INSPECTOR_MEASURE_GRAPH(ff3a9138a870deae). (paintable); |
| 136 | |
| 137 | gtk_inspector_measure_graph_ensure_texturecxx . . $ gtk_inspector_measure_graph_ensure_texture(f56c760c764093df). (self); |
| 138 | |
| 139 | return gdk_paintable_get_intrinsic_widthcxx . . $ gdk_paintable_get_intrinsic_width(f3fbaf4b8d531752). (self->texturecxx . . $ _GtkInspectorMeasureGraph#texture.); |
| 140 | } |
| 141 | |
| 142 | static int |
| 143 | gtk_inspector_measure_graph_paintable_get_intrinsic_heightcxx . . $ gtk_inspector_measure_graph_paintable_get_intrinsic_height(f3fbaf4b8d531752). (GdkPaintablecxx . . $ GdkPaintable# *paintable) |
| 144 | { |
| 145 | GtkInspectorMeasureGraphcxx . . $ GtkInspectorMeasureGraph# *self = GTK_INSPECTOR_MEASURE_GRAPHcxx . . $ GTK_INSPECTOR_MEASURE_GRAPH(ff3a9138a870deae). (paintable); |
| 146 | |
| 147 | gtk_inspector_measure_graph_ensure_texturecxx . . $ gtk_inspector_measure_graph_ensure_texture(f56c760c764093df). (self); |
| 148 | |
| 149 | return gdk_paintable_get_intrinsic_heightcxx . . $ gdk_paintable_get_intrinsic_height(f3fbaf4b8d531752). (self->texturecxx . . $ _GtkInspectorMeasureGraph#texture.); |
| 150 | } |
| 151 | |
| 152 | static double |
| 153 | gtk_inspector_measure_graph_paintable_get_intrinsic_aspect_ratiocxx . . $ gtk_inspector_measure_graph_paintable_get_intrinsic_aspect_ratio(4e59f922ddb2c865). (GdkPaintablecxx . . $ GdkPaintable# *paintable) |
| 154 | { |
| 155 | GtkInspectorMeasureGraphcxx . . $ GtkInspectorMeasureGraph# *self = GTK_INSPECTOR_MEASURE_GRAPHcxx . . $ GTK_INSPECTOR_MEASURE_GRAPH(ff3a9138a870deae). (paintable); |
| 156 | |
| 157 | gtk_inspector_measure_graph_ensure_texturecxx . . $ gtk_inspector_measure_graph_ensure_texture(f56c760c764093df). (self); |
| 158 | |
| 159 | return gdk_paintable_get_intrinsic_aspect_ratiocxx . . $ gdk_paintable_get_intrinsic_aspect_ratio(4e59f922ddb2c865). (self->texturecxx . . $ _GtkInspectorMeasureGraph#texture.); |
| 160 | } |
| 161 | |
| 162 | static void |
| 163 | gtk_inspector_measure_graph_paintable_initcxx . . $ gtk_inspector_measure_graph_paintable_init(5a1c2be6845fa09d). (GdkPaintableInterfacecxx . . $ GdkPaintableInterface# *iface) |
| 164 | { |
| 165 | iface->snapshotcxx . . $ _GdkPaintableInterface#snapshot. = gtk_inspector_measure_graph_paintable_snapshotcxx . . $ gtk_inspector_measure_graph_paintable_snapshot(59826c9f4416dc8a).; |
| 166 | iface->get_intrinsic_widthcxx . . $ _GdkPaintableInterface#get_intrinsic_width. = gtk_inspector_measure_graph_paintable_get_intrinsic_widthcxx . . $ gtk_inspector_measure_graph_paintable_get_intrinsic_width(f3fbaf4b8d531752).; |
| 167 | iface->get_intrinsic_heightcxx . . $ _GdkPaintableInterface#get_intrinsic_height. = gtk_inspector_measure_graph_paintable_get_intrinsic_heightcxx . . $ gtk_inspector_measure_graph_paintable_get_intrinsic_height(f3fbaf4b8d531752).; |
| 168 | iface->get_intrinsic_aspect_ratiocxx . . $ _GdkPaintableInterface#get_intrinsic_aspect_ratio. = gtk_inspector_measure_graph_paintable_get_intrinsic_aspect_ratiocxx . . $ gtk_inspector_measure_graph_paintable_get_intrinsic_aspect_ratio(4e59f922ddb2c865).; |
| 169 | } |
| 170 | |
| 171 | G_DEFINE_TYPE_EXTENDEDcxx . . $ `<external>/9567554376676449156/gtype.h:2053:9`! (GtkInspectorMeasureGraph, gtk_inspector_measure_graph, G_TYPE_OBJECTcxx . . $ `<external>/9567554376676449156/gtype.h:189:9`!, 0, |
| 172 | G_IMPLEMENT_INTERFACEcxx . . $ `<external>/9567554376676449156/gtype.h:2115:9`! (GDK_TYPE_PAINTABLEcxx . . $ `gdk/gdkpaintable.h:30:9`!, |
| 173 | gtk_inspector_measure_graph_paintable_init)) |
| 174 | |
| 175 | static void |
| 176 | gtk_inspector_measure_graph_disposecxx . . $ gtk_inspector_measure_graph_dispose(6087475fa43034d3). (GObjectcxx . . $ GObject# *object) |
| 177 | { |
| 178 | GtkInspectorMeasureGraphcxx . . $ GtkInspectorMeasureGraph# *self = GTK_INSPECTOR_MEASURE_GRAPHcxx . . $ GTK_INSPECTOR_MEASURE_GRAPH(ff3a9138a870deae). (object); |
| 179 | |
| 180 | g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&self->texture); |
| 181 | |
| 182 | G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (gtk_inspector_measure_graph_parent_class)->disposecxx . . $ _GObjectClass#dispose. (object); |
| 183 | } |
| 184 | |
| 185 | static void |
| 186 | gtk_inspector_measure_graph_class_initcxx . . $ gtk_inspector_measure_graph_class_init(d4f78e427c3fad74). (GtkInspectorMeasureGraphClasscxx . . $ GtkInspectorMeasureGraphClass# *klass) |
| 187 | { |
| 188 | GObjectClasscxx . . $ GObjectClass# *gobject_class = G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (klass); |
| 189 | |
| 190 | gobject_class->disposecxx . . $ _GObjectClass#dispose. = gtk_inspector_measure_graph_disposecxx . . $ gtk_inspector_measure_graph_dispose(6087475fa43034d3).; |
| 191 | } |
| 192 | |
| 193 | static void |
| 194 | gtk_inspector_measure_graph_initcxx . . $ gtk_inspector_measure_graph_init(f56c760c764093df). (GtkInspectorMeasureGraphcxx . . $ GtkInspectorMeasureGraph# *self) |
| 195 | { |
| 196 | } |
| 197 | |
| 198 | GtkInspectorMeasureGraphcxx . . $ GtkInspectorMeasureGraph# * |
| 199 | gtk_inspector_measure_graph_newcxx . . $ gtk_inspector_measure_graph_new(7f4379bd103b43e6). (void) |
| 200 | { |
| 201 | return g_object_newcxx . . $ g_object_new(8485fe61b4be4c78). (GTK_TYPE_INSPECTOR_MEASURE_GRAPHcxx . . $ `gtk/inspector/measuregraph.h:26:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 202 | } |
| 203 | |
| 204 | void |
| 205 | gtk_inspector_measure_graph_clearcxx . . $ gtk_inspector_measure_graph_clear(f56c760c764093df). (GtkInspectorMeasureGraphcxx . . $ GtkInspectorMeasureGraph# *self) |
| 206 | { |
| 207 | g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&self->texture); |
| 208 | |
| 209 | memsetcxx . . $ memset(d1de1e4fb215f1c6). (&self->widthcxx . . $ _GtkInspectorMeasureGraph#width., 0, sizeof (self->widthcxx . . $ _GtkInspectorMeasureGraph#width.)); |
| 210 | memsetcxx . . $ memset(d1de1e4fb215f1c6). (&self->heightcxx . . $ _GtkInspectorMeasureGraph#height., 0, sizeof (self->heightcxx . . $ _GtkInspectorMeasureGraph#height.)); |
| 211 | memsetcxx . . $ memset(d1de1e4fb215f1c6). (&self->width_for_heightcxx . . $ _GtkInspectorMeasureGraph#width_for_height., 0, sizeof (self->width_for_heightcxx . . $ _GtkInspectorMeasureGraph#width_for_height.)); |
| 212 | memsetcxx . . $ memset(d1de1e4fb215f1c6). (&self->height_for_widthcxx . . $ _GtkInspectorMeasureGraph#height_for_width., 0, sizeof (self->height_for_widthcxx . . $ _GtkInspectorMeasureGraph#height_for_width.)); |
| 213 | |
| 214 | gdk_paintable_invalidate_sizecxx . . $ gdk_paintable_invalidate_size(93f0edbab9ad2850). (GDK_PAINTABLEcxx . . $ GDK_PAINTABLE(2d62fee13419e51d). (self)); |
| 215 | gdk_paintable_invalidate_contentscxx . . $ gdk_paintable_invalidate_contents(93f0edbab9ad2850). (GDK_PAINTABLEcxx . . $ GDK_PAINTABLE(2d62fee13419e51d). (self)); |
| 216 | } |
| 217 | |
| 218 | void |
| 219 | gtk_inspector_measure_graph_measurecxx . . $ gtk_inspector_measure_graph_measure(5f88ec5fd5ff7f51). (GtkInspectorMeasureGraphcxx . . $ GtkInspectorMeasureGraph# *self, |
| 220 | GtkWidgetcxx . . $ GtkWidget# *widget) |
| 221 | { |
| 222 | int i; |
| 223 | |
| 224 | g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&self->texture); |
| 225 | |
| 226 | gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (widget, GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL., -1, &self->widthcxx . . $ _GtkInspectorMeasureGraph#width..mincxx . . $ _Size#min., &self->widthcxx . . $ _GtkInspectorMeasureGraph#width..natcxx . . $ _Size#nat., 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`!); |
| 227 | gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (widget, GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL., -1 ,&self->heightcxx . . $ _GtkInspectorMeasureGraph#height..mincxx . . $ _Size#min., &self->heightcxx . . $ _GtkInspectorMeasureGraph#height..natcxx . . $ _Size#nat., 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`!); |
| 228 | |
| 229 | memsetcxx . . $ memset(d1de1e4fb215f1c6). (&self->width_for_heightcxx . . $ _GtkInspectorMeasureGraph#width_for_height., 0, sizeof (Sizecxx . . $ Size#) * MINcxx . . $ `<external>/12741050725406041920/gmacros.h:978:9`! (self->height.min, MAX_SIZEScxx . . $ `gtk/inspector/measuregraph.c:27:9`!)); |
| 230 | for (i = self->heightcxx . . $ _GtkInspectorMeasureGraph#height..mincxx . . $ _Size#min.; i < MAX_SIZEScxx . . $ `gtk/inspector/measuregraph.c:27:9`!; i++) |
| 231 | gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (widget, GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL., i, &self->width_for_heightcxx . . $ _GtkInspectorMeasureGraph#width_for_height.[i].mincxx . . $ _Size#min., &self->width_for_heightcxx . . $ _GtkInspectorMeasureGraph#width_for_height.[i].natcxx . . $ _Size#nat., 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 | memsetcxx . . $ memset(d1de1e4fb215f1c6). (&self->height_for_widthcxx . . $ _GtkInspectorMeasureGraph#height_for_width., 0, sizeof (Sizecxx . . $ Size#) * MINcxx . . $ `<external>/12741050725406041920/gmacros.h:978:9`! (self->width.min, MAX_SIZEScxx . . $ `gtk/inspector/measuregraph.c:27:9`!)); |
| 233 | for (i = self->widthcxx . . $ _GtkInspectorMeasureGraph#width..mincxx . . $ _Size#min.; i < MAX_SIZEScxx . . $ `gtk/inspector/measuregraph.c:27:9`!; i++) |
| 234 | gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (widget, GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL., i, &self->height_for_widthcxx . . $ _GtkInspectorMeasureGraph#height_for_width.[i].mincxx . . $ _Size#min., &self->height_for_widthcxx . . $ _GtkInspectorMeasureGraph#height_for_width.[i].natcxx . . $ _Size#nat., 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`!); |
| 235 | |
| 236 | gdk_paintable_invalidate_sizecxx . . $ gdk_paintable_invalidate_size(93f0edbab9ad2850). (GDK_PAINTABLEcxx . . $ GDK_PAINTABLE(2d62fee13419e51d). (self)); |
| 237 | gdk_paintable_invalidate_contentscxx . . $ gdk_paintable_invalidate_contents(93f0edbab9ad2850). (GDK_PAINTABLEcxx . . $ GDK_PAINTABLE(2d62fee13419e51d). (self)); |
| 238 | } |
| 239 | |
| 240 | GdkTexturecxx . . $ GdkTexture# * |
| 241 | gtk_inspector_measure_graph_get_texturecxx . . $ gtk_inspector_measure_graph_get_texture(8efe2a4c9b1e9cf). (GtkInspectorMeasureGraphcxx . . $ GtkInspectorMeasureGraph# *self) |
| 242 | { |
| 243 | gtk_inspector_measure_graph_ensure_texturecxx . . $ gtk_inspector_measure_graph_ensure_texture(f56c760c764093df). (self); |
| 244 | |
| 245 | if (!GDK_IS_TEXTUREcxx . . $ `gdk/gdktexture.h:33:9`! (self->texture)) |
| 246 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 247 | |
| 248 | return GDK_TEXTUREcxx . . $ `gdk/gdktexture.h:32:9`! (self->texture); |
| 249 | } |
| 250 |