Debian Codegraph @

gtk/deprecated/gtkcellview.c

raw symbols SCIP
1 /* gtkellview.c
2 * Copyright (C) 2002, 2003 Kristian Rietveld <[email protected]>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library 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 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #include "config.h"cxx . . $ `<file>/build/config.h`/
19
20 #include "gtkcellview.h"cxx . . $ `<file>/gtk/deprecated/gtkcellview.h`/
21
22 #include "gtkbuildable.h"cxx . . $ `<file>/gtk/gtkbuildable.h`/
23 #include "gtkcelllayout.h"cxx . . $ `<file>/gtk/deprecated/gtkcelllayout.h`/
24 #include "gtkcellareabox.h"cxx . . $ `<file>/gtk/deprecated/gtkcellareabox.h`/
25 #include "gtkcellrendererpixbuf.h"cxx . . $ `<file>/gtk/deprecated/gtkcellrendererpixbuf.h`/
26 #include "gtkcellrenderertext.h"cxx . . $ `<file>/gtk/deprecated/gtkcellrenderertext.h`/
27 #include "gtkorientable.h"cxx . . $ `<file>/gtk/gtkorientable.h`/
28 #include "gtkprivate.h"cxx . . $ `<file>/gtk/gtkprivate.h`/
29 #include "gtkwidgetprivate.h"cxx . . $ `<file>/gtk/gtkwidgetprivate.h`/
30
31 #include <gobject/gmarshal.h>
32
33 #include <string.h>
34
35 G_GNUC_BEGIN_IGNORE_DEPRECATIONScxx . . $ `<external>/12741050725406041920/gmacros.h:771:9`!
36
37 /**
38 * GtkCellView:
39 *
40 * A widget displaying a single row of a GtkTreeModel
41 *
42 * A `GtkCellView` displays a single row of a `GtkTreeModel` using a `GtkCellArea`
43 * and `GtkCellAreaContext`. A `GtkCellAreaContext` can be provided to the
44 * `GtkCellView` at construction time in order to keep the cellview in context
45 * of a group of cell views, this ensures that the renderers displayed will
46 * be properly aligned with each other (like the aligned cells in the menus
47 * of `GtkComboBox`).
48 *
49 * `GtkCellView` is `GtkOrientable` in order to decide in which orientation
50 * the underlying `GtkCellAreaContext` should be allocated. Taking the `GtkComboBox`
51 * menu as an example, cellviews should be oriented horizontally if the menus are
52 * listed top-to-bottom and thus all share the same width but may have separate
53 * individual heights (left-to-right menus should be allocated vertically since
54 * they all share the same height but may have variable widths).
55 *
56 * ## CSS nodes
57 *
58 * GtkCellView has a single CSS node with name cellview.
59 *
60 * Deprecated: 4.10: List views use widgets to display their contents.
61 * You can use [[email protected]] instead
62 */
63
64 static void gtk_cell_view_constructedcxx . . $ gtk_cell_view_constructed(6087475fa43034d3). (GObjectcxx . . $ GObject# *object);
65 static void gtk_cell_view_get_propertycxx . . $ gtk_cell_view_get_property(cee2c52f22407c66). (GObjectcxx . . $ GObject# *object,
66 guintcxx . . $ guint# param_id,
67 GValuecxx . . $ GValue# *value,
68 GParamSpeccxx . . $ GParamSpec# *pspec);
69 static void gtk_cell_view_set_propertycxx . . $ gtk_cell_view_set_property(d7c4bb29f36c0dc4). (GObjectcxx . . $ GObject# *object,
70 guintcxx . . $ guint# param_id,
71 const GValuecxx . . $ GValue# *value,
72 GParamSpeccxx . . $ GParamSpec# *pspec);
73 static void gtk_cell_view_finalizecxx . . $ gtk_cell_view_finalize(6087475fa43034d3). (GObjectcxx . . $ GObject# *object);
74 static void gtk_cell_view_disposecxx . . $ gtk_cell_view_dispose(6087475fa43034d3). (GObjectcxx . . $ GObject# *object);
75 static void gtk_cell_view_size_allocatecxx . . $ gtk_cell_view_size_allocate(598a503332136822). (GtkWidgetcxx . . $ GtkWidget# *widget,
76 int width,
77 int height,
78 int baseline);
79 static void gtk_cell_view_snapshotcxx . . $ gtk_cell_view_snapshot(80012d1141bb3efa). (GtkWidgetcxx . . $ GtkWidget# *widget,
80 GtkSnapshotcxx . . $ GtkSnapshot# *snapshot);
81 static void gtk_cell_view_set_valuecxx . . $ gtk_cell_view_set_value(3ce3c6c86d2c4826). (GtkCellViewcxx . . $ GtkCellView# *cell_view,
82 GtkCellRenderercxx . . $ GtkCellRenderer# *renderer,
83 const char *property,
84 GValuecxx . . $ GValue# *value);
85 static void gtk_cell_view_set_cell_datacxx . . $ gtk_cell_view_set_cell_data(b1d8b17d87744cd9). (GtkCellViewcxx . . $ GtkCellView# *cell_view);
86
87 /* celllayout */
88 static void gtk_cell_view_cell_layout_initcxx . . $ gtk_cell_view_cell_layout_init(3a88b9cf12221ae9). (GtkCellLayoutIfacecxx . . $ GtkCellLayoutIface# *iface);
89 static GtkCellAreacxx . . $ GtkCellArea# *gtk_cell_view_cell_layout_get_areacxx . . $ gtk_cell_view_cell_layout_get_area(ebae739605725821). (GtkCellLayoutcxx . . $ GtkCellLayout# *layout);
90
91
92 /* buildable */
93 static void gtk_cell_view_buildable_initcxx . . $ gtk_cell_view_buildable_init(c5db55232772c4cd). (GtkBuildableIfacecxx . . $ GtkBuildableIface# *iface);
94 static gbooleancxx . . $ gboolean# gtk_cell_view_buildable_custom_tag_startcxx . . $ gtk_cell_view_buildable_custom_tag_start(b259140ba88dbccf). (GtkBuildablecxx . . $ GtkBuildable# *buildable,
95 GtkBuildercxx . . $ GtkBuilder# *builder,
96 GObjectcxx . . $ GObject# *child,
97 const char *tagname,
98 GtkBuildableParsercxx . . $ GtkBuildableParser# *parser,
99 gpointercxx . . $ gpointer# *data);
100 static void gtk_cell_view_buildable_custom_tag_endcxx . . $ gtk_cell_view_buildable_custom_tag_end(9c109889ce297a82). (GtkBuildablecxx . . $ GtkBuildable# *buildable,
101 GtkBuildercxx . . $ GtkBuilder# *builder,
102 GObjectcxx . . $ GObject# *child,
103 const char *tagname,
104 gpointercxx . . $ gpointer# data);
105
106 static GtkSizeRequestModecxx . . $ GtkSizeRequestMode# gtk_cell_view_get_request_modecxx . . $ gtk_cell_view_get_request_mode(2c9e09fe52fe0412). (GtkWidgetcxx . . $ GtkWidget# *widget);
107 static void gtk_cell_view_measurecxx . . $ gtk_cell_view_measure(d91afbd837fc0c19). (GtkWidgetcxx . . $ GtkWidget# *widget,
108 GtkOrientationcxx . . $ GtkOrientation# orientation,
109 int for_size,
110 int *minimum,
111 int *natural,
112 int *minimum_baseline,
113 int *natural_baseline);
114 static void context_size_changed_cbcxx . . $ context_size_changed_cb(72771334e325400e). (GtkCellAreaContextcxx . . $ GtkCellAreaContext# *context,
115 GParamSpeccxx . . $ GParamSpec# *pspec,
116 GtkWidgetcxx . . $ GtkWidget# *view);
117 static void row_changed_cbcxx . . $ row_changed_cb(74972a7f89c909e0). (GtkTreeModelcxx . . $ GtkTreeModel# *model,
118 GtkTreePathcxx . . $ GtkTreePath# *path,
119 GtkTreeItercxx . . $ GtkTreeIter# *iter,
120 GtkCellViewcxx . . $ GtkCellView# *view);
121
122 typedef struct _GtkCellViewClasscxx . . $ _GtkCellViewClass# GtkCellViewClasscxx . . $ GtkCellViewClass#;
123 typedef struct _GtkCellViewPrivatecxx . . $ _GtkCellViewPrivate# GtkCellViewPrivatecxx . . $ GtkCellViewPrivate#;
124
125 struct _GtkCellViewcxx . . $ _GtkCellView#
126 {
127 GtkWidgetcxx . . $ GtkWidget# parent_instancecxx . . $ _GtkCellView#parent_instance.;
128 };
129
130 struct _GtkCellViewClasscxx . . $ _GtkCellViewClass#
131 {
132 GtkWidgetClasscxx . . $ GtkWidgetClass# parent_classcxx . . $ _GtkCellViewClass#parent_class.;
133 };
134
135 struct _GtkCellViewPrivatecxx . . $ _GtkCellViewPrivate#
136 {
137 GtkTreeModelcxx . . $ GtkTreeModel# *modelcxx . . $ _GtkCellViewPrivate#model.;
138 GtkTreeRowReferencecxx . . $ GtkTreeRowReference# *displayed_rowcxx . . $ _GtkCellViewPrivate#displayed_row.;
139
140 GtkCellAreacxx . . $ GtkCellArea# *areacxx . . $ _GtkCellViewPrivate#area.;
141 GtkCellAreaContextcxx . . $ GtkCellAreaContext# *contextcxx . . $ _GtkCellViewPrivate#context.;
142
143 gulongcxx . . $ gulong# size_changed_idcxx . . $ _GtkCellViewPrivate#size_changed_id.;
144 gulongcxx . . $ gulong# row_changed_idcxx . . $ _GtkCellViewPrivate#row_changed_id.;
145
146 GtkOrientationcxx . . $ GtkOrientation# orientationcxx . . $ _GtkCellViewPrivate#orientation.;
147
148 guintcxx . . $ guint# draw_sensitivecxx . . $ _GtkCellViewPrivate#draw_sensitive. : 1;
149 guintcxx . . $ guint# fit_modelcxx . . $ _GtkCellViewPrivate#fit_model. : 1;
150 };
151
152 static GtkBuildableIfacecxx . . $ GtkBuildableIface# *parent_buildable_ifacecxx . . $ parent_buildable_iface.;
153
154 enumcxx . . $ $anonymous_type_a5af545ce9688578_0#
155 {
156 PROP_0cxx . . $ PROP_0.,
157 PROP_ORIENTATIONcxx . . $ PROP_ORIENTATION.,
158 PROP_MODELcxx . . $ PROP_MODEL.,
159 PROP_CELL_AREAcxx . . $ PROP_CELL_AREA.,
160 PROP_CELL_AREA_CONTEXTcxx . . $ PROP_CELL_AREA_CONTEXT.,
161 PROP_DRAW_SENSITIVEcxx . . $ PROP_DRAW_SENSITIVE.,
162 PROP_FIT_MODELcxx . . $ PROP_FIT_MODEL.
163 };
164
165 G_DEFINE_TYPE_WITH_CODEcxx . . $ `<external>/9567554376676449156/gtype.h:1850:9`! (GtkCellView, gtk_cell_view, GTK_TYPE_WIDGETcxx . . $ `gtk/gtkwidget.h:43:9`!,
166 G_ADD_PRIVATEcxx . . $ `<external>/9567554376676449156/gtype.h:2194:9`! (GtkCellView)
167 G_IMPLEMENT_INTERFACEcxx . . $ `<external>/9567554376676449156/gtype.h:2115:9`! (GTK_TYPE_CELL_LAYOUTcxx . . $ `gtk/deprecated/gtkcelllayout.h:31:9`!,
168 gtk_cell_view_cell_layout_init)
169 G_IMPLEMENT_INTERFACEcxx . . $ `<external>/9567554376676449156/gtype.h:2115:9`! (GTK_TYPE_BUILDABLEcxx . . $ `gtk/gtkbuildable.h:29:9`!,
170 gtk_cell_view_buildable_init)
171 G_IMPLEMENT_INTERFACEcxx . . $ `<external>/9567554376676449156/gtype.h:2115:9`! (GTK_TYPE_ORIENTABLEcxx . . $ `gtk/gtkorientable.h:32:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!))
172
173 static void
174 gtk_cell_view_class_initcxx . . $ gtk_cell_view_class_init(e26a24322726d1e7). (GtkCellViewClasscxx . . $ GtkCellViewClass# *klass)
175 {
176 GObjectClasscxx . . $ GObjectClass# *gobject_class = G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (klass);
177 GtkWidgetClasscxx . . $ GtkWidgetClass# *widget_class = GTK_WIDGET_CLASScxx . . $ `gtk/gtkwidget.h:45:9`! (klass);
178
179 gobject_class->constructedcxx . . $ _GObjectClass#constructed. = gtk_cell_view_constructedcxx . . $ gtk_cell_view_constructed(6087475fa43034d3).;
180 gobject_class->get_propertycxx . . $ _GObjectClass#get_property. = gtk_cell_view_get_propertycxx . . $ gtk_cell_view_get_property(cee2c52f22407c66).;
181 gobject_class->set_propertycxx . . $ _GObjectClass#set_property. = gtk_cell_view_set_propertycxx . . $ gtk_cell_view_set_property(d7c4bb29f36c0dc4).;
182 gobject_class->finalizecxx . . $ _GObjectClass#finalize. = gtk_cell_view_finalizecxx . . $ gtk_cell_view_finalize(6087475fa43034d3).;
183 gobject_class->disposecxx . . $ _GObjectClass#dispose. = gtk_cell_view_disposecxx . . $ gtk_cell_view_dispose(6087475fa43034d3).;
184
185 widget_class->snapshotcxx . . $ _GtkWidgetClass#snapshot. = gtk_cell_view_snapshotcxx . . $ gtk_cell_view_snapshot(80012d1141bb3efa).;
186 widget_class->size_allocatecxx . . $ _GtkWidgetClass#size_allocate. = gtk_cell_view_size_allocatecxx . . $ gtk_cell_view_size_allocate(598a503332136822).;
187 widget_class->get_request_modecxx . . $ _GtkWidgetClass#get_request_mode. = gtk_cell_view_get_request_modecxx . . $ gtk_cell_view_get_request_mode(2c9e09fe52fe0412).;
188 widget_class->measurecxx . . $ _GtkWidgetClass#measure. = gtk_cell_view_measurecxx . . $ gtk_cell_view_measure(d91afbd837fc0c19).;
189
190 /* properties */
191 g_object_class_override_propertycxx . . $ g_object_class_override_property(3aa56717d1bf1f20). (gobject_class, PROP_ORIENTATIONcxx . . $ PROP_ORIENTATION., "orientation");
192
193 /**
194 * GtkCellView:model:
195 *
196 * The model for cell view
197 *
198 * since 2.10
199 */
200 g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (gobject_class,
201 PROP_MODELcxx . . $ PROP_MODEL.,
202 g_param_spec_objectcxx . . $ g_param_spec_object(faf99966f027a127). ("model", 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`!,
203 GTK_TYPE_TREE_MODELcxx . . $ `gtk/deprecated/gtktreemodel.h:29:9`!,
204 GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!));
205
206
207 /**
208 * GtkCellView:cell-area:
209 *
210 * The `GtkCellArea` rendering cells
211 *
212 * If no area is specified when creating the cell view with gtk_cell_view_new_with_context()
213 * a horizontally oriented `GtkCellArea`Box will be used.
214 *
215 * since 3.0
216 */
217 g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (gobject_class,
218 PROP_CELL_AREAcxx . . $ PROP_CELL_AREA.,
219 g_param_spec_objectcxx . . $ g_param_spec_object(faf99966f027a127). ("cell-area", 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`!,
220 GTK_TYPE_CELL_AREAcxx . . $ `gtk/deprecated/gtkcellarea.h:34:9`!,
221 GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`! | G_PARAM_CONSTRUCT_ONLYcxx . . $ G_PARAM_CONSTRUCT_ONLY.));
222
223 /**
224 * GtkCellView:cell-area-context:
225 *
226 * The `GtkCellAreaContext` used to compute the geometry of the cell view.
227 *
228 * A group of cell views can be assigned the same context in order to
229 * ensure the sizes and cell alignments match across all the views with
230 * the same context.
231 *
232 * `GtkComboBox` menus uses this to assign the same context to all cell views
233 * in the menu items for a single menu (each submenu creates its own
234 * context since the size of each submenu does not depend on parent
235 * or sibling menus).
236 *
237 * since 3.0
238 */
239 g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (gobject_class,
240 PROP_CELL_AREA_CONTEXTcxx . . $ PROP_CELL_AREA_CONTEXT.,
241 g_param_spec_objectcxx . . $ g_param_spec_object(faf99966f027a127). ("cell-area-context", 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`!,
242 GTK_TYPE_CELL_AREA_CONTEXTcxx . . $ `gtk/deprecated/gtkcellareacontext.h:32:9`!,
243 GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`! | G_PARAM_CONSTRUCT_ONLYcxx . . $ G_PARAM_CONSTRUCT_ONLY.));
244
245 /**
246 * GtkCellView:draw-sensitive:
247 *
248 * Whether all cells should be draw as sensitive for this view regardless
249 * of the actual cell properties (used to make menus with submenus appear
250 * sensitive when the items in submenus might be insensitive).
251 *
252 * since 3.0
253 */
254 g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (gobject_class,
255 PROP_DRAW_SENSITIVEcxx . . $ PROP_DRAW_SENSITIVE.,
256 g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("draw-sensitive", 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`!,
257 FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!,
258 GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!|G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.));
259
260 /**
261 * GtkCellView:fit-model:
262 *
263 * Whether the view should request enough space to always fit
264 * the size of every row in the model (used by the combo box to
265 * ensure the combo box size doesn't change when different items
266 * are selected).
267 *
268 * since 3.0
269 */
270 g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (gobject_class,
271 PROP_FIT_MODELcxx . . $ PROP_FIT_MODEL.,
272 g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("fit-model", 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`!,
273 FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!,
274 GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!|G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.));
275
276 gtk_widget_class_set_css_namecxx . . $ gtk_widget_class_set_css_name(6333614c746ab65a). (widget_class, I_cxx . . $ `gdk/gdkprivate.h:35:9`!("cellview"));
277 }
278
279 static void
280 gtk_cell_view_buildable_add_childcxx . . $ gtk_cell_view_buildable_add_child(784606fbae7a2cc). (GtkBuildablecxx . . $ GtkBuildable# *buildable,
281 GtkBuildercxx . . $ GtkBuilder# *builder,
282 GObjectcxx . . $ GObject# *child,
283 const char *type)
284 {
285 if (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (child))
286 _gtk_cell_layout_buildable_add_childcxx . . $ _gtk_cell_layout_buildable_add_child(784606fbae7a2cc). (buildable, builder, child, type);
287 else
288 parent_buildable_ifacecxx . . $ parent_buildable_iface.->add_childcxx . . $ _GtkBuildableIface#add_child. (buildable, builder, child, type);
289 }
290
291 static void
292 gtk_cell_view_buildable_initcxx . . $ gtk_cell_view_buildable_init(c5db55232772c4cd). (GtkBuildableIfacecxx . . $ GtkBuildableIface# *iface)
293 {
294 parent_buildable_ifacecxx . . $ parent_buildable_iface. = g_type_interface_peek_parentcxx . . $ g_type_interface_peek_parent(9f162e79bfc6c74). (iface);
295 iface->add_childcxx . . $ _GtkBuildableIface#add_child. = gtk_cell_view_buildable_add_childcxx . . $ gtk_cell_view_buildable_add_child(784606fbae7a2cc).;
296 iface->custom_tag_startcxx . . $ _GtkBuildableIface#custom_tag_start. = gtk_cell_view_buildable_custom_tag_startcxx . . $ gtk_cell_view_buildable_custom_tag_start(b259140ba88dbccf).;
297 iface->custom_tag_endcxx . . $ _GtkBuildableIface#custom_tag_end. = gtk_cell_view_buildable_custom_tag_endcxx . . $ gtk_cell_view_buildable_custom_tag_end(9c109889ce297a82).;
298 }
299
300 static void
301 gtk_cell_view_cell_layout_initcxx . . $ gtk_cell_view_cell_layout_init(3a88b9cf12221ae9). (GtkCellLayoutIfacecxx . . $ GtkCellLayoutIface# *iface)
302 {
303 iface->get_areacxx . . $ _GtkCellLayoutIface#get_area. = gtk_cell_view_cell_layout_get_areacxx . . $ gtk_cell_view_cell_layout_get_area(ebae739605725821).;
304 }
305
306 static void
307 gtk_cell_view_constructedcxx . . $ gtk_cell_view_constructed(6087475fa43034d3). (GObjectcxx . . $ GObject# *object)
308 {
309 GtkCellViewcxx . . $ GtkCellView# *view = GTK_CELL_VIEWcxx . . $ `gtk/deprecated/gtkcellview.h:33:9`! (object);
310 GtkCellViewPrivatecxx . . $ GtkCellViewPrivate# *priv = gtk_cell_view_get_instance_privatecxx . . $ gtk_cell_view_get_instance_private(b1bcbe0db82f30a8). (view);
311
312 G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (gtk_cell_view_parent_class)->constructedcxx . . $ _GObjectClass#constructed. (object);
313
314 if (!priv->areacxx . . $ _GtkCellViewPrivate#area.)
315 {
316 priv->areacxx . . $ _GtkCellViewPrivate#area. = gtk_cell_area_box_newcxx . . $ gtk_cell_area_box_new(d65243b0d02dc229). ();
317 g_object_ref_sinkcxx . . $ `<external>/1341695927569185362/gobject.h:534:9`! (priv->area);
318 }
319
320 if (!priv->contextcxx . . $ _GtkCellViewPrivate#context.)
321 priv->contextcxx . . $ _GtkCellViewPrivate#context. = gtk_cell_area_create_contextcxx . . $ gtk_cell_area_create_context(92ee481af9bcb8f9). (priv->areacxx . . $ _GtkCellViewPrivate#area.);
322
323 priv->size_changed_idcxx . . $ _GtkCellViewPrivate#size_changed_id. =
324 g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (priv->context, "notify",
325 G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (context_size_changed_cb), view);
326 }
327
328 static void
329 gtk_cell_view_get_propertycxx . . $ gtk_cell_view_get_property(cee2c52f22407c66). (GObjectcxx . . $ GObject# *object,
330 guintcxx . . $ guint# param_id,
331 GValuecxx . . $ GValue# *value,
332 GParamSpeccxx . . $ GParamSpec# *pspec)
333 {
334 GtkCellViewcxx . . $ GtkCellView# *view = GTK_CELL_VIEWcxx . . $ `gtk/deprecated/gtkcellview.h:33:9`! (object);
335 GtkCellViewPrivatecxx . . $ GtkCellViewPrivate# *priv = gtk_cell_view_get_instance_privatecxx . . $ gtk_cell_view_get_instance_private(b1bcbe0db82f30a8). (view);
336
337 switch (param_id)
338 {
339 case PROP_ORIENTATIONcxx . . $ PROP_ORIENTATION.:
340 g_value_set_enumcxx . . $ g_value_set_enum(b698c61e8e30c4ea). (value, priv->orientationcxx . . $ _GtkCellViewPrivate#orientation.);
341 break;
342 case PROP_MODELcxx . . $ PROP_MODEL.:
343 g_value_set_objectcxx . . $ g_value_set_object(e945b84c1e9702f). (value, priv->modelcxx . . $ _GtkCellViewPrivate#model.);
344 break;
345 case PROP_CELL_AREAcxx . . $ PROP_CELL_AREA.:
346 g_value_set_objectcxx . . $ g_value_set_object(e945b84c1e9702f). (value, priv->areacxx . . $ _GtkCellViewPrivate#area.);
347 break;
348 case PROP_CELL_AREA_CONTEXTcxx . . $ PROP_CELL_AREA_CONTEXT.:
349 g_value_set_objectcxx . . $ g_value_set_object(e945b84c1e9702f). (value, priv->contextcxx . . $ _GtkCellViewPrivate#context.);
350 break;
351 case PROP_DRAW_SENSITIVEcxx . . $ PROP_DRAW_SENSITIVE.:
352 g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, priv->draw_sensitivecxx . . $ _GtkCellViewPrivate#draw_sensitive.);
353 break;
354 case PROP_FIT_MODELcxx . . $ PROP_FIT_MODEL.:
355 g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, priv->fit_modelcxx . . $ _GtkCellViewPrivate#fit_model.);
356 break;
357 default:
358 G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (object, param_id, pspec);
359 break;
360 }
361 }
362
363 static void
364 gtk_cell_view_set_propertycxx . . $ gtk_cell_view_set_property(d7c4bb29f36c0dc4). (GObjectcxx . . $ GObject# *object,
365 guintcxx . . $ guint# param_id,
366 const GValuecxx . . $ GValue# *value,
367 GParamSpeccxx . . $ GParamSpec# *pspec)
368 {
369 GtkCellViewcxx . . $ GtkCellView# *view = GTK_CELL_VIEWcxx . . $ `gtk/deprecated/gtkcellview.h:33:9`! (object);
370 GtkCellViewPrivatecxx . . $ GtkCellViewPrivate# *priv = gtk_cell_view_get_instance_privatecxx . . $ gtk_cell_view_get_instance_private(b1bcbe0db82f30a8). (view);
371 GtkCellAreacxx . . $ GtkCellArea# *area;
372 GtkCellAreaContextcxx . . $ GtkCellAreaContext# *context;
373
374 switch (param_id)
375 {
376 case PROP_ORIENTATIONcxx . . $ PROP_ORIENTATION.:
377 if (priv->orientationcxx . . $ _GtkCellViewPrivate#orientation. != g_value_get_enumcxx . . $ g_value_get_enum(f890c5c75ead5b21). (value))
378 {
379 priv->orientationcxx . . $ _GtkCellViewPrivate#orientation. = g_value_get_enumcxx . . $ g_value_get_enum(f890c5c75ead5b21). (value);
380 if (priv->contextcxx . . $ _GtkCellViewPrivate#context.)
381 gtk_cell_area_context_resetcxx . . $ gtk_cell_area_context_reset(a095ca1bfd237dd1). (priv->contextcxx . . $ _GtkCellViewPrivate#context.);
382 gtk_widget_update_orientationcxx . . $ gtk_widget_update_orientation(478f3fd33c1887f0). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (object), priv->orientationcxx . . $ _GtkCellViewPrivate#orientation.);
383 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (object, pspec);
384 }
385 break;
386 case PROP_MODELcxx . . $ PROP_MODEL.:
387 gtk_cell_view_set_modelcxx . . $ gtk_cell_view_set_model(e4d6fd094c1371c3). (view, g_value_get_objectcxx . . $ g_value_get_object(e12dff36056c2cce). (value));
388 break;
389 case PROP_CELL_AREAcxx . . $ PROP_CELL_AREA.:
390 /* Construct-only, can only be assigned once */
391 area = g_value_get_objectcxx . . $ g_value_get_object(e12dff36056c2cce). (value);
392
393 if (area)
394 {
395 if (priv->areacxx . . $ _GtkCellViewPrivate#area. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
396 {
397 g_warningcxx . . $ `<external>/5169755362661750954/gmessages.h:340:9`! ("cell-area has already been set, ignoring construct property");
398 g_object_ref_sinkcxx . . $ `<external>/1341695927569185362/gobject.h:534:9`! (area);
399 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (area);
400 }
401 else
402 priv->areacxx . . $ _GtkCellViewPrivate#area. = g_object_ref_sinkcxx . . $ `<external>/1341695927569185362/gobject.h:534:9`! (area);
403 }
404 break;
405 case PROP_CELL_AREA_CONTEXTcxx . . $ PROP_CELL_AREA_CONTEXT.:
406 /* Construct-only, can only be assigned once */
407 context = g_value_get_objectcxx . . $ g_value_get_object(e12dff36056c2cce). (value);
408
409 if (context)
410 {
411 if (priv->contextcxx . . $ _GtkCellViewPrivate#context. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
412 {
413 g_warningcxx . . $ `<external>/5169755362661750954/gmessages.h:340:9`! ("cell-area-context has already been set, ignoring construct property");
414 g_object_ref_sinkcxx . . $ `<external>/1341695927569185362/gobject.h:534:9`! (context);
415 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (context);
416 }
417 else
418 priv->contextcxx . . $ _GtkCellViewPrivate#context. = g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (context);
419 }
420 break;
421
422 case PROP_DRAW_SENSITIVEcxx . . $ PROP_DRAW_SENSITIVE.:
423 gtk_cell_view_set_draw_sensitivecxx . . $ gtk_cell_view_set_draw_sensitive(c609165eed5d36a6). (view, g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value));
424 break;
425
426 case PROP_FIT_MODELcxx . . $ PROP_FIT_MODEL.:
427 gtk_cell_view_set_fit_modelcxx . . $ gtk_cell_view_set_fit_model(c609165eed5d36a6). (view, g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value));
428 break;
429
430 default:
431 G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (object, param_id, pspec);
432 break;
433 }
434 }
435
436 static void
437 gtk_cell_view_initcxx . . $ gtk_cell_view_init(b1d8b17d87744cd9). (GtkCellViewcxx . . $ GtkCellView# *cellview)
438 {
439 GtkCellViewPrivatecxx . . $ GtkCellViewPrivate# *priv = gtk_cell_view_get_instance_privatecxx . . $ gtk_cell_view_get_instance_private(b1bcbe0db82f30a8). (cellview);
440
441 priv->orientationcxx . . $ _GtkCellViewPrivate#orientation. = GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL.;
442 }
443
444 static void
445 gtk_cell_view_finalizecxx . . $ gtk_cell_view_finalize(6087475fa43034d3). (GObjectcxx . . $ GObject# *object)
446 {
447 GtkCellViewcxx . . $ GtkCellView# *cellview = GTK_CELL_VIEWcxx . . $ `gtk/deprecated/gtkcellview.h:33:9`! (object);
448 GtkCellViewPrivatecxx . . $ GtkCellViewPrivate# *priv = gtk_cell_view_get_instance_privatecxx . . $ gtk_cell_view_get_instance_private(b1bcbe0db82f30a8). (cellview);
449
450 if (priv->displayed_rowcxx . . $ _GtkCellViewPrivate#displayed_row.)
451 gtk_tree_row_reference_freecxx . . $ gtk_tree_row_reference_free(df57db39485b52d1). (priv->displayed_rowcxx . . $ _GtkCellViewPrivate#displayed_row.);
452
453 G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (gtk_cell_view_parent_class)->finalizecxx . . $ _GObjectClass#finalize. (object);
454 }
455
456 static void
457 gtk_cell_view_disposecxx . . $ gtk_cell_view_dispose(6087475fa43034d3). (GObjectcxx . . $ GObject# *object)
458 {
459 GtkCellViewcxx . . $ GtkCellView# *cellview = GTK_CELL_VIEWcxx . . $ `gtk/deprecated/gtkcellview.h:33:9`! (object);
460 GtkCellViewPrivatecxx . . $ GtkCellViewPrivate# *priv = gtk_cell_view_get_instance_privatecxx . . $ gtk_cell_view_get_instance_private(b1bcbe0db82f30a8). (cellview);
461
462 gtk_cell_view_set_modelcxx . . $ gtk_cell_view_set_model(e4d6fd094c1371c3). (cellview, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
463
464 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&priv->area);
465
466 if (priv->contextcxx . . $ _GtkCellViewPrivate#context.)
467 {
468 g_signal_handler_disconnectcxx . . $ g_signal_handler_disconnect(5500c4293b1bbef0). (priv->contextcxx . . $ _GtkCellViewPrivate#context., priv->size_changed_idcxx . . $ _GtkCellViewPrivate#size_changed_id.);
469
470 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (priv->contextcxx . . $ _GtkCellViewPrivate#context.);
471 priv->contextcxx . . $ _GtkCellViewPrivate#context. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
472 priv->size_changed_idcxx . . $ _GtkCellViewPrivate#size_changed_id. = 0;
473 }
474
475 G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (gtk_cell_view_parent_class)->disposecxx . . $ _GObjectClass#dispose. (object);
476 }
477
478 static void
479 gtk_cell_view_size_allocatecxx . . $ gtk_cell_view_size_allocate(598a503332136822). (GtkWidgetcxx . . $ GtkWidget# *widget,
480 int width,
481 int height,
482 int baseline)
483 {
484 GtkCellViewcxx . . $ GtkCellView# *cellview = GTK_CELL_VIEWcxx . . $ `gtk/deprecated/gtkcellview.h:33:9`! (widget);
485 GtkCellViewPrivatecxx . . $ GtkCellViewPrivate# *priv = gtk_cell_view_get_instance_privatecxx . . $ gtk_cell_view_get_instance_private(b1bcbe0db82f30a8). (cellview);
486 int alloc_width, alloc_height;
487
488 gtk_cell_area_context_get_allocationcxx . . $ gtk_cell_area_context_get_allocation(98b36ba418147ea4). (priv->contextcxx . . $ _GtkCellViewPrivate#context., &alloc_width, &alloc_height);
489
490 /* The first cell view in context is responsible for allocating the context at
491 * allocate time (or the cellview has its own context and is not grouped with
492 * any other cell views)
493 *
494 * If the cellview is in "fit model" mode, we assume it's not in context and
495 * needs to allocate every time.
496 */
497 if (priv->fit_modelcxx . . $ _GtkCellViewPrivate#fit_model.)
498 gtk_cell_area_context_allocatecxx . . $ gtk_cell_area_context_allocate(4c7e8652ea9b380b). (priv->contextcxx . . $ _GtkCellViewPrivate#context., width, height);
499 else if (alloc_width != width && priv->orientationcxx . . $ _GtkCellViewPrivate#orientation. == GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL.)
500 gtk_cell_area_context_allocatecxx . . $ gtk_cell_area_context_allocate(4c7e8652ea9b380b). (priv->contextcxx . . $ _GtkCellViewPrivate#context., width, -1);
501 else if (alloc_height != height && priv->orientationcxx . . $ _GtkCellViewPrivate#orientation. == GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL.)
502 gtk_cell_area_context_allocatecxx . . $ gtk_cell_area_context_allocate(4c7e8652ea9b380b). (priv->contextcxx . . $ _GtkCellViewPrivate#context., -1, height);
503 }
504
505 static void
506 gtk_cell_view_request_modelcxx . . $ gtk_cell_view_request_model(ea446f2b64784541). (GtkCellViewcxx . . $ GtkCellView# *cellview,
507 GtkTreeItercxx . . $ GtkTreeIter# *parent,
508 GtkOrientationcxx . . $ GtkOrientation# orientation,
509 int for_size,
510 int *minimum_size,
511 int *natural_size)
512 {
513 GtkCellViewPrivatecxx . . $ GtkCellViewPrivate# *priv = gtk_cell_view_get_instance_privatecxx . . $ gtk_cell_view_get_instance_private(b1bcbe0db82f30a8). (cellview);
514 GtkTreeItercxx . . $ GtkTreeIter# iter;
515 gbooleancxx . . $ gboolean# valid;
516
517 if (!priv->modelcxx . . $ _GtkCellViewPrivate#model.)
518 return;
519
520 valid = gtk_tree_model_iter_childrencxx . . $ gtk_tree_model_iter_children(43d60be46c2fbc9c). (priv->modelcxx . . $ _GtkCellViewPrivate#model., &iter, parent);
521 while (valid)
522 {
523 int min, nat;
524
525 gtk_cell_area_apply_attributescxx . . $ gtk_cell_area_apply_attributes(fb89dbf1294435c8). (priv->areacxx . . $ _GtkCellViewPrivate#area., priv->modelcxx . . $ _GtkCellViewPrivate#model., &iter, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
526
527 if (orientation == GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL.)
528 {
529 if (for_size < 0)
530 gtk_cell_area_get_preferred_widthcxx . . $ gtk_cell_area_get_preferred_width(9ecd47f8f40961e3). (priv->areacxx . . $ _GtkCellViewPrivate#area., priv->contextcxx . . $ _GtkCellViewPrivate#context.,
531 GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (cellview), &min, &nat);
532 else
533 gtk_cell_area_get_preferred_width_for_heightcxx . . $ gtk_cell_area_get_preferred_width_for_height(638a783f87d2328b). (priv->areacxx . . $ _GtkCellViewPrivate#area., priv->contextcxx . . $ _GtkCellViewPrivate#context.,
534 GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (cellview), for_size, &min, &nat);
535 }
536 else
537 {
538 if (for_size < 0)
539 gtk_cell_area_get_preferred_heightcxx . . $ gtk_cell_area_get_preferred_height(9ecd47f8f40961e3). (priv->areacxx . . $ _GtkCellViewPrivate#area., priv->contextcxx . . $ _GtkCellViewPrivate#context.,
540 GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (cellview), &min, &nat);
541 else
542 gtk_cell_area_get_preferred_height_for_widthcxx . . $ gtk_cell_area_get_preferred_height_for_width(638a783f87d2328b). (priv->areacxx . . $ _GtkCellViewPrivate#area., priv->contextcxx . . $ _GtkCellViewPrivate#context.,
543 GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (cellview), for_size, &min, &nat);
544 }
545
546 *minimum_size = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (min, *minimum_size);
547 *natural_size = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (nat, *natural_size);
548
549 /* Recurse into children when they exist */
550 gtk_cell_view_request_modelcxx . . $ gtk_cell_view_request_model(ea446f2b64784541). (cellview, &iter, orientation, for_size, minimum_size, natural_size);
551
552 valid = gtk_tree_model_iter_nextcxx . . $ gtk_tree_model_iter_next(f5bae890eedecc7d). (priv->modelcxx . . $ _GtkCellViewPrivate#model., &iter);
553 }
554 }
555
556 static GtkSizeRequestModecxx . . $ GtkSizeRequestMode#
557 gtk_cell_view_get_request_modecxx . . $ gtk_cell_view_get_request_mode(2c9e09fe52fe0412). (GtkWidgetcxx . . $ GtkWidget# *widget)
558 {
559 GtkCellViewcxx . . $ GtkCellView# *cellview = GTK_CELL_VIEWcxx . . $ `gtk/deprecated/gtkcellview.h:33:9`! (widget);
560 GtkCellViewPrivatecxx . . $ GtkCellViewPrivate# *priv = gtk_cell_view_get_instance_privatecxx . . $ gtk_cell_view_get_instance_private(b1bcbe0db82f30a8). (cellview);
561
562 return gtk_cell_area_get_request_modecxx . . $ gtk_cell_area_get_request_mode(126cd7190d933da0). (priv->areacxx . . $ _GtkCellViewPrivate#area.);
563 }
564
565 static void
566 gtk_cell_view_measurecxx . . $ gtk_cell_view_measure(d91afbd837fc0c19). (GtkWidgetcxx . . $ GtkWidget# *widget,
567 GtkOrientationcxx . . $ GtkOrientation# orientation,
568 int for_size,
569 int *minimum,
570 int *natural,
571 int *minimum_baseline,
572 int *natural_baseline)
573 {
574 GtkCellViewcxx . . $ GtkCellView# *cellview = GTK_CELL_VIEWcxx . . $ `gtk/deprecated/gtkcellview.h:33:9`! (widget);
575 GtkCellViewPrivatecxx . . $ GtkCellViewPrivate# *priv = gtk_cell_view_get_instance_privatecxx . . $ gtk_cell_view_get_instance_private(b1bcbe0db82f30a8). (cellview);
576
577 g_signal_handler_blockcxx . . $ g_signal_handler_block(5500c4293b1bbef0). (priv->contextcxx . . $ _GtkCellViewPrivate#context., priv->size_changed_idcxx . . $ _GtkCellViewPrivate#size_changed_id.);
578
579 if (orientation == GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL. && for_size == -1)
580 {
581 if (priv->fit_modelcxx . . $ _GtkCellViewPrivate#fit_model.)
582 {
583 int min = 0, nat = 0;
584 gtk_cell_view_request_modelcxx . . $ gtk_cell_view_request_model(ea446f2b64784541). (cellview, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL., -1, &min, &nat);
585 }
586 else
587 {
588 if (priv->displayed_rowcxx . . $ _GtkCellViewPrivate#displayed_row.)
589 gtk_cell_view_set_cell_datacxx . . $ gtk_cell_view_set_cell_data(b1d8b17d87744cd9). (cellview);
590
591 gtk_cell_area_get_preferred_widthcxx . . $ gtk_cell_area_get_preferred_width(9ecd47f8f40961e3). (priv->areacxx . . $ _GtkCellViewPrivate#area., priv->contextcxx . . $ _GtkCellViewPrivate#context., widget, 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`!);
592 }
593
594 gtk_cell_area_context_get_preferred_widthcxx . . $ gtk_cell_area_context_get_preferred_width(98b36ba418147ea4). (priv->contextcxx . . $ _GtkCellViewPrivate#context., minimum, natural);
595 }
596 else if (orientation == GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL. && for_size == -1)
597 {
598 if (priv->fit_modelcxx . . $ _GtkCellViewPrivate#fit_model.)
599 {
600 int min = 0, nat = 0;
601 gtk_cell_view_request_modelcxx . . $ gtk_cell_view_request_model(ea446f2b64784541). (cellview, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL., -1, &min, &nat);
602 }
603 else
604 {
605 if (priv->displayed_rowcxx . . $ _GtkCellViewPrivate#displayed_row.)
606 gtk_cell_view_set_cell_datacxx . . $ gtk_cell_view_set_cell_data(b1d8b17d87744cd9). (cellview);
607
608 gtk_cell_area_get_preferred_heightcxx . . $ gtk_cell_area_get_preferred_height(9ecd47f8f40961e3). (priv->areacxx . . $ _GtkCellViewPrivate#area., priv->contextcxx . . $ _GtkCellViewPrivate#context., widget, 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`!);
609 }
610
611 gtk_cell_area_context_get_preferred_heightcxx . . $ gtk_cell_area_context_get_preferred_height(98b36ba418147ea4). (priv->contextcxx . . $ _GtkCellViewPrivate#context., minimum, natural);
612 }
613 else if (orientation == GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL. && for_size >= 0)
614 {
615 if (priv->fit_modelcxx . . $ _GtkCellViewPrivate#fit_model.)
616 {
617 int min = 0, nat = 0;
618 gtk_cell_view_request_modelcxx . . $ gtk_cell_view_request_model(ea446f2b64784541). (cellview, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL., for_size, &min, &nat);
619
620 *minimum = min;
621 *natural = nat;
622 }
623 else
624 {
625 if (priv->displayed_rowcxx . . $ _GtkCellViewPrivate#displayed_row.)
626 gtk_cell_view_set_cell_datacxx . . $ gtk_cell_view_set_cell_data(b1d8b17d87744cd9). (cellview);
627
628 gtk_cell_area_get_preferred_width_for_heightcxx . . $ gtk_cell_area_get_preferred_width_for_height(638a783f87d2328b). (priv->areacxx . . $ _GtkCellViewPrivate#area., priv->contextcxx . . $ _GtkCellViewPrivate#context., widget,
629 for_size, minimum, natural);
630 }
631 }
632 else
633 {
634 if (priv->fit_modelcxx . . $ _GtkCellViewPrivate#fit_model.)
635 {
636 int min = 0, nat = 0;
637 gtk_cell_view_request_modelcxx . . $ gtk_cell_view_request_model(ea446f2b64784541). (cellview, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL., for_size, &min, &nat);
638
639 *minimum = min;
640 *natural = nat;
641 }
642 else
643 {
644 if (priv->displayed_rowcxx . . $ _GtkCellViewPrivate#displayed_row.)
645 gtk_cell_view_set_cell_datacxx . . $ gtk_cell_view_set_cell_data(b1d8b17d87744cd9). (cellview);
646
647 gtk_cell_area_get_preferred_height_for_widthcxx . . $ gtk_cell_area_get_preferred_height_for_width(638a783f87d2328b). (priv->areacxx . . $ _GtkCellViewPrivate#area., priv->contextcxx . . $ _GtkCellViewPrivate#context., widget,
648 for_size, minimum, natural);
649 }
650 }
651
652 g_signal_handler_unblockcxx . . $ g_signal_handler_unblock(5500c4293b1bbef0). (priv->contextcxx . . $ _GtkCellViewPrivate#context., priv->size_changed_idcxx . . $ _GtkCellViewPrivate#size_changed_id.);
653 }
654
655 static void
656 gtk_cell_view_snapshotcxx . . $ gtk_cell_view_snapshot(80012d1141bb3efa). (GtkWidgetcxx . . $ GtkWidget# *widget,
657 GtkSnapshotcxx . . $ GtkSnapshot# *snapshot)
658 {
659 GtkCellViewcxx . . $ GtkCellView# *cellview = GTK_CELL_VIEWcxx . . $ `gtk/deprecated/gtkcellview.h:33:9`! (widget);
660 GtkCellViewPrivatecxx . . $ GtkCellViewPrivate# *priv = gtk_cell_view_get_instance_privatecxx . . $ gtk_cell_view_get_instance_private(b1bcbe0db82f30a8). (cellview);
661 GdkRectanglecxx . . $ GdkRectangle# area;
662 GtkCellRendererStatecxx . . $ GtkCellRendererState# state;
663
664 /* render cells */
665 area.xcxx . . $ _cairo_rectangle_int#x. = 0;
666 area.ycxx . . $ _cairo_rectangle_int#y. = 0;
667 area.widthcxx . . $ _cairo_rectangle_int#width. = gtk_widget_get_widthcxx . . $ gtk_widget_get_width(9247ef2dc26c5426). (widget);
668 area.heightcxx . . $ _cairo_rectangle_int#height. = gtk_widget_get_heightcxx . . $ gtk_widget_get_height(9247ef2dc26c5426). (widget);
669
670 /* set cell data (if available) */
671 if (priv->displayed_rowcxx . . $ _GtkCellViewPrivate#displayed_row.)
672 gtk_cell_view_set_cell_datacxx . . $ gtk_cell_view_set_cell_data(b1d8b17d87744cd9). (cellview);
673 else if (priv->modelcxx . . $ _GtkCellViewPrivate#model.)
674 return;
675
676 if (gtk_widget_get_state_flagscxx . . $ gtk_widget_get_state_flags(d8976ba950f6e7f). (widget) & GTK_STATE_FLAG_PRELIGHTcxx . . $ GTK_STATE_FLAG_PRELIGHT.)
677 state = GTK_CELL_RENDERER_PRELITcxx . . $ GTK_CELL_RENDERER_PRELIT.;
678 else
679 state = 0;
680
681 /* Render the cells */
682 gtk_cell_area_snapshotcxx . . $ gtk_cell_area_snapshot(c3daefb4b820967). (priv->areacxx . . $ _GtkCellViewPrivate#area., priv->contextcxx . . $ _GtkCellViewPrivate#context.,
683 widget, snapshot, &area, &area, state, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
684
685
686 }
687
688 static void
689 gtk_cell_view_set_cell_datacxx . . $ gtk_cell_view_set_cell_data(b1d8b17d87744cd9). (GtkCellViewcxx . . $ GtkCellView# *cell_view)
690 {
691 GtkCellViewPrivatecxx . . $ GtkCellViewPrivate# *priv = gtk_cell_view_get_instance_privatecxx . . $ gtk_cell_view_get_instance_private(b1bcbe0db82f30a8). (cell_view);
692 GtkTreeItercxx . . $ GtkTreeIter# iter;
693 GtkTreePathcxx . . $ GtkTreePath# *path;
694
695 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (priv->displayed_row != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
696
697 path = gtk_tree_row_reference_get_pathcxx . . $ gtk_tree_row_reference_get_path(756803876896ce43). (priv->displayed_rowcxx . . $ _GtkCellViewPrivate#displayed_row.);
698 if (!path)
699 return;
700
701 gtk_tree_model_get_itercxx . . $ gtk_tree_model_get_iter(793f68f41810f057). (priv->modelcxx . . $ _GtkCellViewPrivate#model., &iter, path);
702 gtk_tree_path_freecxx . . $ gtk_tree_path_free(ddbfee6baabe5bde). (path);
703
704 gtk_cell_area_apply_attributescxx . . $ gtk_cell_area_apply_attributes(fb89dbf1294435c8). (priv->areacxx . . $ _GtkCellViewPrivate#area.,
705 priv->modelcxx . . $ _GtkCellViewPrivate#model.,
706 &iter, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
707
708 if (priv->draw_sensitivecxx . . $ _GtkCellViewPrivate#draw_sensitive.)
709 {
710 GListcxx . . $ GList# *l, *cells =
711 gtk_cell_layout_get_cellscxx . . $ gtk_cell_layout_get_cells(e11d4f66befd1efd). (GTK_CELL_LAYOUTcxx . . $ `gtk/deprecated/gtkcelllayout.h:32:9`! (priv->area));
712
713 for (l = cells; l; l = l->nextcxx . . $ _GList#next.)
714 {
715 GObjectcxx . . $ GObject# *renderer = l->datacxx . . $ _GList#data.;
716
717 g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d). (renderer, "sensitive", TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
718 }
719 g_list_freecxx . . $ g_list_free(d1b6ff1ff9a6d4b6). (cells);
720 }
721 }
722
723 /* GtkCellLayout implementation */
724 static GtkCellAreacxx . . $ GtkCellArea# *
725 gtk_cell_view_cell_layout_get_areacxx . . $ gtk_cell_view_cell_layout_get_area(ebae739605725821). (GtkCellLayoutcxx . . $ GtkCellLayout# *layout)
726 {
727 GtkCellViewcxx . . $ GtkCellView# *cellview = GTK_CELL_VIEWcxx . . $ `gtk/deprecated/gtkcellview.h:33:9`! (layout);
728 GtkCellViewPrivatecxx . . $ GtkCellViewPrivate# *priv = gtk_cell_view_get_instance_privatecxx . . $ gtk_cell_view_get_instance_private(b1bcbe0db82f30a8). (cellview);
729
730 if (G_UNLIKELYcxx . . $ `<external>/12741050725406041920/gmacros.h:1285:9`! (!priv->area))
731 {
732 priv->areacxx . . $ _GtkCellViewPrivate#area. = gtk_cell_area_box_newcxx . . $ gtk_cell_area_box_new(d65243b0d02dc229). ();
733 g_object_ref_sinkcxx . . $ `<external>/1341695927569185362/gobject.h:534:9`! (priv->area);
734 }
735
736 return priv->areacxx . . $ _GtkCellViewPrivate#area.;
737 }
738
739 /* GtkBuildable implementation */
740 static gbooleancxx . . $ gboolean#
741 gtk_cell_view_buildable_custom_tag_startcxx . . $ gtk_cell_view_buildable_custom_tag_start(b259140ba88dbccf). (GtkBuildablecxx . . $ GtkBuildable# *buildable,
742 GtkBuildercxx . . $ GtkBuilder# *builder,
743 GObjectcxx . . $ GObject# *child,
744 const char *tagname,
745 GtkBuildableParsercxx . . $ GtkBuildableParser# *parser,
746 gpointercxx . . $ gpointer# *data)
747 {
748 if (parent_buildable_ifacecxx . . $ parent_buildable_iface.->custom_tag_startcxx . . $ _GtkBuildableIface#custom_tag_start. &&
749 parent_buildable_ifacecxx . . $ parent_buildable_iface.->custom_tag_startcxx . . $ _GtkBuildableIface#custom_tag_start. (buildable, builder, child,
750 tagname, parser, data))
751 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
752
753 return _gtk_cell_layout_buildable_custom_tag_startcxx . . $ _gtk_cell_layout_buildable_custom_tag_start(b259140ba88dbccf). (buildable, builder, child,
754 tagname, parser, data);
755 }
756
757 static void
758 gtk_cell_view_buildable_custom_tag_endcxx . . $ gtk_cell_view_buildable_custom_tag_end(9c109889ce297a82). (GtkBuildablecxx . . $ GtkBuildable# *buildable,
759 GtkBuildercxx . . $ GtkBuilder# *builder,
760 GObjectcxx . . $ GObject# *child,
761 const char *tagname,
762 gpointercxx . . $ gpointer# data)
763 {
764 if (_gtk_cell_layout_buildable_custom_tag_endcxx . . $ _gtk_cell_layout_buildable_custom_tag_end(87b05294aa5e1ec4). (buildable, builder, child, tagname,
765 data))
766 return;
767 else if (parent_buildable_ifacecxx . . $ parent_buildable_iface.->custom_tag_endcxx . . $ _GtkBuildableIface#custom_tag_end.)
768 parent_buildable_ifacecxx . . $ parent_buildable_iface.->custom_tag_endcxx . . $ _GtkBuildableIface#custom_tag_end. (buildable, builder, child, tagname,
769 data);
770 }
771
772 static void
773 context_size_changed_cbcxx . . $ context_size_changed_cb(72771334e325400e). (GtkCellAreaContextcxx . . $ GtkCellAreaContext# *context,
774 GParamSpeccxx . . $ GParamSpec# *pspec,
775 GtkWidgetcxx . . $ GtkWidget# *view)
776 {
777 if (!strcmpcxx . . $ strcmp(5ae29d726ae57f88). (pspec->namecxx . . $ _GParamSpec#name., "minimum-width") ||
778 !strcmpcxx . . $ strcmp(5ae29d726ae57f88). (pspec->namecxx . . $ _GParamSpec#name., "natural-width") ||
779 !strcmpcxx . . $ strcmp(5ae29d726ae57f88). (pspec->namecxx . . $ _GParamSpec#name., "minimum-height") ||
780 !strcmpcxx . . $ strcmp(5ae29d726ae57f88). (pspec->namecxx . . $ _GParamSpec#name., "natural-height"))
781 gtk_widget_queue_resizecxx . . $ gtk_widget_queue_resize(d7cf858254b37903). (view);
782 }
783
784 static void
785 row_changed_cbcxx . . $ row_changed_cb(74972a7f89c909e0). (GtkTreeModelcxx . . $ GtkTreeModel# *model,
786 GtkTreePathcxx . . $ GtkTreePath# *path,
787 GtkTreeItercxx . . $ GtkTreeIter# *iter,
788 GtkCellViewcxx . . $ GtkCellView# *view)
789 {
790 GtkCellViewPrivatecxx . . $ GtkCellViewPrivate# *priv = gtk_cell_view_get_instance_privatecxx . . $ gtk_cell_view_get_instance_private(b1bcbe0db82f30a8). (view);
791 GtkTreePathcxx . . $ GtkTreePath# *row_path;
792
793 if (priv->displayed_rowcxx . . $ _GtkCellViewPrivate#displayed_row.)
794 {
795 row_path = gtk_tree_row_reference_get_pathcxx . . $ gtk_tree_row_reference_get_path(756803876896ce43). (priv->displayed_rowcxx . . $ _GtkCellViewPrivate#displayed_row.);
796
797 if (row_path)
798 {
799 /* Resize everything in our context if our row changed */
800 if (gtk_tree_path_comparecxx . . $ gtk_tree_path_compare(72e8ff3d39f40a48). (row_path, path) == 0)
801 gtk_cell_area_context_resetcxx . . $ gtk_cell_area_context_reset(a095ca1bfd237dd1). (priv->contextcxx . . $ _GtkCellViewPrivate#context.);
802
803 gtk_tree_path_freecxx . . $ gtk_tree_path_free(ddbfee6baabe5bde). (row_path);
804 }
805 }
806 }
807
808 /**
809 * gtk_cell_view_new:
810 *
811 * Creates a new `GtkCellView` widget.
812 *
813 * Returns: A newly created `GtkCellView` widget.
814 *
815 * Deprecated: 4.10
816 */
817 GtkWidgetcxx . . $ GtkWidget# *
818 gtk_cell_view_newcxx . . $ gtk_cell_view_new(2369ce5e9f2c7dfd). (void)
819 {
820 GtkCellViewcxx . . $ GtkCellView# *cellview;
821
822 cellview = g_object_newcxx . . $ g_object_new(8485fe61b4be4c78). (GTK_TYPE_CELL_VIEWcxx . . $ `gtk/deprecated/gtkcellview.h:32:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
823
824 return GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (cellview);
825 }
826
827
828 /**
829 * gtk_cell_view_new_with_context:
830 * @area: the `GtkCellArea` to layout cells
831 * @context: the `GtkCellAreaContext` in which to calculate cell geometry
832 *
833 * Creates a new `GtkCellView` widget with a specific `GtkCellArea`
834 * to layout cells and a specific `GtkCellAreaContext`.
835 *
836 * Specifying the same context for a handful of cells lets
837 * the underlying area synchronize the geometry for those cells,
838 * in this way alignments with cellviews for other rows are
839 * possible.
840 *
841 * Returns: A newly created `GtkCellView` widget.
842 *
843 * Deprecated: 4.10
844 */
845 GtkWidgetcxx . . $ GtkWidget# *
846 gtk_cell_view_new_with_contextcxx . . $ gtk_cell_view_new_with_context(87f3f3240631f942). (GtkCellAreacxx . . $ GtkCellArea# *area,
847 GtkCellAreaContextcxx . . $ GtkCellAreaContext# *context)
848 {
849 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_CELL_AREAcxx . . $ `gtk/deprecated/gtkcellarea.h:37:9`! (area), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
850 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (context == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! || GTK_IS_CELL_AREA_CONTEXTcxx . . $ `gtk/deprecated/gtkcellareacontext.h:35:9`! (context), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
851
852 return (GtkWidgetcxx . . $ GtkWidget# *)g_object_newcxx . . $ g_object_new(8485fe61b4be4c78). (GTK_TYPE_CELL_VIEWcxx . . $ `gtk/deprecated/gtkcellview.h:32:9`!,
853 "cell-area", area,
854 "cell-area-context", context,
855 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
856 }
857
858 /**
859 * gtk_cell_view_new_with_text:
860 * @text: the text to display in the cell view
861 *
862 * Creates a new `GtkCellView` widget, adds a `GtkCellRendererText`
863 * to it, and makes it show @text.
864 *
865 * Returns: A newly created `GtkCellView` widget.
866 *
867 * Deprecated: 4.10
868 */
869 GtkWidgetcxx . . $ GtkWidget# *
870 gtk_cell_view_new_with_textcxx . . $ gtk_cell_view_new_with_text(6d90f3ec8782e10d). (const char *text)
871 {
872 GtkCellViewcxx . . $ GtkCellView# *cellview;
873 GtkCellRenderercxx . . $ GtkCellRenderer# *renderer;
874 GValuecxx . . $ GValue# value = G_VALUE_INITcxx . . $ `<external>/17218264759549183453/gvalue.h:250:9`!;
875
876 cellview = GTK_CELL_VIEWcxx . . $ `gtk/deprecated/gtkcellview.h:33:9`! (gtk_cell_view_new ());
877
878 renderer = gtk_cell_renderer_text_newcxx . . $ gtk_cell_renderer_text_new(6d6b6a1a12ffe86f). ();
879 gtk_cell_layout_pack_startcxx . . $ gtk_cell_layout_pack_start(6bf22d458dd3339a). (GTK_CELL_LAYOUTcxx . . $ `gtk/deprecated/gtkcelllayout.h:32:9`! (cellview),
880 renderer, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
881
882 g_value_initcxx . . $ g_value_init(afc049a76445919c). (&value, G_TYPE_STRINGcxx . . $ `<external>/9567554376676449156/gtype.h:165:9`!);
883 g_value_set_stringcxx . . $ g_value_set_string(65b9ea7708b82b9b). (&value, text);
884 gtk_cell_view_set_valuecxx . . $ gtk_cell_view_set_value(3ce3c6c86d2c4826). (cellview, renderer, "text", &value);
885 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746). (&value);
886
887 return GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (cellview);
888 }
889
890 /**
891 * gtk_cell_view_new_with_markup:
892 * @markup: the text to display in the cell view
893 *
894 * Creates a new `GtkCellView` widget, adds a `GtkCellRendererText`
895 * to it, and makes it show @markup. The text can be marked up with
896 * the [Pango text markup language](https://docs.gtk.org/Pango/pango_markup.html).
897 *
898 * Returns: A newly created `GtkCellView` widget.
899 *
900 * Deprecated: 4.10
901 */
902 GtkWidgetcxx . . $ GtkWidget# *
903 gtk_cell_view_new_with_markupcxx . . $ gtk_cell_view_new_with_markup(6d90f3ec8782e10d). (const char *markup)
904 {
905 GtkCellViewcxx . . $ GtkCellView# *cellview;
906 GtkCellRenderercxx . . $ GtkCellRenderer# *renderer;
907 GValuecxx . . $ GValue# value = G_VALUE_INITcxx . . $ `<external>/17218264759549183453/gvalue.h:250:9`!;
908
909 cellview = GTK_CELL_VIEWcxx . . $ `gtk/deprecated/gtkcellview.h:33:9`! (gtk_cell_view_new ());
910
911 renderer = gtk_cell_renderer_text_newcxx . . $ gtk_cell_renderer_text_new(6d6b6a1a12ffe86f). ();
912 gtk_cell_layout_pack_startcxx . . $ gtk_cell_layout_pack_start(6bf22d458dd3339a). (GTK_CELL_LAYOUTcxx . . $ `gtk/deprecated/gtkcelllayout.h:32:9`! (cellview),
913 renderer, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
914
915 g_value_initcxx . . $ g_value_init(afc049a76445919c). (&value, G_TYPE_STRINGcxx . . $ `<external>/9567554376676449156/gtype.h:165:9`!);
916 g_value_set_stringcxx . . $ g_value_set_string(65b9ea7708b82b9b). (&value, markup);
917 gtk_cell_view_set_valuecxx . . $ gtk_cell_view_set_value(3ce3c6c86d2c4826). (cellview, renderer, "markup", &value);
918 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746). (&value);
919
920 return GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (cellview);
921 }
922
923 /**
924 * gtk_cell_view_new_with_texture:
925 * @texture: the image to display in the cell view
926 *
927 * Creates a new `GtkCellView` widget, adds a `GtkCellRendererPixbuf`
928 * to it, and makes it show @texture.
929 *
930 * Returns: A newly created `GtkCellView` widget.
931 *
932 * Deprecated: 4.10
933 */
934 GtkWidgetcxx . . $ GtkWidget# *
935 gtk_cell_view_new_with_texturecxx . . $ gtk_cell_view_new_with_texture(4d2636889f1935b9). (GdkTexturecxx . . $ GdkTexture# *texture)
936 {
937 GtkCellViewcxx . . $ GtkCellView# *cellview;
938 GtkCellRenderercxx . . $ GtkCellRenderer# *renderer;
939 GValuecxx . . $ GValue# value = G_VALUE_INITcxx . . $ `<external>/17218264759549183453/gvalue.h:250:9`!;
940
941 cellview = GTK_CELL_VIEWcxx . . $ `gtk/deprecated/gtkcellview.h:33:9`! (gtk_cell_view_new ());
942
943 renderer = gtk_cell_renderer_pixbuf_newcxx . . $ gtk_cell_renderer_pixbuf_new(6d6b6a1a12ffe86f). ();
944 gtk_cell_layout_pack_startcxx . . $ gtk_cell_layout_pack_start(6bf22d458dd3339a). (GTK_CELL_LAYOUTcxx . . $ `gtk/deprecated/gtkcelllayout.h:32:9`! (cellview),
945 renderer, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
946
947 g_value_initcxx . . $ g_value_init(afc049a76445919c). (&value, GDK_TYPE_TEXTUREcxx . . $ `gdk/gdktexture.h:30:9`!);
948 g_value_set_objectcxx . . $ g_value_set_object(e945b84c1e9702f). (&value, texture);
949 gtk_cell_view_set_valuecxx . . $ gtk_cell_view_set_value(3ce3c6c86d2c4826). (cellview, renderer, "texture", &value);
950 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746). (&value);
951
952 return GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (cellview);
953 }
954
955 /**
956 * gtk_cell_view_set_value:
957 * @cell_view: a `GtkCellView` widget
958 * @renderer: one of the renderers of @cell_view
959 * @property: the name of the property of @renderer to set
960 * @value: the new value to set the property to
961 *
962 * Sets a property of a cell renderer of @cell_view, and
963 * makes sure the display of @cell_view is updated.
964 *
965 * Deprecated: 4.10
966 */
967 static void
968 gtk_cell_view_set_valuecxx . . $ gtk_cell_view_set_value(3ce3c6c86d2c4826). (GtkCellViewcxx . . $ GtkCellView# *cell_view,
969 GtkCellRenderercxx . . $ GtkCellRenderer# *renderer,
970 const char *property,
971 GValuecxx . . $ GValue# *value)
972 {
973 g_object_set_propertycxx . . $ g_object_set_property(344911f79000259f). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (renderer), property, value);
974
975 /* force resize and redraw */
976 gtk_widget_queue_resizecxx . . $ gtk_widget_queue_resize(d7cf858254b37903). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (cell_view));
977 gtk_widget_queue_drawcxx . . $ gtk_widget_queue_draw(d7cf858254b37903). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (cell_view));
978 }
979
980 /**
981 * gtk_cell_view_set_model:
982 * @cell_view: a `GtkCellView`
983 * @model: (nullable): a `GtkTreeModel`
984 *
985 * Sets the model for @cell_view. If @cell_view already has a model
986 * set, it will remove it before setting the new model. If @model is
987 * %NULL, then it will unset the old model.
988 *
989 * Deprecated: 4.10
990 */
991 void
992 gtk_cell_view_set_modelcxx . . $ gtk_cell_view_set_model(e4d6fd094c1371c3). (GtkCellViewcxx . . $ GtkCellView# *cell_view,
993 GtkTreeModelcxx . . $ GtkTreeModel# *model)
994 {
995 GtkCellViewPrivatecxx . . $ GtkCellViewPrivate# *priv = gtk_cell_view_get_instance_privatecxx . . $ gtk_cell_view_get_instance_private(b1bcbe0db82f30a8). (cell_view);
996
997 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_CELL_VIEWcxx . . $ `gtk/deprecated/gtkcellview.h:34:9`! (cell_view));
998 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (model == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! || GTK_IS_TREE_MODELcxx . . $ `gtk/deprecated/gtktreemodel.h:31:9`! (model));
999
1000 if (priv->modelcxx . . $ _GtkCellViewPrivate#model.)
1001 {
1002 g_signal_handler_disconnectcxx . . $ g_signal_handler_disconnect(5500c4293b1bbef0). (priv->modelcxx . . $ _GtkCellViewPrivate#model., priv->row_changed_idcxx . . $ _GtkCellViewPrivate#row_changed_id.);
1003 priv->row_changed_idcxx . . $ _GtkCellViewPrivate#row_changed_id. = 0;
1004
1005 if (priv->displayed_rowcxx . . $ _GtkCellViewPrivate#displayed_row.)
1006 gtk_tree_row_reference_freecxx . . $ gtk_tree_row_reference_free(df57db39485b52d1). (priv->displayed_rowcxx . . $ _GtkCellViewPrivate#displayed_row.);
1007 priv->displayed_rowcxx . . $ _GtkCellViewPrivate#displayed_row. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1008
1009 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (priv->modelcxx . . $ _GtkCellViewPrivate#model.);
1010 }
1011
1012 priv->modelcxx . . $ _GtkCellViewPrivate#model. = model;
1013
1014 if (priv->modelcxx . . $ _GtkCellViewPrivate#model.)
1015 {
1016 g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (priv->model);
1017
1018 priv->row_changed_idcxx . . $ _GtkCellViewPrivate#row_changed_id. =
1019 g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (priv->model, "row-changed",
1020 G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (row_changed_cb), cell_view);
1021 }
1022 }
1023
1024 /**
1025 * gtk_cell_view_get_model:
1026 * @cell_view: a `GtkCellView`
1027 *
1028 * Returns the model for @cell_view. If no model is used %NULL is
1029 * returned.
1030 *
1031 * Returns: (nullable) (transfer none): a `GtkTreeModel` used
1032 *
1033 * Deprecated: 4.10
1034 */
1035 GtkTreeModelcxx . . $ GtkTreeModel# *
1036 gtk_cell_view_get_modelcxx . . $ gtk_cell_view_get_model(e5d0c45c9d388041). (GtkCellViewcxx . . $ GtkCellView# *cell_view)
1037 {
1038 GtkCellViewPrivatecxx . . $ GtkCellViewPrivate# *priv = gtk_cell_view_get_instance_privatecxx . . $ gtk_cell_view_get_instance_private(b1bcbe0db82f30a8). (cell_view);
1039
1040 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_CELL_VIEWcxx . . $ `gtk/deprecated/gtkcellview.h:34:9`! (cell_view), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1041
1042 return priv->modelcxx . . $ _GtkCellViewPrivate#model.;
1043 }
1044
1045 /**
1046 * gtk_cell_view_set_displayed_row:
1047 * @cell_view: a `GtkCellView`
1048 * @path: (nullable): a `GtkTreePath` or %NULL to unset.
1049 *
1050 * Sets the row of the model that is currently displayed
1051 * by the `GtkCellView`. If the path is unset, then the
1052 * contents of the cellview “stick” at their last value;
1053 * this is not normally a desired result, but may be
1054 * a needed intermediate state if say, the model for
1055 * the `GtkCellView` becomes temporarily empty.
1056 *
1057 * Deprecated: 4.10
1058 **/
1059 void
1060 gtk_cell_view_set_displayed_rowcxx . . $ gtk_cell_view_set_displayed_row(f8faf3a83b3243e). (GtkCellViewcxx . . $ GtkCellView# *cell_view,
1061 GtkTreePathcxx . . $ GtkTreePath# *path)
1062 {
1063 GtkCellViewPrivatecxx . . $ GtkCellViewPrivate# *priv = gtk_cell_view_get_instance_privatecxx . . $ gtk_cell_view_get_instance_private(b1bcbe0db82f30a8). (cell_view);
1064
1065 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_CELL_VIEWcxx . . $ `gtk/deprecated/gtkcellview.h:34:9`! (cell_view));
1066 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_TREE_MODELcxx . . $ `gtk/deprecated/gtktreemodel.h:31:9`! (priv->model));
1067
1068 if (priv->displayed_rowcxx . . $ _GtkCellViewPrivate#displayed_row.)
1069 gtk_tree_row_reference_freecxx . . $ gtk_tree_row_reference_free(df57db39485b52d1). (priv->displayed_rowcxx . . $ _GtkCellViewPrivate#displayed_row.);
1070
1071 if (path)
1072 priv->displayed_rowcxx . . $ _GtkCellViewPrivate#displayed_row. = gtk_tree_row_reference_newcxx . . $ gtk_tree_row_reference_new(a75f4f0bfeb77767). (priv->modelcxx . . $ _GtkCellViewPrivate#model., path);
1073 else
1074 priv->displayed_rowcxx . . $ _GtkCellViewPrivate#displayed_row. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1075
1076 /* force resize and redraw */
1077 gtk_widget_queue_resizecxx . . $ gtk_widget_queue_resize(d7cf858254b37903). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (cell_view));
1078 gtk_widget_queue_drawcxx . . $ gtk_widget_queue_draw(d7cf858254b37903). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (cell_view));
1079 }
1080
1081 /**
1082 * gtk_cell_view_get_displayed_row:
1083 * @cell_view: a `GtkCellView`
1084 *
1085 * Returns a `GtkTreePath` referring to the currently
1086 * displayed row. If no row is currently displayed,
1087 * %NULL is returned.
1088 *
1089 * Returns: (nullable) (transfer full): the currently displayed row
1090 *
1091 * Deprecated: 4.10
1092 */
1093 GtkTreePathcxx . . $ GtkTreePath# *
1094 gtk_cell_view_get_displayed_rowcxx . . $ gtk_cell_view_get_displayed_row(e03c4c9c03df7e74). (GtkCellViewcxx . . $ GtkCellView# *cell_view)
1095 {
1096 GtkCellViewPrivatecxx . . $ GtkCellViewPrivate# *priv = gtk_cell_view_get_instance_privatecxx . . $ gtk_cell_view_get_instance_private(b1bcbe0db82f30a8). (cell_view);
1097
1098 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_CELL_VIEWcxx . . $ `gtk/deprecated/gtkcellview.h:34:9`! (cell_view), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1099
1100 if (!priv->displayed_rowcxx . . $ _GtkCellViewPrivate#displayed_row.)
1101 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1102
1103 return gtk_tree_row_reference_get_pathcxx . . $ gtk_tree_row_reference_get_path(756803876896ce43). (priv->displayed_rowcxx . . $ _GtkCellViewPrivate#displayed_row.);
1104 }
1105
1106 /**
1107 * gtk_cell_view_get_draw_sensitive:
1108 * @cell_view: a `GtkCellView`
1109 *
1110 * Gets whether @cell_view is configured to draw all of its
1111 * cells in a sensitive state.
1112 *
1113 * Returns: whether @cell_view draws all of its
1114 * cells in a sensitive state
1115 *
1116 * Deprecated: 4.10
1117 */
1118 gbooleancxx . . $ gboolean#
1119 gtk_cell_view_get_draw_sensitivecxx . . $ gtk_cell_view_get_draw_sensitive(e872ee2d11356d9c). (GtkCellViewcxx . . $ GtkCellView# *cell_view)
1120 {
1121 GtkCellViewPrivatecxx . . $ GtkCellViewPrivate# *priv = gtk_cell_view_get_instance_privatecxx . . $ gtk_cell_view_get_instance_private(b1bcbe0db82f30a8). (cell_view);
1122
1123 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_CELL_VIEWcxx . . $ `gtk/deprecated/gtkcellview.h:34:9`! (cell_view), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
1124
1125 return priv->draw_sensitivecxx . . $ _GtkCellViewPrivate#draw_sensitive.;
1126 }
1127
1128 /**
1129 * gtk_cell_view_set_draw_sensitive:
1130 * @cell_view: a `GtkCellView`
1131 * @draw_sensitive: whether to draw all cells in a sensitive state.
1132 *
1133 * Sets whether @cell_view should draw all of its
1134 * cells in a sensitive state, this is used by `GtkComboBox` menus
1135 * to ensure that rows with insensitive cells that contain
1136 * children appear sensitive in the parent menu item.
1137 *
1138 * Deprecated: 4.10
1139 */
1140 void
1141 gtk_cell_view_set_draw_sensitivecxx . . $ gtk_cell_view_set_draw_sensitive(c609165eed5d36a6). (GtkCellViewcxx . . $ GtkCellView# *cell_view,
1142 gbooleancxx . . $ gboolean# draw_sensitive)
1143 {
1144 GtkCellViewPrivatecxx . . $ GtkCellViewPrivate# *priv = gtk_cell_view_get_instance_privatecxx . . $ gtk_cell_view_get_instance_private(b1bcbe0db82f30a8). (cell_view);
1145
1146 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_CELL_VIEWcxx . . $ `gtk/deprecated/gtkcellview.h:34:9`! (cell_view));
1147
1148 if (priv->draw_sensitivecxx . . $ _GtkCellViewPrivate#draw_sensitive. != draw_sensitive)
1149 {
1150 priv->draw_sensitivecxx . . $ _GtkCellViewPrivate#draw_sensitive. = draw_sensitive;
1151
1152 g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (cell_view), "draw-sensitive");
1153 }
1154 }
1155
1156 /**
1157 * gtk_cell_view_get_fit_model:
1158 * @cell_view: a `GtkCellView`
1159 *
1160 * Gets whether @cell_view is configured to request space
1161 * to fit the entire `GtkTreeModel`.
1162 *
1163 * Returns: whether @cell_view requests space to fit
1164 * the entire `GtkTreeModel`.
1165 *
1166 * Deprecated: 4.10
1167 */
1168 gbooleancxx . . $ gboolean#
1169 gtk_cell_view_get_fit_modelcxx . . $ gtk_cell_view_get_fit_model(e872ee2d11356d9c). (GtkCellViewcxx . . $ GtkCellView# *cell_view)
1170 {
1171 GtkCellViewPrivatecxx . . $ GtkCellViewPrivate# *priv = gtk_cell_view_get_instance_privatecxx . . $ gtk_cell_view_get_instance_private(b1bcbe0db82f30a8). (cell_view);
1172
1173 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_CELL_VIEWcxx . . $ `gtk/deprecated/gtkcellview.h:34:9`! (cell_view), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
1174
1175 return priv->fit_modelcxx . . $ _GtkCellViewPrivate#fit_model.;
1176 }
1177
1178 /**
1179 * gtk_cell_view_set_fit_model:
1180 * @cell_view: a `GtkCellView`
1181 * @fit_model: whether @cell_view should request space for the whole model.
1182 *
1183 * Sets whether @cell_view should request space to fit the entire `GtkTreeModel`.
1184 *
1185 * This is used by `GtkComboBox` to ensure that the cell view displayed on
1186 * the combo box’s button always gets enough space and does not resize
1187 * when selection changes.
1188 *
1189 * Deprecated: 4.10
1190 */
1191 void
1192 gtk_cell_view_set_fit_modelcxx . . $ gtk_cell_view_set_fit_model(c609165eed5d36a6). (GtkCellViewcxx . . $ GtkCellView# *cell_view,
1193 gbooleancxx . . $ gboolean# fit_model)
1194 {
1195 GtkCellViewPrivatecxx . . $ GtkCellViewPrivate# *priv = gtk_cell_view_get_instance_privatecxx . . $ gtk_cell_view_get_instance_private(b1bcbe0db82f30a8). (cell_view);
1196
1197 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_CELL_VIEWcxx . . $ `gtk/deprecated/gtkcellview.h:34:9`! (cell_view));
1198
1199 if (priv->fit_modelcxx . . $ _GtkCellViewPrivate#fit_model. != fit_model)
1200 {
1201 priv->fit_modelcxx . . $ _GtkCellViewPrivate#fit_model. = fit_model;
1202
1203 gtk_cell_area_context_resetcxx . . $ gtk_cell_area_context_reset(a095ca1bfd237dd1). (priv->contextcxx . . $ _GtkCellViewPrivate#context.);
1204
1205 g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (cell_view), "fit-model");
1206 }
1207 }