| 1 | /* gtkcellrenderer.c |
| 2 | * Copyright (C) 2000 Red Hat, Inc. Jonathan Blandford |
| 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 "gtkcellrenderer.h"cxx . . $ `<file>/gtk/deprecated/gtkcellrenderer.h`/ |
| 21 | |
| 22 | #include "gtkmarshalers.h"cxx . . $ `<file>/build/gtk/gtkmarshalers.h`/ |
| 23 | #include "gtkprivate.h"cxx . . $ `<file>/gtk/gtkprivate.h`/ |
| 24 | #include "gtksnapshot.h"cxx . . $ `<file>/gtk/gtksnapshot.h`/ |
| 25 | #include "gtkstylecontext.h"cxx . . $ `<file>/gtk/deprecated/gtkstylecontext.h`/ |
| 26 | #include "gtktreeprivate.h"cxx . . $ `<file>/gtk/deprecated/gtktreeprivate.h`/ |
| 27 | #include "gtktypebuiltins.h"cxx . . $ `<file>/build/gtk/gtktypebuiltins.h`/ |
| 28 | |
| 29 | G_GNUC_BEGIN_IGNORE_DEPRECATIONScxx . . $ `<external>/12741050725406041920/gmacros.h:771:9`! |
| 30 | |
| 31 | /** |
| 32 | * GtkCellRenderer: |
| 33 | * |
| 34 | * An object for rendering a single cell |
| 35 | * |
| 36 | * The `GtkCellRenderer` is a base class of a set of objects used for |
| 37 | * rendering a cell to a `cairo_t`. These objects are used primarily by |
| 38 | * the `GtkTreeView` widget, though they aren’t tied to them in any |
| 39 | * specific way. It is worth noting that `GtkCellRenderer` is not a |
| 40 | * `GtkWidget` and cannot be treated as such. |
| 41 | * |
| 42 | * The primary use of a `GtkCellRenderer` is for drawing a certain graphical |
| 43 | * elements on a `cairo_t`. Typically, one cell renderer is used to |
| 44 | * draw many cells on the screen. To this extent, it isn’t expected that a |
| 45 | * CellRenderer keep any permanent state around. Instead, any state is set |
| 46 | * just prior to use using `GObject`s property system. Then, the |
| 47 | * cell is measured using gtk_cell_renderer_get_preferred_size(). Finally, the cell |
| 48 | * is rendered in the correct location using gtk_cell_renderer_snapshot(). |
| 49 | * |
| 50 | * There are a number of rules that must be followed when writing a new |
| 51 | * `GtkCellRenderer`. First and foremost, it’s important that a certain set |
| 52 | * of properties will always yield a cell renderer of the same size, |
| 53 | * barring a style change. The `GtkCellRenderer` also has a number of |
| 54 | * generic properties that are expected to be honored by all children. |
| 55 | * |
| 56 | * Beyond merely rendering a cell, cell renderers can optionally |
| 57 | * provide active user interface elements. A cell renderer can be |
| 58 | * “activatable” like `GtkCellRenderer`Toggle, |
| 59 | * which toggles when it gets activated by a mouse click, or it can be |
| 60 | * “editable” like `GtkCellRenderer`Text, which |
| 61 | * allows the user to edit the text using a widget implementing the |
| 62 | * `GtkCellEditable` interface, e.g. `GtkEntry`. |
| 63 | * To make a cell renderer activatable or editable, you have to |
| 64 | * implement the `GtkCellRenderer`Class.activate or |
| 65 | * `GtkCellRenderer`Class.start_editing virtual functions, respectively. |
| 66 | * |
| 67 | * Many properties of `GtkCellRenderer` and its subclasses have a |
| 68 | * corresponding “set” property, e.g. “cell-background-set” corresponds |
| 69 | * to “cell-background”. These “set” properties reflect whether a property |
| 70 | * has been set or not. You should not set them independently. |
| 71 | * |
| 72 | * Deprecated: 4.10: List views use widgets for displaying their |
| 73 | * contents |
| 74 | */ |
| 75 | |
| 76 | |
| 77 | #define DEBUG_CELL_SIZE_REQUESTcxx . . $ `gtk/deprecated/gtkcellrenderer.c:77:9`! 0 |
| 78 | |
| 79 | static void gtk_cell_renderer_initcxx . . $ gtk_cell_renderer_init(534f869ba8d8773c). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell); |
| 80 | static void gtk_cell_renderer_class_initcxx . . $ gtk_cell_renderer_class_init(130901040105a57d). (GtkCellRendererClasscxx . . $ GtkCellRendererClass# *class); |
| 81 | static void gtk_cell_renderer_get_propertycxx . . $ gtk_cell_renderer_get_property(cee2c52f22407c66). (GObjectcxx . . $ GObject# *object, |
| 82 | guintcxx . . $ guint# param_id, |
| 83 | GValuecxx . . $ GValue# *value, |
| 84 | GParamSpeccxx . . $ GParamSpec# *pspec); |
| 85 | static void gtk_cell_renderer_set_propertycxx . . $ gtk_cell_renderer_set_property(d7c4bb29f36c0dc4). (GObjectcxx . . $ GObject# *object, |
| 86 | guintcxx . . $ guint# param_id, |
| 87 | const GValuecxx . . $ GValue# *value, |
| 88 | GParamSpeccxx . . $ GParamSpec# *pspec); |
| 89 | static void set_cell_bg_colorcxx . . $ set_cell_bg_color(c829f756ed1112eb). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 90 | GdkRGBAcxx . . $ GdkRGBA# *rgba); |
| 91 | |
| 92 | static GtkSizeRequestModecxx . . $ GtkSizeRequestMode# gtk_cell_renderer_real_get_request_modecxx . . $ gtk_cell_renderer_real_get_request_mode(8aa49182db99b52c).(GtkCellRenderercxx . . $ GtkCellRenderer# *cell); |
| 93 | static void gtk_cell_renderer_real_get_preferred_widthcxx . . $ gtk_cell_renderer_real_get_preferred_width(d5efea385435c9de). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 94 | GtkWidgetcxx . . $ GtkWidget# *widget, |
| 95 | int *minimum_size, |
| 96 | int *natural_size); |
| 97 | static void gtk_cell_renderer_real_get_preferred_heightcxx . . $ gtk_cell_renderer_real_get_preferred_height(d5efea385435c9de). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 98 | GtkWidgetcxx . . $ GtkWidget# *widget, |
| 99 | int *minimum_size, |
| 100 | int *natural_size); |
| 101 | static void gtk_cell_renderer_real_get_preferred_height_for_widthcxx . . $ gtk_cell_renderer_real_get_preferred_height_for_width(1257a0e0f3e3349e).(GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 102 | GtkWidgetcxx . . $ GtkWidget# *widget, |
| 103 | int width, |
| 104 | int *minimum_height, |
| 105 | int *natural_height); |
| 106 | static void gtk_cell_renderer_real_get_preferred_width_for_heightcxx . . $ gtk_cell_renderer_real_get_preferred_width_for_height(1257a0e0f3e3349e).(GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 107 | GtkWidgetcxx . . $ GtkWidget# *widget, |
| 108 | int height, |
| 109 | int *minimum_width, |
| 110 | int *natural_width); |
| 111 | static void gtk_cell_renderer_real_get_aligned_areacxx . . $ gtk_cell_renderer_real_get_aligned_area(65ae412043e58747). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 112 | GtkWidgetcxx . . $ GtkWidget# *widget, |
| 113 | GtkCellRendererStatecxx . . $ GtkCellRendererState# flags, |
| 114 | const GdkRectanglecxx . . $ GdkRectangle# *cell_area, |
| 115 | GdkRectanglecxx . . $ GdkRectangle# *aligned_area); |
| 116 | |
| 117 | |
| 118 | struct _GtkCellRendererPrivatecxx . . $ _GtkCellRendererPrivate# |
| 119 | { |
| 120 | float xaligncxx . . $ _GtkCellRendererPrivate#xalign.; |
| 121 | float yaligncxx . . $ _GtkCellRendererPrivate#yalign.; |
| 122 | |
| 123 | int widthcxx . . $ _GtkCellRendererPrivate#width.; |
| 124 | int heightcxx . . $ _GtkCellRendererPrivate#height.; |
| 125 | |
| 126 | guint16cxx . . $ guint16# xpadcxx . . $ _GtkCellRendererPrivate#xpad.; |
| 127 | guint16cxx . . $ guint16# ypadcxx . . $ _GtkCellRendererPrivate#ypad.; |
| 128 | |
| 129 | guintcxx . . $ guint# modecxx . . $ _GtkCellRendererPrivate#mode. : 2; |
| 130 | guintcxx . . $ guint# visiblecxx . . $ _GtkCellRendererPrivate#visible. : 1; |
| 131 | guintcxx . . $ guint# is_expandercxx . . $ _GtkCellRendererPrivate#is_expander. : 1; |
| 132 | guintcxx . . $ guint# is_expandedcxx . . $ _GtkCellRendererPrivate#is_expanded. : 1; |
| 133 | guintcxx . . $ guint# cell_background_setcxx . . $ _GtkCellRendererPrivate#cell_background_set. : 1; |
| 134 | guintcxx . . $ guint# sensitivecxx . . $ _GtkCellRendererPrivate#sensitive. : 1; |
| 135 | guintcxx . . $ guint# editingcxx . . $ _GtkCellRendererPrivate#editing. : 1; |
| 136 | |
| 137 | GdkRGBAcxx . . $ GdkRGBA# cell_backgroundcxx . . $ _GtkCellRendererPrivate#cell_background.; |
| 138 | }; |
| 139 | |
| 140 | enumcxx . . $ $anonymous_type_c43da25a63e205f0_0# { |
| 141 | PROP_0cxx . . $ PROP_0., |
| 142 | PROP_MODEcxx . . $ PROP_MODE., |
| 143 | PROP_VISIBLEcxx . . $ PROP_VISIBLE., |
| 144 | PROP_SENSITIVEcxx . . $ PROP_SENSITIVE., |
| 145 | PROP_XALIGNcxx . . $ PROP_XALIGN., |
| 146 | PROP_YALIGNcxx . . $ PROP_YALIGN., |
| 147 | PROP_XPADcxx . . $ PROP_XPAD., |
| 148 | PROP_YPADcxx . . $ PROP_YPAD., |
| 149 | PROP_WIDTHcxx . . $ PROP_WIDTH., |
| 150 | PROP_HEIGHTcxx . . $ PROP_HEIGHT., |
| 151 | PROP_IS_EXPANDERcxx . . $ PROP_IS_EXPANDER., |
| 152 | PROP_IS_EXPANDEDcxx . . $ PROP_IS_EXPANDED., |
| 153 | PROP_CELL_BACKGROUNDcxx . . $ PROP_CELL_BACKGROUND., |
| 154 | PROP_CELL_BACKGROUND_RGBAcxx . . $ PROP_CELL_BACKGROUND_RGBA., |
| 155 | PROP_CELL_BACKGROUND_SETcxx . . $ PROP_CELL_BACKGROUND_SET., |
| 156 | PROP_EDITINGcxx . . $ PROP_EDITING. |
| 157 | }; |
| 158 | |
| 159 | /* Signal IDs */ |
| 160 | enumcxx . . $ $anonymous_type_c43da25a63e205f0_1# { |
| 161 | EDITING_CANCELEDcxx . . $ EDITING_CANCELED., |
| 162 | EDITING_STARTEDcxx . . $ EDITING_STARTED., |
| 163 | LAST_SIGNALcxx . . $ LAST_SIGNAL. |
| 164 | }; |
| 165 | |
| 166 | static int GtkCellRenderer_private_offsetcxx . . $ GtkCellRenderer_private_offset.; |
| 167 | static guintcxx . . $ guint# cell_renderer_signalscxx . . $ cell_renderer_signals.[LAST_SIGNALcxx . . $ LAST_SIGNAL.] = { 0 }; |
| 168 | |
| 169 | static inline gpointercxx . . $ gpointer# |
| 170 | gtk_cell_renderer_get_instance_privatecxx . . $ gtk_cell_renderer_get_instance_private(33421e8b5941bfca). (GtkCellRenderercxx . . $ GtkCellRenderer# *self) |
| 171 | { |
| 172 | return (G_STRUCT_MEMBER_Pcxx . . $ `<external>/12741050725406041920/gmacros.h:1012:9`! (self, GtkCellRenderer_private_offset)); |
| 173 | } |
| 174 | |
| 175 | static void |
| 176 | gtk_cell_renderer_initcxx . . $ gtk_cell_renderer_init(534f869ba8d8773c). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell) |
| 177 | { |
| 178 | GtkCellRendererPrivatecxx . . $ GtkCellRendererPrivate# *priv; |
| 179 | |
| 180 | cell->privcxx . . $ _GtkCellRenderer#priv. = gtk_cell_renderer_get_instance_privatecxx . . $ gtk_cell_renderer_get_instance_private(33421e8b5941bfca). (cell); |
| 181 | priv = cell->privcxx . . $ _GtkCellRenderer#priv.; |
| 182 | |
| 183 | priv->modecxx . . $ _GtkCellRendererPrivate#mode. = GTK_CELL_RENDERER_MODE_INERTcxx . . $ GTK_CELL_RENDERER_MODE_INERT.; |
| 184 | priv->visiblecxx . . $ _GtkCellRendererPrivate#visible. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 185 | priv->widthcxx . . $ _GtkCellRendererPrivate#width. = -1; |
| 186 | priv->heightcxx . . $ _GtkCellRendererPrivate#height. = -1; |
| 187 | priv->xaligncxx . . $ _GtkCellRendererPrivate#xalign. = 0.5; |
| 188 | priv->yaligncxx . . $ _GtkCellRendererPrivate#yalign. = 0.5; |
| 189 | priv->xpadcxx . . $ _GtkCellRendererPrivate#xpad. = 0; |
| 190 | priv->ypadcxx . . $ _GtkCellRendererPrivate#ypad. = 0; |
| 191 | priv->sensitivecxx . . $ _GtkCellRendererPrivate#sensitive. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 192 | priv->is_expandercxx . . $ _GtkCellRendererPrivate#is_expander. = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 193 | priv->is_expandedcxx . . $ _GtkCellRendererPrivate#is_expanded. = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 194 | priv->editingcxx . . $ _GtkCellRendererPrivate#editing. = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 195 | } |
| 196 | |
| 197 | static void |
| 198 | gtk_cell_renderer_class_initcxx . . $ gtk_cell_renderer_class_init(130901040105a57d). (GtkCellRendererClasscxx . . $ GtkCellRendererClass# *class) |
| 199 | { |
| 200 | GObjectClasscxx . . $ GObjectClass# *object_class = G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (class); |
| 201 | |
| 202 | object_class->get_propertycxx . . $ _GObjectClass#get_property. = gtk_cell_renderer_get_propertycxx . . $ gtk_cell_renderer_get_property(cee2c52f22407c66).; |
| 203 | object_class->set_propertycxx . . $ _GObjectClass#set_property. = gtk_cell_renderer_set_propertycxx . . $ gtk_cell_renderer_set_property(d7c4bb29f36c0dc4).; |
| 204 | |
| 205 | class->snapshotcxx . . $ _GtkCellRendererClass#snapshot. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 206 | class->get_request_modecxx . . $ _GtkCellRendererClass#get_request_mode. = gtk_cell_renderer_real_get_request_modecxx . . $ gtk_cell_renderer_real_get_request_mode(8aa49182db99b52c).; |
| 207 | class->get_preferred_widthcxx . . $ _GtkCellRendererClass#get_preferred_width. = gtk_cell_renderer_real_get_preferred_widthcxx . . $ gtk_cell_renderer_real_get_preferred_width(d5efea385435c9de).; |
| 208 | class->get_preferred_heightcxx . . $ _GtkCellRendererClass#get_preferred_height. = gtk_cell_renderer_real_get_preferred_heightcxx . . $ gtk_cell_renderer_real_get_preferred_height(d5efea385435c9de).; |
| 209 | class->get_preferred_width_for_heightcxx . . $ _GtkCellRendererClass#get_preferred_width_for_height. = gtk_cell_renderer_real_get_preferred_width_for_heightcxx . . $ gtk_cell_renderer_real_get_preferred_width_for_height(1257a0e0f3e3349e).; |
| 210 | class->get_preferred_height_for_widthcxx . . $ _GtkCellRendererClass#get_preferred_height_for_width. = gtk_cell_renderer_real_get_preferred_height_for_widthcxx . . $ gtk_cell_renderer_real_get_preferred_height_for_width(1257a0e0f3e3349e).; |
| 211 | class->get_aligned_areacxx . . $ _GtkCellRendererClass#get_aligned_area. = gtk_cell_renderer_real_get_aligned_areacxx . . $ gtk_cell_renderer_real_get_aligned_area(65ae412043e58747).; |
| 212 | |
| 213 | /** |
| 214 | * GtkCellRenderer::editing-canceled: |
| 215 | * @renderer: the object which received the signal |
| 216 | * |
| 217 | * This signal gets emitted when the user cancels the process of editing a |
| 218 | * cell. For example, an editable cell renderer could be written to cancel |
| 219 | * editing when the user presses Escape. |
| 220 | * |
| 221 | * See also: gtk_cell_renderer_stop_editing(). |
| 222 | */ |
| 223 | cell_renderer_signalscxx . . $ cell_renderer_signals.[EDITING_CANCELEDcxx . . $ EDITING_CANCELED.] = |
| 224 | g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("editing-canceled"), |
| 225 | G_OBJECT_CLASS_TYPEcxx . . $ `<external>/1341695927569185362/gobject.h:117:9`! (object_class), |
| 226 | G_SIGNAL_RUN_FIRSTcxx . . $ G_SIGNAL_RUN_FIRST., |
| 227 | G_STRUCT_OFFSETcxx . . $ `<external>/12741050725406041920/gmacros.h:1005:9`! (GtkCellRendererClass, editing_canceled), |
| 228 | 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`!, |
| 229 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 230 | G_TYPE_NONEcxx . . $ `<external>/9567554376676449156/gtype.h:72:9`!, 0); |
| 231 | |
| 232 | /** |
| 233 | * GtkCellRenderer::editing-started: |
| 234 | * @renderer: the object which received the signal |
| 235 | * @editable: the `GtkCellEditable` |
| 236 | * @path: the path identifying the edited cell |
| 237 | * |
| 238 | * This signal gets emitted when a cell starts to be edited. |
| 239 | * The intended use of this signal is to do special setup |
| 240 | * on @editable, e.g. adding a `GtkEntryCompletion` or setting |
| 241 | * up additional columns in a `GtkComboBox`. |
| 242 | * |
| 243 | * See gtk_cell_editable_start_editing() for information on the lifecycle of |
| 244 | * the @editable and a way to do setup that doesn’t depend on the @renderer. |
| 245 | * |
| 246 | * Note that GTK doesn't guarantee that cell renderers will |
| 247 | * continue to use the same kind of widget for editing in future |
| 248 | * releases, therefore you should check the type of @editable |
| 249 | * before doing any specific setup, as in the following example: |
| 250 | * |
| 251 | * ```c |
| 252 | * static void |
| 253 | * text_editing_started (GtkCellRenderer *cell, |
| 254 | * GtkCellEditable *editable, |
| 255 | * const char *path, |
| 256 | * gpointer data) |
| 257 | * { |
| 258 | * if (GTK_IS_ENTRY (editable)) |
| 259 | * { |
| 260 | * GtkEntry *entry = GTK_ENTRY (editable); |
| 261 | * |
| 262 | * // ... create a GtkEntryCompletion |
| 263 | * |
| 264 | * gtk_entry_set_completion (entry, completion); |
| 265 | * } |
| 266 | * } |
| 267 | * ``` |
| 268 | */ |
| 269 | cell_renderer_signalscxx . . $ cell_renderer_signals.[EDITING_STARTEDcxx . . $ EDITING_STARTED.] = |
| 270 | g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("editing-started"), |
| 271 | G_OBJECT_CLASS_TYPEcxx . . $ `<external>/1341695927569185362/gobject.h:117:9`! (object_class), |
| 272 | G_SIGNAL_RUN_FIRSTcxx . . $ G_SIGNAL_RUN_FIRST., |
| 273 | G_STRUCT_OFFSETcxx . . $ `<external>/12741050725406041920/gmacros.h:1005:9`! (GtkCellRendererClass, editing_started), |
| 274 | 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`!, |
| 275 | _gtk_marshal_VOID__OBJECT_STRINGcxx . . $ _gtk_marshal_VOID__OBJECT_STRING(cba270afb0f82555)., |
| 276 | G_TYPE_NONEcxx . . $ `<external>/9567554376676449156/gtype.h:72:9`!, 2, |
| 277 | GTK_TYPE_CELL_EDITABLEcxx . . $ `gtk/deprecated/gtkcelleditable.h:28:9`!, |
| 278 | G_TYPE_STRINGcxx . . $ `<external>/9567554376676449156/gtype.h:165:9`!); |
| 279 | g_signal_set_va_marshallercxx . . $ g_signal_set_va_marshaller(4fd870c04a9d6fe7). (cell_renderer_signalscxx . . $ cell_renderer_signals.[EDITING_STARTEDcxx . . $ EDITING_STARTED.], |
| 280 | G_TYPE_FROM_CLASScxx . . $ `<external>/9567554376676449156/gtype.h:657:9`! (object_class), |
| 281 | _gtk_marshal_VOID__OBJECT_STRINGvcxx . . $ _gtk_marshal_VOID__OBJECT_STRINGv(d309f4be92d1737c).); |
| 282 | |
| 283 | g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (object_class, |
| 284 | PROP_MODEcxx . . $ PROP_MODE., |
| 285 | g_param_spec_enumcxx . . $ g_param_spec_enum(bfeb217b5dc6c0ac). ("mode", 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`!, |
| 286 | GTK_TYPE_CELL_RENDERER_MODEcxx . . $ `build/gtk/gtktypebuiltins.h:24:9`!, |
| 287 | GTK_CELL_RENDERER_MODE_INERTcxx . . $ GTK_CELL_RENDERER_MODE_INERT., |
| 288 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!|G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.)); |
| 289 | |
| 290 | g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (object_class, |
| 291 | PROP_VISIBLEcxx . . $ PROP_VISIBLE., |
| 292 | g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("visible", 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`!, |
| 293 | TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 294 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!|G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.)); |
| 295 | g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (object_class, |
| 296 | PROP_SENSITIVEcxx . . $ PROP_SENSITIVE., |
| 297 | g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("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`!, |
| 298 | TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 299 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!|G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.)); |
| 300 | |
| 301 | g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (object_class, |
| 302 | PROP_XALIGNcxx . . $ PROP_XALIGN., |
| 303 | g_param_spec_floatcxx . . $ g_param_spec_float(62471560c2840e09). ("xalign", 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`!, |
| 304 | 0.0, |
| 305 | 1.0, |
| 306 | 0.5, |
| 307 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!|G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.)); |
| 308 | |
| 309 | g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (object_class, |
| 310 | PROP_YALIGNcxx . . $ PROP_YALIGN., |
| 311 | g_param_spec_floatcxx . . $ g_param_spec_float(62471560c2840e09). ("yalign", 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`!, |
| 312 | 0.0, |
| 313 | 1.0, |
| 314 | 0.5, |
| 315 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!|G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.)); |
| 316 | |
| 317 | g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (object_class, |
| 318 | PROP_XPADcxx . . $ PROP_XPAD., |
| 319 | g_param_spec_uintcxx . . $ g_param_spec_uint(503a1013c8de17d5). ("xpad", 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`!, |
| 320 | 0, |
| 321 | G_MAXUINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:40:9`!, |
| 322 | 0, |
| 323 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!|G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.)); |
| 324 | |
| 325 | g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (object_class, |
| 326 | PROP_YPADcxx . . $ PROP_YPAD., |
| 327 | g_param_spec_uintcxx . . $ g_param_spec_uint(503a1013c8de17d5). ("ypad", 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`!, |
| 328 | 0, |
| 329 | G_MAXUINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:40:9`!, |
| 330 | 0, |
| 331 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!|G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.)); |
| 332 | |
| 333 | g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (object_class, |
| 334 | PROP_WIDTHcxx . . $ PROP_WIDTH., |
| 335 | g_param_spec_intcxx . . $ g_param_spec_int(eedf0a930522f60e). ("width", 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`!, |
| 336 | -1, |
| 337 | G_MAXINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:39:9`!, |
| 338 | -1, |
| 339 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!|G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.)); |
| 340 | |
| 341 | g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (object_class, |
| 342 | PROP_HEIGHTcxx . . $ PROP_HEIGHT., |
| 343 | g_param_spec_intcxx . . $ g_param_spec_int(eedf0a930522f60e). ("height", 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`!, |
| 344 | -1, |
| 345 | G_MAXINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:39:9`!, |
| 346 | -1, |
| 347 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!|G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.)); |
| 348 | |
| 349 | g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (object_class, |
| 350 | PROP_IS_EXPANDERcxx . . $ PROP_IS_EXPANDER., |
| 351 | g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("is-expander", 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`!, |
| 352 | FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, |
| 353 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!|G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.)); |
| 354 | |
| 355 | |
| 356 | g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (object_class, |
| 357 | PROP_IS_EXPANDEDcxx . . $ PROP_IS_EXPANDED., |
| 358 | g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("is-expanded", 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`!, |
| 359 | FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, |
| 360 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!|G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.)); |
| 361 | |
| 362 | g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (object_class, |
| 363 | PROP_CELL_BACKGROUNDcxx . . $ PROP_CELL_BACKGROUND., |
| 364 | g_param_spec_stringcxx . . $ g_param_spec_string(378e8746be5cd899). ("cell-background", 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`!, |
| 365 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 366 | GTK_PARAM_WRITABLEcxx . . $ `gtk/gtkprivate.h:43:9`!)); |
| 367 | |
| 368 | /** |
| 369 | * GtkCellRenderer:cell-background-rgba: |
| 370 | * |
| 371 | * Cell background as a `GdkRGBA` |
| 372 | */ |
| 373 | g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (object_class, |
| 374 | PROP_CELL_BACKGROUND_RGBAcxx . . $ PROP_CELL_BACKGROUND_RGBA., |
| 375 | g_param_spec_boxedcxx . . $ g_param_spec_boxed(faf99966f027a127). ("cell-background-rgba", 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`!, |
| 376 | GDK_TYPE_RGBAcxx . . $ `gdk/gdkrgba.h:43:9`!, |
| 377 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!)); |
| 378 | |
| 379 | g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (object_class, |
| 380 | PROP_EDITINGcxx . . $ PROP_EDITING., |
| 381 | g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("editing", 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`!, |
| 382 | FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, |
| 383 | GTK_PARAM_READABLEcxx . . $ `gtk/gtkprivate.h:42:9`!)); |
| 384 | |
| 385 | |
| 386 | #define ADD_SET_PROPcxx . . $ `gtk/deprecated/gtkcellrenderer.c:386:9`!(propname, propval, nick, blurb) g_object_class_install_property (object_class, propval, g_param_spec_boolean (propname, nick, blurb, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!|G_PARAM_EXPLICIT_NOTIFY)) |
| 387 | |
| 388 | ADD_SET_PROPcxx . . $ `gtk/deprecated/gtkcellrenderer.c:386:9`! ("cell-background-set", PROP_CELL_BACKGROUND_SET, 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`!); |
| 389 | |
| 390 | if (GtkCellRenderer_private_offsetcxx . . $ GtkCellRenderer_private_offset. != 0) |
| 391 | g_type_class_adjust_private_offsetcxx . . $ g_type_class_adjust_private_offset(6d7fe0143cf266f5). (class, &GtkCellRenderer_private_offsetcxx . . $ GtkCellRenderer_private_offset.); |
| 392 | } |
| 393 | |
| 394 | GTypecxx . . $ GType# |
| 395 | gtk_cell_renderer_get_typecxx . . $ gtk_cell_renderer_get_type(f708dce9a8856c70). (void) |
| 396 | { |
| 397 | static GTypecxx . . $ GType# cell_renderer_type = 0; |
| 398 | |
| 399 | if (G_UNLIKELYcxx . . $ `<external>/12741050725406041920/gmacros.h:1285:9`! (cell_renderer_type == 0)) |
| 400 | { |
| 401 | const GTypeInfocxx . . $ GTypeInfo# cell_renderer_info = |
| 402 | { |
| 403 | sizeof (GtkCellRendererClasscxx . . $ GtkCellRendererClass#), |
| 404 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 405 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 406 | (GClassInitFunccxx . . $ GClassInitFunc#) gtk_cell_renderer_class_initcxx . . $ gtk_cell_renderer_class_init(130901040105a57d)., |
| 407 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, /* class_finalize */ |
| 408 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, /* class_init */ |
| 409 | sizeof (GtkWidgetcxx . . $ GtkWidget#), |
| 410 | 0, /* n_preallocs */ |
| 411 | (GInstanceInitFunccxx . . $ GInstanceInitFunc#) gtk_cell_renderer_initcxx . . $ gtk_cell_renderer_init(534f869ba8d8773c)., |
| 412 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, /* value_table */ |
| 413 | }; |
| 414 | cell_renderer_type = g_type_register_staticcxx . . $ g_type_register_static(805a40cfa272e950). (G_TYPE_INITIALLY_UNOWNEDcxx . . $ `<external>/1341695927569185362/gobject.h:144:9`!, "GtkCellRenderer", |
| 415 | &cell_renderer_info, G_TYPE_FLAG_ABSTRACTcxx . . $ G_TYPE_FLAG_ABSTRACT.); |
| 416 | |
| 417 | GtkCellRenderer_private_offsetcxx . . $ GtkCellRenderer_private_offset. = |
| 418 | g_type_add_instance_privatecxx . . $ g_type_add_instance_private(8bdd4f646c1f3ab7). (cell_renderer_type, sizeof (GtkCellRendererPrivatecxx . . $ GtkCellRendererPrivate#)); |
| 419 | } |
| 420 | |
| 421 | return cell_renderer_type; |
| 422 | } |
| 423 | |
| 424 | static void |
| 425 | gtk_cell_renderer_get_propertycxx . . $ gtk_cell_renderer_get_property(cee2c52f22407c66). (GObjectcxx . . $ GObject# *object, |
| 426 | guintcxx . . $ guint# param_id, |
| 427 | GValuecxx . . $ GValue# *value, |
| 428 | GParamSpeccxx . . $ GParamSpec# *pspec) |
| 429 | { |
| 430 | GtkCellRenderercxx . . $ GtkCellRenderer# *cell = GTK_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:77:9`! (object); |
| 431 | GtkCellRendererPrivatecxx . . $ GtkCellRendererPrivate# *priv = cell->privcxx . . $ _GtkCellRenderer#priv.; |
| 432 | |
| 433 | switch (param_id) |
| 434 | { |
| 435 | case PROP_MODEcxx . . $ PROP_MODE.: |
| 436 | g_value_set_enumcxx . . $ g_value_set_enum(b698c61e8e30c4ea). (value, priv->modecxx . . $ _GtkCellRendererPrivate#mode.); |
| 437 | break; |
| 438 | case PROP_VISIBLEcxx . . $ PROP_VISIBLE.: |
| 439 | g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, priv->visiblecxx . . $ _GtkCellRendererPrivate#visible.); |
| 440 | break; |
| 441 | case PROP_SENSITIVEcxx . . $ PROP_SENSITIVE.: |
| 442 | g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, priv->sensitivecxx . . $ _GtkCellRendererPrivate#sensitive.); |
| 443 | break; |
| 444 | case PROP_EDITINGcxx . . $ PROP_EDITING.: |
| 445 | g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, priv->editingcxx . . $ _GtkCellRendererPrivate#editing.); |
| 446 | break; |
| 447 | case PROP_XALIGNcxx . . $ PROP_XALIGN.: |
| 448 | g_value_set_floatcxx . . $ g_value_set_float(b22d5fe81e4f0ffb). (value, priv->xaligncxx . . $ _GtkCellRendererPrivate#xalign.); |
| 449 | break; |
| 450 | case PROP_YALIGNcxx . . $ PROP_YALIGN.: |
| 451 | g_value_set_floatcxx . . $ g_value_set_float(b22d5fe81e4f0ffb). (value, priv->yaligncxx . . $ _GtkCellRendererPrivate#yalign.); |
| 452 | break; |
| 453 | case PROP_XPADcxx . . $ PROP_XPAD.: |
| 454 | g_value_set_uintcxx . . $ g_value_set_uint(f81c5c84daf56975). (value, priv->xpadcxx . . $ _GtkCellRendererPrivate#xpad.); |
| 455 | break; |
| 456 | case PROP_YPADcxx . . $ PROP_YPAD.: |
| 457 | g_value_set_uintcxx . . $ g_value_set_uint(f81c5c84daf56975). (value, priv->ypadcxx . . $ _GtkCellRendererPrivate#ypad.); |
| 458 | break; |
| 459 | case PROP_WIDTHcxx . . $ PROP_WIDTH.: |
| 460 | g_value_set_intcxx . . $ g_value_set_int(b698c61e8e30c4ea). (value, priv->widthcxx . . $ _GtkCellRendererPrivate#width.); |
| 461 | break; |
| 462 | case PROP_HEIGHTcxx . . $ PROP_HEIGHT.: |
| 463 | g_value_set_intcxx . . $ g_value_set_int(b698c61e8e30c4ea). (value, priv->heightcxx . . $ _GtkCellRendererPrivate#height.); |
| 464 | break; |
| 465 | case PROP_IS_EXPANDERcxx . . $ PROP_IS_EXPANDER.: |
| 466 | g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, priv->is_expandercxx . . $ _GtkCellRendererPrivate#is_expander.); |
| 467 | break; |
| 468 | case PROP_IS_EXPANDEDcxx . . $ PROP_IS_EXPANDED.: |
| 469 | g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, priv->is_expandedcxx . . $ _GtkCellRendererPrivate#is_expanded.); |
| 470 | break; |
| 471 | case PROP_CELL_BACKGROUND_RGBAcxx . . $ PROP_CELL_BACKGROUND_RGBA.: |
| 472 | g_value_set_boxedcxx . . $ g_value_set_boxed(806599f585dac18b). (value, &priv->cell_backgroundcxx . . $ _GtkCellRendererPrivate#cell_background.); |
| 473 | break; |
| 474 | case PROP_CELL_BACKGROUND_SETcxx . . $ PROP_CELL_BACKGROUND_SET.: |
| 475 | g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, priv->cell_background_setcxx . . $ _GtkCellRendererPrivate#cell_background_set.); |
| 476 | break; |
| 477 | case PROP_CELL_BACKGROUNDcxx . . $ PROP_CELL_BACKGROUND.: |
| 478 | default: |
| 479 | G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (object, param_id, pspec); |
| 480 | break; |
| 481 | } |
| 482 | |
| 483 | } |
| 484 | |
| 485 | static void |
| 486 | gtk_cell_renderer_set_propertycxx . . $ gtk_cell_renderer_set_property(d7c4bb29f36c0dc4). (GObjectcxx . . $ GObject# *object, |
| 487 | guintcxx . . $ guint# param_id, |
| 488 | const GValuecxx . . $ GValue# *value, |
| 489 | GParamSpeccxx . . $ GParamSpec# *pspec) |
| 490 | { |
| 491 | GtkCellRenderercxx . . $ GtkCellRenderer# *cell = GTK_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:77:9`! (object); |
| 492 | GtkCellRendererPrivatecxx . . $ GtkCellRendererPrivate# *priv = cell->privcxx . . $ _GtkCellRenderer#priv.; |
| 493 | |
| 494 | switch (param_id) |
| 495 | { |
| 496 | case PROP_MODEcxx . . $ PROP_MODE.: |
| 497 | if (priv->modecxx . . $ _GtkCellRendererPrivate#mode. != g_value_get_enumcxx . . $ g_value_get_enum(f890c5c75ead5b21). (value)) |
| 498 | { |
| 499 | priv->modecxx . . $ _GtkCellRendererPrivate#mode. = g_value_get_enumcxx . . $ g_value_get_enum(f890c5c75ead5b21). (value); |
| 500 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (object, pspec); |
| 501 | } |
| 502 | break; |
| 503 | case PROP_VISIBLEcxx . . $ PROP_VISIBLE.: |
| 504 | if (priv->visiblecxx . . $ _GtkCellRendererPrivate#visible. != g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value)) |
| 505 | { |
| 506 | priv->visiblecxx . . $ _GtkCellRendererPrivate#visible. = g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value); |
| 507 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (object, pspec); |
| 508 | } |
| 509 | break; |
| 510 | case PROP_SENSITIVEcxx . . $ PROP_SENSITIVE.: |
| 511 | if (priv->sensitivecxx . . $ _GtkCellRendererPrivate#sensitive. != g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value)) |
| 512 | { |
| 513 | priv->sensitivecxx . . $ _GtkCellRendererPrivate#sensitive. = g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value); |
| 514 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (object, pspec); |
| 515 | } |
| 516 | break; |
| 517 | case PROP_XALIGNcxx . . $ PROP_XALIGN.: |
| 518 | if (priv->xaligncxx . . $ _GtkCellRendererPrivate#xalign. != g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88). (value)) |
| 519 | { |
| 520 | priv->xaligncxx . . $ _GtkCellRendererPrivate#xalign. = g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88). (value); |
| 521 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (object, pspec); |
| 522 | } |
| 523 | break; |
| 524 | case PROP_YALIGNcxx . . $ PROP_YALIGN.: |
| 525 | if (priv->yaligncxx . . $ _GtkCellRendererPrivate#yalign. != g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88). (value)) |
| 526 | { |
| 527 | priv->yaligncxx . . $ _GtkCellRendererPrivate#yalign. = g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88). (value); |
| 528 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (object, pspec); |
| 529 | } |
| 530 | break; |
| 531 | case PROP_XPADcxx . . $ PROP_XPAD.: |
| 532 | if (priv->xpadcxx . . $ _GtkCellRendererPrivate#xpad. != g_value_get_uintcxx . . $ g_value_get_uint(1e175b1568bd83e1). (value)) |
| 533 | { |
| 534 | priv->xpadcxx . . $ _GtkCellRendererPrivate#xpad. = g_value_get_uintcxx . . $ g_value_get_uint(1e175b1568bd83e1). (value); |
| 535 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (object, pspec); |
| 536 | } |
| 537 | break; |
| 538 | case PROP_YPADcxx . . $ PROP_YPAD.: |
| 539 | if (priv->ypadcxx . . $ _GtkCellRendererPrivate#ypad. != g_value_get_uintcxx . . $ g_value_get_uint(1e175b1568bd83e1). (value)) |
| 540 | { |
| 541 | priv->ypadcxx . . $ _GtkCellRendererPrivate#ypad. = g_value_get_uintcxx . . $ g_value_get_uint(1e175b1568bd83e1). (value); |
| 542 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (object, pspec); |
| 543 | } |
| 544 | break; |
| 545 | case PROP_WIDTHcxx . . $ PROP_WIDTH.: |
| 546 | if (priv->widthcxx . . $ _GtkCellRendererPrivate#width. != g_value_get_intcxx . . $ g_value_get_int(f890c5c75ead5b21). (value)) |
| 547 | { |
| 548 | priv->widthcxx . . $ _GtkCellRendererPrivate#width. = g_value_get_intcxx . . $ g_value_get_int(f890c5c75ead5b21). (value); |
| 549 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (object, pspec); |
| 550 | } |
| 551 | break; |
| 552 | case PROP_HEIGHTcxx . . $ PROP_HEIGHT.: |
| 553 | if (priv->heightcxx . . $ _GtkCellRendererPrivate#height. != g_value_get_intcxx . . $ g_value_get_int(f890c5c75ead5b21). (value)) |
| 554 | { |
| 555 | priv->heightcxx . . $ _GtkCellRendererPrivate#height. = g_value_get_intcxx . . $ g_value_get_int(f890c5c75ead5b21). (value); |
| 556 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (object, pspec); |
| 557 | } |
| 558 | break; |
| 559 | case PROP_IS_EXPANDERcxx . . $ PROP_IS_EXPANDER.: |
| 560 | if (priv->is_expandercxx . . $ _GtkCellRendererPrivate#is_expander. != g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value)) |
| 561 | { |
| 562 | priv->is_expandercxx . . $ _GtkCellRendererPrivate#is_expander. = g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value); |
| 563 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (object, pspec); |
| 564 | } |
| 565 | break; |
| 566 | case PROP_IS_EXPANDEDcxx . . $ PROP_IS_EXPANDED.: |
| 567 | if (priv->is_expandedcxx . . $ _GtkCellRendererPrivate#is_expanded. != g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value)) |
| 568 | { |
| 569 | priv->is_expandedcxx . . $ _GtkCellRendererPrivate#is_expanded. = g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value); |
| 570 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (object, pspec); |
| 571 | } |
| 572 | break; |
| 573 | case PROP_CELL_BACKGROUNDcxx . . $ PROP_CELL_BACKGROUND.: |
| 574 | { |
| 575 | GdkRGBAcxx . . $ GdkRGBA# rgba; |
| 576 | |
| 577 | if (!g_value_get_stringcxx . . $ g_value_get_string(cc0a2be2b8f7bdc8). (value)) |
| 578 | set_cell_bg_colorcxx . . $ set_cell_bg_color(c829f756ed1112eb). (cell, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 579 | else if (gdk_rgba_parsecxx . . $ gdk_rgba_parse(482ef11efa4439a6). (&rgba, g_value_get_stringcxx . . $ g_value_get_string(cc0a2be2b8f7bdc8). (value))) |
| 580 | set_cell_bg_colorcxx . . $ set_cell_bg_color(c829f756ed1112eb). (cell, &rgba); |
| 581 | else |
| 582 | g_warningcxx . . $ `<external>/5169755362661750954/gmessages.h:340:9`! ("Don't know color '%s'", g_value_get_string (value)); |
| 583 | |
| 584 | g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (object, "cell-background"); |
| 585 | } |
| 586 | break; |
| 587 | case PROP_CELL_BACKGROUND_RGBAcxx . . $ PROP_CELL_BACKGROUND_RGBA.: |
| 588 | set_cell_bg_colorcxx . . $ set_cell_bg_color(c829f756ed1112eb). (cell, g_value_get_boxedcxx . . $ g_value_get_boxed(e12dff36056c2cce). (value)); |
| 589 | break; |
| 590 | case PROP_CELL_BACKGROUND_SETcxx . . $ PROP_CELL_BACKGROUND_SET.: |
| 591 | if (priv->cell_background_setcxx . . $ _GtkCellRendererPrivate#cell_background_set. != g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value)) |
| 592 | { |
| 593 | priv->cell_background_setcxx . . $ _GtkCellRendererPrivate#cell_background_set. = g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value); |
| 594 | g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (object, "cell-background-set"); |
| 595 | } |
| 596 | break; |
| 597 | default: |
| 598 | G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (object, param_id, pspec); |
| 599 | break; |
| 600 | } |
| 601 | } |
| 602 | |
| 603 | static void |
| 604 | set_cell_bg_colorcxx . . $ set_cell_bg_color(c829f756ed1112eb). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 605 | GdkRGBAcxx . . $ GdkRGBA# *rgba) |
| 606 | { |
| 607 | GtkCellRendererPrivatecxx . . $ GtkCellRendererPrivate# *priv = cell->privcxx . . $ _GtkCellRenderer#priv.; |
| 608 | |
| 609 | if (rgba) |
| 610 | { |
| 611 | if (!priv->cell_background_setcxx . . $ _GtkCellRendererPrivate#cell_background_set.) |
| 612 | { |
| 613 | priv->cell_background_setcxx . . $ _GtkCellRendererPrivate#cell_background_set. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 614 | g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (cell), "cell-background-set"); |
| 615 | } |
| 616 | |
| 617 | priv->cell_backgroundcxx . . $ _GtkCellRendererPrivate#cell_background. = *rgba; |
| 618 | } |
| 619 | else |
| 620 | { |
| 621 | if (priv->cell_background_setcxx . . $ _GtkCellRendererPrivate#cell_background_set.) |
| 622 | { |
| 623 | priv->cell_background_setcxx . . $ _GtkCellRendererPrivate#cell_background_set. = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 624 | g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (cell), "cell-background-set"); |
| 625 | } |
| 626 | } |
| 627 | g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (cell), "cell-background-rgba"); |
| 628 | } |
| 629 | |
| 630 | /** |
| 631 | * gtk_cell_renderer_snapshot: |
| 632 | * @cell: a `GtkCellRenderer` |
| 633 | * @snapshot: a `GtkSnapshot` to draw to |
| 634 | * @widget: the widget owning @window |
| 635 | * @background_area: entire cell area (including tree expanders and maybe |
| 636 | * padding on the sides) |
| 637 | * @cell_area: area normally rendered by a cell renderer |
| 638 | * @flags: flags that affect rendering |
| 639 | * |
| 640 | * Invokes the virtual render function of the `GtkCellRenderer`. The three |
| 641 | * passed-in rectangles are areas in @cr. Most renderers will draw within |
| 642 | * @cell_area; the xalign, yalign, xpad, and ypad fields of the `GtkCellRenderer` |
| 643 | * should be honored with respect to @cell_area. @background_area includes the |
| 644 | * blank space around the cell, and also the area containing the tree expander; |
| 645 | * so the @background_area rectangles for all cells tile to cover the entire |
| 646 | * @window. |
| 647 | * |
| 648 | * Deprecated: 4.10 |
| 649 | **/ |
| 650 | void |
| 651 | gtk_cell_renderer_snapshotcxx . . $ gtk_cell_renderer_snapshot(34bfa7962255c36). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 652 | GtkSnapshotcxx . . $ GtkSnapshot# *snapshot, |
| 653 | GtkWidgetcxx . . $ GtkWidget# *widget, |
| 654 | const GdkRectanglecxx . . $ GdkRectangle# *background_area, |
| 655 | const GdkRectanglecxx . . $ GdkRectangle# *cell_area, |
| 656 | GtkCellRendererStatecxx . . $ GtkCellRendererState# flags) |
| 657 | { |
| 658 | gbooleancxx . . $ gboolean# selected = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 659 | GtkCellRendererPrivatecxx . . $ GtkCellRendererPrivate# *priv = cell->privcxx . . $ _GtkCellRenderer#priv.; |
| 660 | GtkStyleContextcxx . . $ GtkStyleContext# *context; |
| 661 | GtkStateFlagscxx . . $ GtkStateFlags# state; |
| 662 | |
| 663 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell)); |
| 664 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_CELL_RENDERER_GET_CLASScxx . . $ `gtk/deprecated/gtkcellrenderer.h:81:9`! (cell)->snapshot != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 665 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (snapshot != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 666 | |
| 667 | selected = (flags & GTK_CELL_RENDERER_SELECTEDcxx . . $ GTK_CELL_RENDERER_SELECTED.) == GTK_CELL_RENDERER_SELECTEDcxx . . $ GTK_CELL_RENDERER_SELECTED.; |
| 668 | |
| 669 | gtk_snapshot_push_debugcxx . . $ gtk_snapshot_push_debug(bfd3c245935f7e4f). (snapshot, "%s", G_OBJECT_TYPE_NAMEcxx . . $ `<external>/1341695927569185362/gobject.h:108:9`! (cell)); |
| 670 | |
| 671 | if (priv->cell_background_setcxx . . $ _GtkCellRendererPrivate#cell_background_set. && !selected) |
| 672 | { |
| 673 | gtk_snapshot_append_colorcxx . . $ gtk_snapshot_append_color(402330aed7850122). (snapshot, |
| 674 | &priv->cell_backgroundcxx . . $ _GtkCellRendererPrivate#cell_background., |
| 675 | &GRAPHENE_RECT_INITcxx . . $ `<external>/7539008420172022992/graphene-rect.h:50:9`! ( |
| 676 | background_area->x, background_area->y, |
| 677 | background_area->width, background_area->height |
| 678 | )); |
| 679 | } |
| 680 | |
| 681 | gtk_snapshot_push_clipcxx . . $ gtk_snapshot_push_clip(f2e77ce91ee65beb). (snapshot, |
| 682 | &GRAPHENE_RECT_INITcxx . . $ `<external>/7539008420172022992/graphene-rect.h:50:9`! ( |
| 683 | background_area->x, background_area->y, |
| 684 | background_area->width, background_area->height |
| 685 | )); |
| 686 | |
| 687 | context = gtk_widget_get_style_contextcxx . . $ gtk_widget_get_style_context(1a33cf1e9e8b4cb5). (widget); |
| 688 | |
| 689 | gtk_style_context_savecxx . . $ gtk_style_context_save(568fd35591c7198b). (context); |
| 690 | gtk_style_context_add_classcxx . . $ gtk_style_context_add_class(a510f736b71944c8). (context, "cell"); |
| 691 | |
| 692 | state = gtk_cell_renderer_get_statecxx . . $ gtk_cell_renderer_get_state(c9b5c86c6ae7851d). (cell, widget, flags); |
| 693 | gtk_style_context_set_statecxx . . $ gtk_style_context_set_state(29ca8a0f85571c93). (context, state); |
| 694 | |
| 695 | GTK_CELL_RENDERER_GET_CLASScxx . . $ `gtk/deprecated/gtkcellrenderer.h:81:9`! (cell)->snapshotcxx . . $ _GtkCellRendererClass#snapshot. (cell, |
| 696 | snapshot, |
| 697 | widget, |
| 698 | background_area, |
| 699 | cell_area, |
| 700 | flags); |
| 701 | gtk_style_context_restorecxx . . $ gtk_style_context_restore(568fd35591c7198b). (context); |
| 702 | gtk_snapshot_popcxx . . $ gtk_snapshot_pop(afbd0a0317d5665f). (snapshot); |
| 703 | gtk_snapshot_popcxx . . $ gtk_snapshot_pop(afbd0a0317d5665f). (snapshot); |
| 704 | } |
| 705 | |
| 706 | /** |
| 707 | * gtk_cell_renderer_activate: |
| 708 | * @cell: a `GtkCellRenderer` |
| 709 | * @event: a `GdkEvent` |
| 710 | * @widget: widget that received the event |
| 711 | * @path: widget-dependent string representation of the event location; |
| 712 | * e.g. for `GtkTreeView`, a string representation of `GtkTreePath` |
| 713 | * @background_area: background area as passed to gtk_cell_renderer_render() |
| 714 | * @cell_area: cell area as passed to gtk_cell_renderer_render() |
| 715 | * @flags: render flags |
| 716 | * |
| 717 | * Passes an activate event to the cell renderer for possible processing. |
| 718 | * Some cell renderers may use events; for example, `GtkCellRendererToggle` |
| 719 | * toggles when it gets a mouse click. |
| 720 | * |
| 721 | * Returns: %TRUE if the event was consumed/handled |
| 722 | * |
| 723 | * Deprecated: 4.10 |
| 724 | **/ |
| 725 | gbooleancxx . . $ gboolean# |
| 726 | gtk_cell_renderer_activatecxx . . $ gtk_cell_renderer_activate(485c03fb59ea52d2). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 727 | GdkEventcxx . . $ GdkEvent# *event, |
| 728 | GtkWidgetcxx . . $ GtkWidget# *widget, |
| 729 | const char *path, |
| 730 | const GdkRectanglecxx . . $ GdkRectangle# *background_area, |
| 731 | const GdkRectanglecxx . . $ GdkRectangle# *cell_area, |
| 732 | GtkCellRendererStatecxx . . $ GtkCellRendererState# flags) |
| 733 | { |
| 734 | GtkCellRendererPrivatecxx . . $ GtkCellRendererPrivate# *priv; |
| 735 | |
| 736 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!); |
| 737 | |
| 738 | priv = cell->privcxx . . $ _GtkCellRenderer#priv.; |
| 739 | |
| 740 | if (priv->modecxx . . $ _GtkCellRendererPrivate#mode. != GTK_CELL_RENDERER_MODE_ACTIVATABLEcxx . . $ GTK_CELL_RENDERER_MODE_ACTIVATABLE.) |
| 741 | return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 742 | |
| 743 | if (GTK_CELL_RENDERER_GET_CLASScxx . . $ `gtk/deprecated/gtkcellrenderer.h:81:9`! (cell)->activatecxx . . $ _GtkCellRendererClass#activate. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 744 | return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 745 | |
| 746 | return GTK_CELL_RENDERER_GET_CLASScxx . . $ `gtk/deprecated/gtkcellrenderer.h:81:9`! (cell)->activatecxx . . $ _GtkCellRendererClass#activate. (cell, |
| 747 | event, |
| 748 | widget, |
| 749 | path, |
| 750 | (GdkRectanglecxx . . $ GdkRectangle# *) background_area, |
| 751 | (GdkRectanglecxx . . $ GdkRectangle# *) cell_area, |
| 752 | flags); |
| 753 | } |
| 754 | |
| 755 | /** |
| 756 | * gtk_cell_renderer_start_editing: |
| 757 | * @cell: a `GtkCellRenderer` |
| 758 | * @event: (nullable): a `GdkEvent` |
| 759 | * @widget: widget that received the event |
| 760 | * @path: widget-dependent string representation of the event location; |
| 761 | * e.g. for `GtkTreeView`, a string representation of `GtkTreePath` |
| 762 | * @background_area: background area as passed to gtk_cell_renderer_render() |
| 763 | * @cell_area: cell area as passed to gtk_cell_renderer_render() |
| 764 | * @flags: render flags |
| 765 | * |
| 766 | * Starts editing the contents of this @cell, through a new `GtkCellEditable` |
| 767 | * widget created by the `GtkCellRenderer`Class.start_editing virtual function. |
| 768 | * |
| 769 | * Returns: (nullable) (transfer none): A new `GtkCellEditable` for editing this |
| 770 | * @cell, or %NULL if editing is not possible |
| 771 | * |
| 772 | * Deprecated: 4.10 |
| 773 | **/ |
| 774 | GtkCellEditablecxx . . $ GtkCellEditable# * |
| 775 | gtk_cell_renderer_start_editingcxx . . $ gtk_cell_renderer_start_editing(ea43edb464ffc494). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 776 | GdkEventcxx . . $ GdkEvent# *event, |
| 777 | GtkWidgetcxx . . $ GtkWidget# *widget, |
| 778 | const char *path, |
| 779 | const GdkRectanglecxx . . $ GdkRectangle# *background_area, |
| 780 | const GdkRectanglecxx . . $ GdkRectangle# *cell_area, |
| 781 | GtkCellRendererStatecxx . . $ GtkCellRendererState# flags) |
| 782 | |
| 783 | { |
| 784 | GtkCellRendererPrivatecxx . . $ GtkCellRendererPrivate# *priv; |
| 785 | GtkCellEditablecxx . . $ GtkCellEditable# *editable; |
| 786 | |
| 787 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 788 | |
| 789 | priv = cell->privcxx . . $ _GtkCellRenderer#priv.; |
| 790 | |
| 791 | if (priv->modecxx . . $ _GtkCellRendererPrivate#mode. != GTK_CELL_RENDERER_MODE_EDITABLEcxx . . $ GTK_CELL_RENDERER_MODE_EDITABLE.) |
| 792 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 793 | |
| 794 | if (GTK_CELL_RENDERER_GET_CLASScxx . . $ `gtk/deprecated/gtkcellrenderer.h:81:9`! (cell)->start_editingcxx . . $ _GtkCellRendererClass#start_editing. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 795 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 796 | |
| 797 | editable = GTK_CELL_RENDERER_GET_CLASScxx . . $ `gtk/deprecated/gtkcellrenderer.h:81:9`! (cell)->start_editingcxx . . $ _GtkCellRendererClass#start_editing. (cell, |
| 798 | event, |
| 799 | widget, |
| 800 | path, |
| 801 | (GdkRectanglecxx . . $ GdkRectangle# *) background_area, |
| 802 | (GdkRectanglecxx . . $ GdkRectangle# *) cell_area, |
| 803 | flags); |
| 804 | if (editable == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 805 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 806 | |
| 807 | gtk_widget_add_css_classcxx . . $ gtk_widget_add_css_class(3e0616a87a6c51e5). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (editable), "cell"); |
| 808 | |
| 809 | g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (cell, |
| 810 | cell_renderer_signalscxx . . $ cell_renderer_signals.[EDITING_STARTEDcxx . . $ EDITING_STARTED.], 0, |
| 811 | editable, path); |
| 812 | |
| 813 | priv->editingcxx . . $ _GtkCellRendererPrivate#editing. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 814 | |
| 815 | return editable; |
| 816 | } |
| 817 | |
| 818 | /** |
| 819 | * gtk_cell_renderer_set_fixed_size: |
| 820 | * @cell: A `GtkCellRenderer` |
| 821 | * @width: the width of the cell renderer, or -1 |
| 822 | * @height: the height of the cell renderer, or -1 |
| 823 | * |
| 824 | * Sets the renderer size to be explicit, independent of the properties set. |
| 825 | * |
| 826 | * Deprecated: 4.10 |
| 827 | **/ |
| 828 | void |
| 829 | gtk_cell_renderer_set_fixed_sizecxx . . $ gtk_cell_renderer_set_fixed_size(a5ffd8d1e4aff98a). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 830 | int width, |
| 831 | int height) |
| 832 | { |
| 833 | GtkCellRendererPrivatecxx . . $ GtkCellRendererPrivate# *priv; |
| 834 | |
| 835 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell)); |
| 836 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (width >= -1 && height >= -1); |
| 837 | |
| 838 | priv = cell->privcxx . . $ _GtkCellRenderer#priv.; |
| 839 | |
| 840 | if ((width != priv->widthcxx . . $ _GtkCellRendererPrivate#width.) || (height != priv->heightcxx . . $ _GtkCellRendererPrivate#height.)) |
| 841 | { |
| 842 | g_object_freeze_notifycxx . . $ g_object_freeze_notify(6087475fa43034d3). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (cell)); |
| 843 | |
| 844 | if (width != priv->widthcxx . . $ _GtkCellRendererPrivate#width.) |
| 845 | { |
| 846 | priv->widthcxx . . $ _GtkCellRendererPrivate#width. = width; |
| 847 | g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (cell), "width"); |
| 848 | } |
| 849 | |
| 850 | if (height != priv->heightcxx . . $ _GtkCellRendererPrivate#height.) |
| 851 | { |
| 852 | priv->heightcxx . . $ _GtkCellRendererPrivate#height. = height; |
| 853 | g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (cell), "height"); |
| 854 | } |
| 855 | |
| 856 | g_object_thaw_notifycxx . . $ g_object_thaw_notify(6087475fa43034d3). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (cell)); |
| 857 | } |
| 858 | } |
| 859 | |
| 860 | /** |
| 861 | * gtk_cell_renderer_get_fixed_size: |
| 862 | * @cell: A `GtkCellRenderer` |
| 863 | * @width: (out) (optional): location to fill in with the fixed width of the cell |
| 864 | * @height: (out) (optional): location to fill in with the fixed height of the cell |
| 865 | * |
| 866 | * Fills in @width and @height with the appropriate size of @cell. |
| 867 | * |
| 868 | * Deprecated: 4.10 |
| 869 | */ |
| 870 | void |
| 871 | gtk_cell_renderer_get_fixed_sizecxx . . $ gtk_cell_renderer_get_fixed_size(4d6cf81189c7015f). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 872 | int *width, |
| 873 | int *height) |
| 874 | { |
| 875 | GtkCellRendererPrivatecxx . . $ GtkCellRendererPrivate# *priv; |
| 876 | |
| 877 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell)); |
| 878 | |
| 879 | priv = cell->privcxx . . $ _GtkCellRenderer#priv.; |
| 880 | |
| 881 | if (width) |
| 882 | *width = priv->widthcxx . . $ _GtkCellRendererPrivate#width.; |
| 883 | if (height) |
| 884 | *height = priv->heightcxx . . $ _GtkCellRendererPrivate#height.; |
| 885 | } |
| 886 | |
| 887 | /** |
| 888 | * gtk_cell_renderer_set_alignment: |
| 889 | * @cell: A `GtkCellRenderer` |
| 890 | * @xalign: the x alignment of the cell renderer |
| 891 | * @yalign: the y alignment of the cell renderer |
| 892 | * |
| 893 | * Sets the renderer’s alignment within its available space. |
| 894 | * |
| 895 | * Deprecated: 4.10 |
| 896 | **/ |
| 897 | void |
| 898 | gtk_cell_renderer_set_alignmentcxx . . $ gtk_cell_renderer_set_alignment(ffe6b1cc9752fbc6). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 899 | float xalign, |
| 900 | float yalign) |
| 901 | { |
| 902 | GtkCellRendererPrivatecxx . . $ GtkCellRendererPrivate# *priv; |
| 903 | |
| 904 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell)); |
| 905 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (xalign >= 0.0 && xalign <= 1.0); |
| 906 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (yalign >= 0.0 && yalign <= 1.0); |
| 907 | |
| 908 | priv = cell->privcxx . . $ _GtkCellRenderer#priv.; |
| 909 | |
| 910 | if ((xalign != priv->xaligncxx . . $ _GtkCellRendererPrivate#xalign.) || (yalign != priv->yaligncxx . . $ _GtkCellRendererPrivate#yalign.)) |
| 911 | { |
| 912 | g_object_freeze_notifycxx . . $ g_object_freeze_notify(6087475fa43034d3). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (cell)); |
| 913 | |
| 914 | if (xalign != priv->xaligncxx . . $ _GtkCellRendererPrivate#xalign.) |
| 915 | { |
| 916 | priv->xaligncxx . . $ _GtkCellRendererPrivate#xalign. = xalign; |
| 917 | g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (cell), "xalign"); |
| 918 | } |
| 919 | |
| 920 | if (yalign != priv->yaligncxx . . $ _GtkCellRendererPrivate#yalign.) |
| 921 | { |
| 922 | priv->yaligncxx . . $ _GtkCellRendererPrivate#yalign. = yalign; |
| 923 | g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (cell), "yalign"); |
| 924 | } |
| 925 | |
| 926 | g_object_thaw_notifycxx . . $ g_object_thaw_notify(6087475fa43034d3). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (cell)); |
| 927 | } |
| 928 | } |
| 929 | |
| 930 | /** |
| 931 | * gtk_cell_renderer_get_alignment: |
| 932 | * @cell: A `GtkCellRenderer` |
| 933 | * @xalign: (out) (optional): location to fill in with the x alignment of the cell |
| 934 | * @yalign: (out) (optional): location to fill in with the y alignment of the cell |
| 935 | * |
| 936 | * Fills in @xalign and @yalign with the appropriate values of @cell. |
| 937 | * |
| 938 | * Deprecated: 4.10 |
| 939 | */ |
| 940 | void |
| 941 | gtk_cell_renderer_get_alignmentcxx . . $ gtk_cell_renderer_get_alignment(dac41238e53330e0). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 942 | float *xalign, |
| 943 | float *yalign) |
| 944 | { |
| 945 | GtkCellRendererPrivatecxx . . $ GtkCellRendererPrivate# *priv; |
| 946 | |
| 947 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell)); |
| 948 | |
| 949 | priv = cell->privcxx . . $ _GtkCellRenderer#priv.; |
| 950 | |
| 951 | if (xalign) |
| 952 | *xalign = priv->xaligncxx . . $ _GtkCellRendererPrivate#xalign.; |
| 953 | if (yalign) |
| 954 | *yalign = priv->yaligncxx . . $ _GtkCellRendererPrivate#yalign.; |
| 955 | } |
| 956 | |
| 957 | /** |
| 958 | * gtk_cell_renderer_set_padding: |
| 959 | * @cell: A `GtkCellRenderer` |
| 960 | * @xpad: the x padding of the cell renderer |
| 961 | * @ypad: the y padding of the cell renderer |
| 962 | * |
| 963 | * Sets the renderer’s padding. |
| 964 | * |
| 965 | * Deprecated: 4.10 |
| 966 | **/ |
| 967 | void |
| 968 | gtk_cell_renderer_set_paddingcxx . . $ gtk_cell_renderer_set_padding(a5ffd8d1e4aff98a). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 969 | int xpad, |
| 970 | int ypad) |
| 971 | { |
| 972 | GtkCellRendererPrivatecxx . . $ GtkCellRendererPrivate# *priv; |
| 973 | |
| 974 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell)); |
| 975 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (xpad >= 0 && ypad >= 0); |
| 976 | |
| 977 | priv = cell->privcxx . . $ _GtkCellRenderer#priv.; |
| 978 | |
| 979 | if ((xpad != priv->xpadcxx . . $ _GtkCellRendererPrivate#xpad.) || (ypad != priv->ypadcxx . . $ _GtkCellRendererPrivate#ypad.)) |
| 980 | { |
| 981 | g_object_freeze_notifycxx . . $ g_object_freeze_notify(6087475fa43034d3). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (cell)); |
| 982 | |
| 983 | if (xpad != priv->xpadcxx . . $ _GtkCellRendererPrivate#xpad.) |
| 984 | { |
| 985 | priv->xpadcxx . . $ _GtkCellRendererPrivate#xpad. = xpad; |
| 986 | g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (cell), "xpad"); |
| 987 | } |
| 988 | |
| 989 | if (ypad != priv->ypadcxx . . $ _GtkCellRendererPrivate#ypad.) |
| 990 | { |
| 991 | priv->ypadcxx . . $ _GtkCellRendererPrivate#ypad. = ypad; |
| 992 | g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (cell), "ypad"); |
| 993 | } |
| 994 | |
| 995 | g_object_thaw_notifycxx . . $ g_object_thaw_notify(6087475fa43034d3). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (cell)); |
| 996 | } |
| 997 | } |
| 998 | |
| 999 | /** |
| 1000 | * gtk_cell_renderer_get_padding: |
| 1001 | * @cell: A `GtkCellRenderer` |
| 1002 | * @xpad: (out) (optional): location to fill in with the x padding of the cell |
| 1003 | * @ypad: (out) (optional): location to fill in with the y padding of the cell |
| 1004 | * |
| 1005 | * Fills in @xpad and @ypad with the appropriate values of @cell. |
| 1006 | * |
| 1007 | * Deprecated: 4.10 |
| 1008 | */ |
| 1009 | void |
| 1010 | gtk_cell_renderer_get_paddingcxx . . $ gtk_cell_renderer_get_padding(4d6cf81189c7015f). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 1011 | int *xpad, |
| 1012 | int *ypad) |
| 1013 | { |
| 1014 | GtkCellRendererPrivatecxx . . $ GtkCellRendererPrivate# *priv; |
| 1015 | |
| 1016 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell)); |
| 1017 | |
| 1018 | priv = cell->privcxx . . $ _GtkCellRenderer#priv.; |
| 1019 | |
| 1020 | if (xpad) |
| 1021 | *xpad = priv->xpadcxx . . $ _GtkCellRendererPrivate#xpad.; |
| 1022 | if (ypad) |
| 1023 | *ypad = priv->ypadcxx . . $ _GtkCellRendererPrivate#ypad.; |
| 1024 | } |
| 1025 | |
| 1026 | /** |
| 1027 | * gtk_cell_renderer_set_visible: |
| 1028 | * @cell: A `GtkCellRenderer` |
| 1029 | * @visible: the visibility of the cell |
| 1030 | * |
| 1031 | * Sets the cell renderer’s visibility. |
| 1032 | * |
| 1033 | * Deprecated: 4.10 |
| 1034 | **/ |
| 1035 | void |
| 1036 | gtk_cell_renderer_set_visiblecxx . . $ gtk_cell_renderer_set_visible(ce63b40b733b81ac). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 1037 | gbooleancxx . . $ gboolean# visible) |
| 1038 | { |
| 1039 | GtkCellRendererPrivatecxx . . $ GtkCellRendererPrivate# *priv; |
| 1040 | |
| 1041 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell)); |
| 1042 | |
| 1043 | priv = cell->privcxx . . $ _GtkCellRenderer#priv.; |
| 1044 | |
| 1045 | if (priv->visiblecxx . . $ _GtkCellRendererPrivate#visible. != visible) |
| 1046 | { |
| 1047 | priv->visiblecxx . . $ _GtkCellRendererPrivate#visible. = visible ? TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`! : FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 1048 | g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (cell), "visible"); |
| 1049 | } |
| 1050 | } |
| 1051 | |
| 1052 | /** |
| 1053 | * gtk_cell_renderer_get_visible: |
| 1054 | * @cell: A `GtkCellRenderer` |
| 1055 | * |
| 1056 | * Returns the cell renderer’s visibility. |
| 1057 | * |
| 1058 | * Returns: %TRUE if the cell renderer is visible |
| 1059 | * |
| 1060 | * Deprecated: 4.10 |
| 1061 | */ |
| 1062 | gbooleancxx . . $ gboolean# |
| 1063 | gtk_cell_renderer_get_visiblecxx . . $ gtk_cell_renderer_get_visible(d58dbe04fca29844). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell) |
| 1064 | { |
| 1065 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!); |
| 1066 | |
| 1067 | return cell->privcxx . . $ _GtkCellRenderer#priv.->visiblecxx . . $ _GtkCellRendererPrivate#visible.; |
| 1068 | } |
| 1069 | |
| 1070 | /** |
| 1071 | * gtk_cell_renderer_set_sensitive: |
| 1072 | * @cell: A `GtkCellRenderer` |
| 1073 | * @sensitive: the sensitivity of the cell |
| 1074 | * |
| 1075 | * Sets the cell renderer’s sensitivity. |
| 1076 | * |
| 1077 | * Deprecated: 4.10 |
| 1078 | **/ |
| 1079 | void |
| 1080 | gtk_cell_renderer_set_sensitivecxx . . $ gtk_cell_renderer_set_sensitive(ce63b40b733b81ac). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 1081 | gbooleancxx . . $ gboolean# sensitive) |
| 1082 | { |
| 1083 | GtkCellRendererPrivatecxx . . $ GtkCellRendererPrivate# *priv; |
| 1084 | |
| 1085 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell)); |
| 1086 | |
| 1087 | priv = cell->privcxx . . $ _GtkCellRenderer#priv.; |
| 1088 | |
| 1089 | if (priv->sensitivecxx . . $ _GtkCellRendererPrivate#sensitive. != sensitive) |
| 1090 | { |
| 1091 | priv->sensitivecxx . . $ _GtkCellRendererPrivate#sensitive. = sensitive ? TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`! : FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 1092 | g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (cell), "sensitive"); |
| 1093 | } |
| 1094 | } |
| 1095 | |
| 1096 | /** |
| 1097 | * gtk_cell_renderer_get_sensitive: |
| 1098 | * @cell: A `GtkCellRenderer` |
| 1099 | * |
| 1100 | * Returns the cell renderer’s sensitivity. |
| 1101 | * |
| 1102 | * Returns: %TRUE if the cell renderer is sensitive |
| 1103 | * |
| 1104 | * Deprecated: 4.10 |
| 1105 | */ |
| 1106 | gbooleancxx . . $ gboolean# |
| 1107 | gtk_cell_renderer_get_sensitivecxx . . $ gtk_cell_renderer_get_sensitive(d58dbe04fca29844). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell) |
| 1108 | { |
| 1109 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!); |
| 1110 | |
| 1111 | return cell->privcxx . . $ _GtkCellRenderer#priv.->sensitivecxx . . $ _GtkCellRendererPrivate#sensitive.; |
| 1112 | } |
| 1113 | |
| 1114 | |
| 1115 | /** |
| 1116 | * gtk_cell_renderer_is_activatable: |
| 1117 | * @cell: A `GtkCellRenderer` |
| 1118 | * |
| 1119 | * Checks whether the cell renderer can do something when activated. |
| 1120 | * |
| 1121 | * Returns: %TRUE if the cell renderer can do anything when activated |
| 1122 | * |
| 1123 | * Deprecated: 4.10 |
| 1124 | */ |
| 1125 | gbooleancxx . . $ gboolean# |
| 1126 | gtk_cell_renderer_is_activatablecxx . . $ gtk_cell_renderer_is_activatable(d58dbe04fca29844). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell) |
| 1127 | { |
| 1128 | GtkCellRendererPrivatecxx . . $ GtkCellRendererPrivate# *priv; |
| 1129 | |
| 1130 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!); |
| 1131 | |
| 1132 | priv = cell->privcxx . . $ _GtkCellRenderer#priv.; |
| 1133 | |
| 1134 | return (priv->visiblecxx . . $ _GtkCellRendererPrivate#visible. && |
| 1135 | (priv->modecxx . . $ _GtkCellRendererPrivate#mode. == GTK_CELL_RENDERER_MODE_EDITABLEcxx . . $ GTK_CELL_RENDERER_MODE_EDITABLE. || |
| 1136 | priv->modecxx . . $ _GtkCellRendererPrivate#mode. == GTK_CELL_RENDERER_MODE_ACTIVATABLEcxx . . $ GTK_CELL_RENDERER_MODE_ACTIVATABLE.)); |
| 1137 | } |
| 1138 | |
| 1139 | |
| 1140 | /** |
| 1141 | * gtk_cell_renderer_stop_editing: |
| 1142 | * @cell: A `GtkCellRenderer` |
| 1143 | * @canceled: %TRUE if the editing has been canceled |
| 1144 | * |
| 1145 | * Informs the cell renderer that the editing is stopped. |
| 1146 | * If @canceled is %TRUE, the cell renderer will emit the |
| 1147 | * `GtkCellRenderer`::editing-canceled signal. |
| 1148 | * |
| 1149 | * This function should be called by cell renderer implementations |
| 1150 | * in response to the `GtkCellEditable::editing-done` signal of |
| 1151 | * `GtkCellEditable`. |
| 1152 | * |
| 1153 | * Deprecated: 4.10 |
| 1154 | **/ |
| 1155 | void |
| 1156 | gtk_cell_renderer_stop_editingcxx . . $ gtk_cell_renderer_stop_editing(ce63b40b733b81ac). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 1157 | gbooleancxx . . $ gboolean# canceled) |
| 1158 | { |
| 1159 | GtkCellRendererPrivatecxx . . $ GtkCellRendererPrivate# *priv; |
| 1160 | |
| 1161 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell)); |
| 1162 | |
| 1163 | priv = cell->privcxx . . $ _GtkCellRenderer#priv.; |
| 1164 | |
| 1165 | if (priv->editingcxx . . $ _GtkCellRendererPrivate#editing.) |
| 1166 | { |
| 1167 | priv->editingcxx . . $ _GtkCellRendererPrivate#editing. = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 1168 | if (canceled) |
| 1169 | g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (cell, cell_renderer_signalscxx . . $ cell_renderer_signals.[EDITING_CANCELEDcxx . . $ EDITING_CANCELED.], 0); |
| 1170 | } |
| 1171 | } |
| 1172 | |
| 1173 | static void |
| 1174 | gtk_cell_renderer_real_get_preferred_sizecxx . . $ gtk_cell_renderer_real_get_preferred_size(fc68c7945ed705d4). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 1175 | GtkWidgetcxx . . $ GtkWidget# *widget, |
| 1176 | GtkOrientationcxx . . $ GtkOrientation# orientation, |
| 1177 | int *minimum_size, |
| 1178 | int *natural_size) |
| 1179 | { |
| 1180 | GtkRequisitioncxx . . $ GtkRequisition# min_req; |
| 1181 | |
| 1182 | min_req.widthcxx . . $ _GtkRequisition#width. = 0; |
| 1183 | min_req.heightcxx . . $ _GtkRequisition#height. = 0; |
| 1184 | |
| 1185 | if (orientation == GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL.) |
| 1186 | { |
| 1187 | if (minimum_size) |
| 1188 | *minimum_size = min_req.widthcxx . . $ _GtkRequisition#width.; |
| 1189 | |
| 1190 | if (natural_size) |
| 1191 | *natural_size = min_req.widthcxx . . $ _GtkRequisition#width.; |
| 1192 | } |
| 1193 | else |
| 1194 | { |
| 1195 | if (minimum_size) |
| 1196 | *minimum_size = min_req.heightcxx . . $ _GtkRequisition#height.; |
| 1197 | |
| 1198 | if (natural_size) |
| 1199 | *natural_size = min_req.heightcxx . . $ _GtkRequisition#height.; |
| 1200 | } |
| 1201 | } |
| 1202 | |
| 1203 | static GtkSizeRequestModecxx . . $ GtkSizeRequestMode# |
| 1204 | gtk_cell_renderer_real_get_request_modecxx . . $ gtk_cell_renderer_real_get_request_mode(8aa49182db99b52c). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell) |
| 1205 | { |
| 1206 | /* By default cell renderers are height-for-width. */ |
| 1207 | return GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTHcxx . . $ GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH.; |
| 1208 | } |
| 1209 | |
| 1210 | static void |
| 1211 | gtk_cell_renderer_real_get_preferred_widthcxx . . $ gtk_cell_renderer_real_get_preferred_width(d5efea385435c9de). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 1212 | GtkWidgetcxx . . $ GtkWidget# *widget, |
| 1213 | int *minimum_size, |
| 1214 | int *natural_size) |
| 1215 | { |
| 1216 | gtk_cell_renderer_real_get_preferred_sizecxx . . $ gtk_cell_renderer_real_get_preferred_size(fc68c7945ed705d4). (cell, widget, GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL., |
| 1217 | minimum_size, natural_size); |
| 1218 | } |
| 1219 | |
| 1220 | static void |
| 1221 | gtk_cell_renderer_real_get_preferred_heightcxx . . $ gtk_cell_renderer_real_get_preferred_height(d5efea385435c9de). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 1222 | GtkWidgetcxx . . $ GtkWidget# *widget, |
| 1223 | int *minimum_size, |
| 1224 | int *natural_size) |
| 1225 | { |
| 1226 | gtk_cell_renderer_real_get_preferred_sizecxx . . $ gtk_cell_renderer_real_get_preferred_size(fc68c7945ed705d4). (cell, widget, GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL., |
| 1227 | minimum_size, natural_size); |
| 1228 | } |
| 1229 | |
| 1230 | |
| 1231 | static void |
| 1232 | gtk_cell_renderer_real_get_preferred_height_for_widthcxx . . $ gtk_cell_renderer_real_get_preferred_height_for_width(1257a0e0f3e3349e). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 1233 | GtkWidgetcxx . . $ GtkWidget# *widget, |
| 1234 | int width, |
| 1235 | int *minimum_height, |
| 1236 | int *natural_height) |
| 1237 | { |
| 1238 | gtk_cell_renderer_get_preferred_heightcxx . . $ gtk_cell_renderer_get_preferred_height(d5efea385435c9de). (cell, widget, minimum_height, natural_height); |
| 1239 | } |
| 1240 | |
| 1241 | static void |
| 1242 | gtk_cell_renderer_real_get_preferred_width_for_heightcxx . . $ gtk_cell_renderer_real_get_preferred_width_for_height(1257a0e0f3e3349e). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 1243 | GtkWidgetcxx . . $ GtkWidget# *widget, |
| 1244 | int height, |
| 1245 | int *minimum_width, |
| 1246 | int *natural_width) |
| 1247 | { |
| 1248 | gtk_cell_renderer_get_preferred_widthcxx . . $ gtk_cell_renderer_get_preferred_width(d5efea385435c9de). (cell, widget, minimum_width, natural_width); |
| 1249 | } |
| 1250 | |
| 1251 | |
| 1252 | /* Default implementation assumes that a cell renderer will never use more |
| 1253 | * space than its natural size (this is fine for toggles and pixbufs etc |
| 1254 | * but needs to be overridden from wrapping/ellipsizing text renderers) */ |
| 1255 | static void |
| 1256 | gtk_cell_renderer_real_get_aligned_areacxx . . $ gtk_cell_renderer_real_get_aligned_area(65ae412043e58747). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 1257 | GtkWidgetcxx . . $ GtkWidget# *widget, |
| 1258 | GtkCellRendererStatecxx . . $ GtkCellRendererState# flags, |
| 1259 | const GdkRectanglecxx . . $ GdkRectangle# *cell_area, |
| 1260 | GdkRectanglecxx . . $ GdkRectangle# *aligned_area) |
| 1261 | { |
| 1262 | int opposite_size, x_offset, y_offset; |
| 1263 | int natural_size; |
| 1264 | |
| 1265 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell)); |
| 1266 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (widget)); |
| 1267 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (cell_area != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1268 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (aligned_area != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1269 | |
| 1270 | *aligned_area = *cell_area; |
| 1271 | |
| 1272 | /* Trim up the aligned size */ |
| 1273 | if (gtk_cell_renderer_get_request_modecxx . . $ gtk_cell_renderer_get_request_mode(8aa49182db99b52c). (cell) == GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTHcxx . . $ GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH.) |
| 1274 | { |
| 1275 | gtk_cell_renderer_get_preferred_widthcxx . . $ gtk_cell_renderer_get_preferred_width(d5efea385435c9de). (cell, widget, |
| 1276 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &natural_size); |
| 1277 | |
| 1278 | aligned_area->widthcxx . . $ _cairo_rectangle_int#width. = MINcxx . . $ `<external>/12741050725406041920/gmacros.h:978:9`! (aligned_area->width, natural_size); |
| 1279 | |
| 1280 | gtk_cell_renderer_get_preferred_height_for_widthcxx . . $ gtk_cell_renderer_get_preferred_height_for_width(1257a0e0f3e3349e). (cell, widget, |
| 1281 | aligned_area->widthcxx . . $ _cairo_rectangle_int#width., |
| 1282 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &opposite_size); |
| 1283 | |
| 1284 | aligned_area->heightcxx . . $ _cairo_rectangle_int#height. = MINcxx . . $ `<external>/12741050725406041920/gmacros.h:978:9`! (opposite_size, aligned_area->height); |
| 1285 | } |
| 1286 | else |
| 1287 | { |
| 1288 | gtk_cell_renderer_get_preferred_heightcxx . . $ gtk_cell_renderer_get_preferred_height(d5efea385435c9de). (cell, widget, |
| 1289 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &natural_size); |
| 1290 | |
| 1291 | aligned_area->heightcxx . . $ _cairo_rectangle_int#height. = MINcxx . . $ `<external>/12741050725406041920/gmacros.h:978:9`! (aligned_area->width, natural_size); |
| 1292 | |
| 1293 | gtk_cell_renderer_get_preferred_width_for_heightcxx . . $ gtk_cell_renderer_get_preferred_width_for_height(1257a0e0f3e3349e). (cell, widget, |
| 1294 | aligned_area->heightcxx . . $ _cairo_rectangle_int#height., |
| 1295 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &opposite_size); |
| 1296 | |
| 1297 | aligned_area->widthcxx . . $ _cairo_rectangle_int#width. = MINcxx . . $ `<external>/12741050725406041920/gmacros.h:978:9`! (opposite_size, aligned_area->width); |
| 1298 | } |
| 1299 | |
| 1300 | /* offset the cell position */ |
| 1301 | _gtk_cell_renderer_calc_offsetcxx . . $ _gtk_cell_renderer_calc_offset(bb4585accc47fbe4). (cell, cell_area, |
| 1302 | gtk_widget_get_directioncxx . . $ gtk_widget_get_direction(a6537c3bfdacec30). (widget), |
| 1303 | aligned_area->widthcxx . . $ _cairo_rectangle_int#width., |
| 1304 | aligned_area->heightcxx . . $ _cairo_rectangle_int#height., |
| 1305 | &x_offset, &y_offset); |
| 1306 | |
| 1307 | aligned_area->xcxx . . $ _cairo_rectangle_int#x. += x_offset; |
| 1308 | aligned_area->ycxx . . $ _cairo_rectangle_int#y. += y_offset; |
| 1309 | } |
| 1310 | |
| 1311 | |
| 1312 | /* An internal convenience function for some containers to peek at the |
| 1313 | * cell alignment in a target allocation (used to draw focus and align |
| 1314 | * cells in the icon view). |
| 1315 | * |
| 1316 | * Note this is only a trivial “align * (allocation - request)” operation. |
| 1317 | */ |
| 1318 | void |
| 1319 | _gtk_cell_renderer_calc_offsetcxx . . $ _gtk_cell_renderer_calc_offset(bb4585accc47fbe4). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 1320 | const GdkRectanglecxx . . $ GdkRectangle# *cell_area, |
| 1321 | GtkTextDirectioncxx . . $ GtkTextDirection# direction, |
| 1322 | int width, |
| 1323 | int height, |
| 1324 | int *x_offset, |
| 1325 | int *y_offset) |
| 1326 | { |
| 1327 | GtkCellRendererPrivatecxx . . $ GtkCellRendererPrivate# *priv; |
| 1328 | |
| 1329 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell)); |
| 1330 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (cell_area != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1331 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (x_offset || y_offset); |
| 1332 | |
| 1333 | priv = cell->privcxx . . $ _GtkCellRenderer#priv.; |
| 1334 | |
| 1335 | if (x_offset) |
| 1336 | { |
| 1337 | *x_offset = (((direction == GTK_TEXT_DIR_RTLcxx . . $ GTK_TEXT_DIR_RTL.) ? |
| 1338 | (1.0 - priv->xaligncxx . . $ _GtkCellRendererPrivate#xalign.) : priv->xaligncxx . . $ _GtkCellRendererPrivate#xalign.) * |
| 1339 | (cell_area->widthcxx . . $ _cairo_rectangle_int#width. - width)); |
| 1340 | *x_offset = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (*x_offset, 0); |
| 1341 | } |
| 1342 | if (y_offset) |
| 1343 | { |
| 1344 | *y_offset = (priv->yaligncxx . . $ _GtkCellRendererPrivate#yalign. * |
| 1345 | (cell_area->heightcxx . . $ _cairo_rectangle_int#height. - height)); |
| 1346 | *y_offset = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (*y_offset, 0); |
| 1347 | } |
| 1348 | } |
| 1349 | |
| 1350 | /** |
| 1351 | * gtk_cell_renderer_get_request_mode: |
| 1352 | * @cell: a `GtkCellRenderer` instance |
| 1353 | * |
| 1354 | * Gets whether the cell renderer prefers a height-for-width layout |
| 1355 | * or a width-for-height layout. |
| 1356 | * |
| 1357 | * Returns: The `GtkSizeRequestMode` preferred by this renderer. |
| 1358 | * |
| 1359 | * Deprecated: 4.10 |
| 1360 | */ |
| 1361 | GtkSizeRequestModecxx . . $ GtkSizeRequestMode# |
| 1362 | gtk_cell_renderer_get_request_modecxx . . $ gtk_cell_renderer_get_request_mode(8aa49182db99b52c). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell) |
| 1363 | { |
| 1364 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!); |
| 1365 | |
| 1366 | return GTK_CELL_RENDERER_GET_CLASScxx . . $ `gtk/deprecated/gtkcellrenderer.h:81:9`! (cell)->get_request_modecxx . . $ _GtkCellRendererClass#get_request_mode. (cell); |
| 1367 | } |
| 1368 | |
| 1369 | /** |
| 1370 | * gtk_cell_renderer_get_preferred_width: |
| 1371 | * @cell: a `GtkCellRenderer` instance |
| 1372 | * @widget: the `GtkWidget` this cell will be rendering to |
| 1373 | * @minimum_size: (out) (optional): location to store the minimum size |
| 1374 | * @natural_size: (out) (optional): location to store the natural size |
| 1375 | * |
| 1376 | * Retrieves a renderer’s natural size when rendered to @widget. |
| 1377 | * |
| 1378 | * Deprecated: 4.10 |
| 1379 | */ |
| 1380 | void |
| 1381 | gtk_cell_renderer_get_preferred_widthcxx . . $ gtk_cell_renderer_get_preferred_width(d5efea385435c9de). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 1382 | GtkWidgetcxx . . $ GtkWidget# *widget, |
| 1383 | int *minimum_size, |
| 1384 | int *natural_size) |
| 1385 | { |
| 1386 | GtkCellRendererClasscxx . . $ GtkCellRendererClass# *klass; |
| 1387 | int width; |
| 1388 | |
| 1389 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell)); |
| 1390 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (widget)); |
| 1391 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! != minimum_size || NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! != natural_size); |
| 1392 | |
| 1393 | gtk_cell_renderer_get_fixed_sizecxx . . $ gtk_cell_renderer_get_fixed_size(4d6cf81189c7015f). (GTK_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:77:9`! (cell), &width, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1394 | |
| 1395 | if (width < 0) |
| 1396 | { |
| 1397 | klass = GTK_CELL_RENDERER_GET_CLASScxx . . $ `gtk/deprecated/gtkcellrenderer.h:81:9`! (cell); |
| 1398 | klass->get_preferred_widthcxx . . $ _GtkCellRendererClass#get_preferred_width. (cell, widget, minimum_size, natural_size); |
| 1399 | } |
| 1400 | else |
| 1401 | { |
| 1402 | if (minimum_size) |
| 1403 | *minimum_size = width; |
| 1404 | if (natural_size) |
| 1405 | *natural_size = width; |
| 1406 | } |
| 1407 | |
| 1408 | #if DEBUG_CELL_SIZE_REQUESTcxx . . $ `gtk/deprecated/gtkcellrenderer.c:77:9`! |
| 1409 | g_message ("%s returning minimum width: %d and natural width: %d", |
| 1410 | G_OBJECT_TYPE_NAME (cell), |
| 1411 | minimum_size ? *minimum_size : 20000, |
| 1412 | natural_size ? *natural_size : 20000); |
| 1413 | #endif |
| 1414 | } |
| 1415 | |
| 1416 | |
| 1417 | /** |
| 1418 | * gtk_cell_renderer_get_preferred_height: |
| 1419 | * @cell: a `GtkCellRenderer` instance |
| 1420 | * @widget: the `GtkWidget` this cell will be rendering to |
| 1421 | * @minimum_size: (out) (optional): location to store the minimum size |
| 1422 | * @natural_size: (out) (optional): location to store the natural size |
| 1423 | * |
| 1424 | * Retrieves a renderer’s natural size when rendered to @widget. |
| 1425 | * |
| 1426 | * Deprecated: 4.10 |
| 1427 | */ |
| 1428 | void |
| 1429 | gtk_cell_renderer_get_preferred_heightcxx . . $ gtk_cell_renderer_get_preferred_height(d5efea385435c9de). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 1430 | GtkWidgetcxx . . $ GtkWidget# *widget, |
| 1431 | int *minimum_size, |
| 1432 | int *natural_size) |
| 1433 | { |
| 1434 | GtkCellRendererClasscxx . . $ GtkCellRendererClass# *klass; |
| 1435 | int height; |
| 1436 | |
| 1437 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell)); |
| 1438 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (widget)); |
| 1439 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! != minimum_size || NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! != natural_size); |
| 1440 | |
| 1441 | gtk_cell_renderer_get_fixed_sizecxx . . $ gtk_cell_renderer_get_fixed_size(4d6cf81189c7015f). (GTK_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:77:9`! (cell), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &height); |
| 1442 | |
| 1443 | if (height < 0) |
| 1444 | { |
| 1445 | klass = GTK_CELL_RENDERER_GET_CLASScxx . . $ `gtk/deprecated/gtkcellrenderer.h:81:9`! (cell); |
| 1446 | klass->get_preferred_heightcxx . . $ _GtkCellRendererClass#get_preferred_height. (cell, widget, minimum_size, natural_size); |
| 1447 | } |
| 1448 | else |
| 1449 | { |
| 1450 | if (minimum_size) |
| 1451 | *minimum_size = height; |
| 1452 | if (natural_size) |
| 1453 | *natural_size = height; |
| 1454 | } |
| 1455 | |
| 1456 | #if DEBUG_CELL_SIZE_REQUESTcxx . . $ `gtk/deprecated/gtkcellrenderer.c:77:9`! |
| 1457 | g_message ("%s returning minimum height: %d and natural height: %d", |
| 1458 | G_OBJECT_TYPE_NAME (cell), |
| 1459 | minimum_size ? *minimum_size : 20000, |
| 1460 | natural_size ? *natural_size : 20000); |
| 1461 | #endif |
| 1462 | } |
| 1463 | |
| 1464 | |
| 1465 | /** |
| 1466 | * gtk_cell_renderer_get_preferred_width_for_height: |
| 1467 | * @cell: a `GtkCellRenderer` instance |
| 1468 | * @widget: the `GtkWidget` this cell will be rendering to |
| 1469 | * @height: the size which is available for allocation |
| 1470 | * @minimum_width: (out) (optional): location for storing the minimum size |
| 1471 | * @natural_width: (out) (optional): location for storing the preferred size |
| 1472 | * |
| 1473 | * Retrieves a cell renderers’s minimum and natural width if it were rendered to |
| 1474 | * @widget with the specified @height. |
| 1475 | * |
| 1476 | * Deprecated: 4.10 |
| 1477 | */ |
| 1478 | void |
| 1479 | gtk_cell_renderer_get_preferred_width_for_heightcxx . . $ gtk_cell_renderer_get_preferred_width_for_height(1257a0e0f3e3349e). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 1480 | GtkWidgetcxx . . $ GtkWidget# *widget, |
| 1481 | int height, |
| 1482 | int *minimum_width, |
| 1483 | int *natural_width) |
| 1484 | { |
| 1485 | GtkCellRendererClasscxx . . $ GtkCellRendererClass# *klass; |
| 1486 | int width; |
| 1487 | |
| 1488 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell)); |
| 1489 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (widget)); |
| 1490 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! != minimum_width || NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! != natural_width); |
| 1491 | |
| 1492 | gtk_cell_renderer_get_fixed_sizecxx . . $ gtk_cell_renderer_get_fixed_size(4d6cf81189c7015f). (GTK_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:77:9`! (cell), &width, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1493 | |
| 1494 | if (width < 0) |
| 1495 | { |
| 1496 | klass = GTK_CELL_RENDERER_GET_CLASScxx . . $ `gtk/deprecated/gtkcellrenderer.h:81:9`! (cell); |
| 1497 | klass->get_preferred_width_for_heightcxx . . $ _GtkCellRendererClass#get_preferred_width_for_height. (cell, widget, height, minimum_width, natural_width); |
| 1498 | } |
| 1499 | else |
| 1500 | { |
| 1501 | if (minimum_width) |
| 1502 | *minimum_width = width; |
| 1503 | if (natural_width) |
| 1504 | *natural_width = width; |
| 1505 | } |
| 1506 | |
| 1507 | #if DEBUG_CELL_SIZE_REQUESTcxx . . $ `gtk/deprecated/gtkcellrenderer.c:77:9`! |
| 1508 | g_message ("%s width for height: %d is minimum %d and natural: %d", |
| 1509 | G_OBJECT_TYPE_NAME (cell), height, |
| 1510 | minimum_width ? *minimum_width : 20000, |
| 1511 | natural_width ? *natural_width : 20000); |
| 1512 | #endif |
| 1513 | } |
| 1514 | |
| 1515 | /** |
| 1516 | * gtk_cell_renderer_get_preferred_height_for_width: |
| 1517 | * @cell: a `GtkCellRenderer` instance |
| 1518 | * @widget: the `GtkWidget` this cell will be rendering to |
| 1519 | * @width: the size which is available for allocation |
| 1520 | * @minimum_height: (out) (optional): location for storing the minimum size |
| 1521 | * @natural_height: (out) (optional): location for storing the preferred size |
| 1522 | * |
| 1523 | * Retrieves a cell renderers’s minimum and natural height if it were rendered to |
| 1524 | * @widget with the specified @width. |
| 1525 | * |
| 1526 | * Deprecated: 4.10 |
| 1527 | */ |
| 1528 | void |
| 1529 | gtk_cell_renderer_get_preferred_height_for_widthcxx . . $ gtk_cell_renderer_get_preferred_height_for_width(1257a0e0f3e3349e). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 1530 | GtkWidgetcxx . . $ GtkWidget# *widget, |
| 1531 | int width, |
| 1532 | int *minimum_height, |
| 1533 | int *natural_height) |
| 1534 | { |
| 1535 | GtkCellRendererClasscxx . . $ GtkCellRendererClass# *klass; |
| 1536 | int height; |
| 1537 | |
| 1538 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell)); |
| 1539 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (widget)); |
| 1540 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! != minimum_height || NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! != natural_height); |
| 1541 | |
| 1542 | gtk_cell_renderer_get_fixed_sizecxx . . $ gtk_cell_renderer_get_fixed_size(4d6cf81189c7015f). (GTK_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:77:9`! (cell), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &height); |
| 1543 | |
| 1544 | if (height < 0) |
| 1545 | { |
| 1546 | klass = GTK_CELL_RENDERER_GET_CLASScxx . . $ `gtk/deprecated/gtkcellrenderer.h:81:9`! (cell); |
| 1547 | klass->get_preferred_height_for_widthcxx . . $ _GtkCellRendererClass#get_preferred_height_for_width. (cell, widget, width, minimum_height, natural_height); |
| 1548 | } |
| 1549 | else |
| 1550 | { |
| 1551 | if (minimum_height) |
| 1552 | *minimum_height = height; |
| 1553 | if (natural_height) |
| 1554 | *natural_height = height; |
| 1555 | } |
| 1556 | |
| 1557 | #if DEBUG_CELL_SIZE_REQUESTcxx . . $ `gtk/deprecated/gtkcellrenderer.c:77:9`! |
| 1558 | g_message ("%s height for width: %d is minimum %d and natural: %d", |
| 1559 | G_OBJECT_TYPE_NAME (cell), width, |
| 1560 | minimum_height ? *minimum_height : 20000, |
| 1561 | natural_height ? *natural_height : 20000); |
| 1562 | #endif |
| 1563 | } |
| 1564 | |
| 1565 | /** |
| 1566 | * gtk_cell_renderer_get_preferred_size: |
| 1567 | * @cell: a `GtkCellRenderer` instance |
| 1568 | * @widget: the `GtkWidget` this cell will be rendering to |
| 1569 | * @minimum_size: (out) (optional): location for storing the minimum size |
| 1570 | * @natural_size: (out) (optional): location for storing the natural size |
| 1571 | * |
| 1572 | * Retrieves the minimum and natural size of a cell taking |
| 1573 | * into account the widget’s preference for height-for-width management. |
| 1574 | * |
| 1575 | * Deprecated: 4.10 |
| 1576 | */ |
| 1577 | void |
| 1578 | gtk_cell_renderer_get_preferred_sizecxx . . $ gtk_cell_renderer_get_preferred_size(c1b2b4967ff16464). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 1579 | GtkWidgetcxx . . $ GtkWidget# *widget, |
| 1580 | GtkRequisitioncxx . . $ GtkRequisition# *minimum_size, |
| 1581 | GtkRequisitioncxx . . $ GtkRequisition# *natural_size) |
| 1582 | { |
| 1583 | int min_width, nat_width; |
| 1584 | int min_height, nat_height; |
| 1585 | |
| 1586 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell)); |
| 1587 | |
| 1588 | if (gtk_cell_renderer_get_request_modecxx . . $ gtk_cell_renderer_get_request_mode(8aa49182db99b52c). (cell) == GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTHcxx . . $ GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH.) |
| 1589 | { |
| 1590 | gtk_cell_renderer_get_preferred_widthcxx . . $ gtk_cell_renderer_get_preferred_width(d5efea385435c9de). (cell, widget, &min_width, &nat_width); |
| 1591 | |
| 1592 | if (minimum_size) |
| 1593 | { |
| 1594 | minimum_size->widthcxx . . $ _GtkRequisition#width. = min_width; |
| 1595 | gtk_cell_renderer_get_preferred_height_for_widthcxx . . $ gtk_cell_renderer_get_preferred_height_for_width(1257a0e0f3e3349e). (cell, widget, min_width, |
| 1596 | &minimum_size->heightcxx . . $ _GtkRequisition#height., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1597 | } |
| 1598 | |
| 1599 | if (natural_size) |
| 1600 | { |
| 1601 | natural_size->widthcxx . . $ _GtkRequisition#width. = nat_width; |
| 1602 | gtk_cell_renderer_get_preferred_height_for_widthcxx . . $ gtk_cell_renderer_get_preferred_height_for_width(1257a0e0f3e3349e). (cell, widget, nat_width, |
| 1603 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &natural_size->heightcxx . . $ _GtkRequisition#height.); |
| 1604 | } |
| 1605 | } |
| 1606 | else /* GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT */ |
| 1607 | { |
| 1608 | gtk_cell_renderer_get_preferred_heightcxx . . $ gtk_cell_renderer_get_preferred_height(d5efea385435c9de). (cell, widget, &min_height, &nat_height); |
| 1609 | |
| 1610 | if (minimum_size) |
| 1611 | { |
| 1612 | minimum_size->heightcxx . . $ _GtkRequisition#height. = min_height; |
| 1613 | gtk_cell_renderer_get_preferred_width_for_heightcxx . . $ gtk_cell_renderer_get_preferred_width_for_height(1257a0e0f3e3349e). (cell, widget, min_height, |
| 1614 | &minimum_size->widthcxx . . $ _GtkRequisition#width., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1615 | } |
| 1616 | |
| 1617 | if (natural_size) |
| 1618 | { |
| 1619 | natural_size->heightcxx . . $ _GtkRequisition#height. = nat_height; |
| 1620 | gtk_cell_renderer_get_preferred_width_for_heightcxx . . $ gtk_cell_renderer_get_preferred_width_for_height(1257a0e0f3e3349e). (cell, widget, nat_height, |
| 1621 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &natural_size->widthcxx . . $ _GtkRequisition#width.); |
| 1622 | } |
| 1623 | } |
| 1624 | } |
| 1625 | |
| 1626 | /** |
| 1627 | * gtk_cell_renderer_get_aligned_area: |
| 1628 | * @cell: a `GtkCellRenderer` instance |
| 1629 | * @widget: the `GtkWidget` this cell will be rendering to |
| 1630 | * @flags: render flags |
| 1631 | * @cell_area: cell area which would be passed to gtk_cell_renderer_render() |
| 1632 | * @aligned_area: (out): the return location for the space inside @cell_area |
| 1633 | * that would actually be used to render. |
| 1634 | * |
| 1635 | * Gets the aligned area used by @cell inside @cell_area. Used for finding |
| 1636 | * the appropriate edit and focus rectangle. |
| 1637 | * |
| 1638 | * Deprecated: 4.10 |
| 1639 | */ |
| 1640 | void |
| 1641 | gtk_cell_renderer_get_aligned_areacxx . . $ gtk_cell_renderer_get_aligned_area(65ae412043e58747). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 1642 | GtkWidgetcxx . . $ GtkWidget# *widget, |
| 1643 | GtkCellRendererStatecxx . . $ GtkCellRendererState# flags, |
| 1644 | const GdkRectanglecxx . . $ GdkRectangle# *cell_area, |
| 1645 | GdkRectanglecxx . . $ GdkRectangle# *aligned_area) |
| 1646 | { |
| 1647 | GtkCellRendererClasscxx . . $ GtkCellRendererClass# *klass; |
| 1648 | |
| 1649 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell)); |
| 1650 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (widget)); |
| 1651 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (cell_area != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1652 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (aligned_area != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1653 | |
| 1654 | klass = GTK_CELL_RENDERER_GET_CLASScxx . . $ `gtk/deprecated/gtkcellrenderer.h:81:9`! (cell); |
| 1655 | klass->get_aligned_areacxx . . $ _GtkCellRendererClass#get_aligned_area. (cell, widget, flags, cell_area, aligned_area); |
| 1656 | |
| 1657 | g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`! (aligned_area->x >= cell_area->x && aligned_area->x <= cell_area->x + cell_area->width); |
| 1658 | g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`! (aligned_area->y >= cell_area->y && aligned_area->y <= cell_area->y + cell_area->height); |
| 1659 | g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`! ((aligned_area->x - cell_area->x) + aligned_area->width <= cell_area->width); |
| 1660 | g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`! ((aligned_area->y - cell_area->y) + aligned_area->height <= cell_area->height); |
| 1661 | } |
| 1662 | |
| 1663 | /** |
| 1664 | * gtk_cell_renderer_get_state: |
| 1665 | * @cell: (nullable): a `GtkCellRenderer` |
| 1666 | * @widget: (nullable): a `GtkWidget` |
| 1667 | * @cell_state: cell renderer state |
| 1668 | * |
| 1669 | * Translates the cell renderer state to `GtkStateFlags`, |
| 1670 | * based on the cell renderer and widget sensitivity, and |
| 1671 | * the given `GtkCellRenderer`State. |
| 1672 | * |
| 1673 | * Returns: the widget state flags applying to @cell |
| 1674 | * |
| 1675 | * Deprecated: 4.10 |
| 1676 | **/ |
| 1677 | GtkStateFlagscxx . . $ GtkStateFlags# |
| 1678 | gtk_cell_renderer_get_statecxx . . $ gtk_cell_renderer_get_state(c9b5c86c6ae7851d). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 1679 | GtkWidgetcxx . . $ GtkWidget# *widget, |
| 1680 | GtkCellRendererStatecxx . . $ GtkCellRendererState# cell_state) |
| 1681 | { |
| 1682 | GtkStateFlagscxx . . $ GtkStateFlags# state = 0; |
| 1683 | |
| 1684 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (!cell || GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell), 0); |
| 1685 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (!widget || GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (widget), 0); |
| 1686 | |
| 1687 | if (widget) |
| 1688 | state |= gtk_widget_get_state_flagscxx . . $ gtk_widget_get_state_flags(d8976ba950f6e7f). (widget); |
| 1689 | |
| 1690 | state &= ~(GTK_STATE_FLAG_FOCUSEDcxx . . $ GTK_STATE_FLAG_FOCUSED. | GTK_STATE_FLAG_PRELIGHTcxx . . $ GTK_STATE_FLAG_PRELIGHT. | GTK_STATE_FLAG_SELECTEDcxx . . $ GTK_STATE_FLAG_SELECTED. | GTK_STATE_FLAG_DROP_ACTIVEcxx . . $ GTK_STATE_FLAG_DROP_ACTIVE.); |
| 1691 | |
| 1692 | if ((state & GTK_STATE_FLAG_INSENSITIVEcxx . . $ GTK_STATE_FLAG_INSENSITIVE.) != 0 || |
| 1693 | (cell && !gtk_cell_renderer_get_sensitivecxx . . $ gtk_cell_renderer_get_sensitive(d58dbe04fca29844). (cell)) || |
| 1694 | (cell_state & GTK_CELL_RENDERER_INSENSITIVEcxx . . $ GTK_CELL_RENDERER_INSENSITIVE.) != 0) |
| 1695 | { |
| 1696 | state |= GTK_STATE_FLAG_INSENSITIVEcxx . . $ GTK_STATE_FLAG_INSENSITIVE.; |
| 1697 | } |
| 1698 | else |
| 1699 | { |
| 1700 | if ((widget && gtk_widget_has_focuscxx . . $ gtk_widget_has_focus(9247ef2dc26c5426). (widget)) && |
| 1701 | (cell_state & GTK_CELL_RENDERER_FOCUSEDcxx . . $ GTK_CELL_RENDERER_FOCUSED.) != 0) |
| 1702 | state |= GTK_STATE_FLAG_FOCUSEDcxx . . $ GTK_STATE_FLAG_FOCUSED.; |
| 1703 | |
| 1704 | if ((cell_state & GTK_CELL_RENDERER_PRELITcxx . . $ GTK_CELL_RENDERER_PRELIT.) != 0) |
| 1705 | state |= GTK_STATE_FLAG_PRELIGHTcxx . . $ GTK_STATE_FLAG_PRELIGHT.; |
| 1706 | } |
| 1707 | |
| 1708 | if ((cell_state & GTK_CELL_RENDERER_SELECTEDcxx . . $ GTK_CELL_RENDERER_SELECTED.) != 0) |
| 1709 | state |= GTK_STATE_FLAG_SELECTEDcxx . . $ GTK_STATE_FLAG_SELECTED.; |
| 1710 | |
| 1711 | return state; |
| 1712 | } |
| 1713 | |
| 1714 | /** |
| 1715 | * gtk_cell_renderer_set_is_expander: |
| 1716 | * @cell: a `GtkCellRenderer` |
| 1717 | * @is_expander: whether @cell is an expander |
| 1718 | * |
| 1719 | * Sets whether the given `GtkCellRenderer` is an expander. |
| 1720 | * |
| 1721 | * Deprecated: 4.10 |
| 1722 | */ |
| 1723 | void |
| 1724 | gtk_cell_renderer_set_is_expandercxx . . $ gtk_cell_renderer_set_is_expander(ce63b40b733b81ac). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 1725 | gbooleancxx . . $ gboolean# is_expander) |
| 1726 | { |
| 1727 | GtkCellRendererPrivatecxx . . $ GtkCellRendererPrivate# *priv = gtk_cell_renderer_get_instance_privatecxx . . $ gtk_cell_renderer_get_instance_private(33421e8b5941bfca). (cell); |
| 1728 | |
| 1729 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell)); |
| 1730 | |
| 1731 | is_expander = !!is_expander; |
| 1732 | |
| 1733 | if (is_expander != priv->is_expandercxx . . $ _GtkCellRendererPrivate#is_expander.) |
| 1734 | { |
| 1735 | priv->is_expandercxx . . $ _GtkCellRendererPrivate#is_expander. = is_expander; |
| 1736 | |
| 1737 | g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (cell), "is-expander"); |
| 1738 | } |
| 1739 | } |
| 1740 | |
| 1741 | /** |
| 1742 | * gtk_cell_renderer_get_is_expander: |
| 1743 | * @cell: a `GtkCellRenderer` |
| 1744 | * |
| 1745 | * Checks whether the given `GtkCellRenderer` is an expander. |
| 1746 | * |
| 1747 | * Returns: %TRUE if @cell is an expander, and %FALSE otherwise |
| 1748 | * |
| 1749 | * Deprecated: 4.10 |
| 1750 | */ |
| 1751 | gbooleancxx . . $ gboolean# |
| 1752 | gtk_cell_renderer_get_is_expandercxx . . $ gtk_cell_renderer_get_is_expander(d58dbe04fca29844). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell) |
| 1753 | { |
| 1754 | GtkCellRendererPrivatecxx . . $ GtkCellRendererPrivate# *priv = gtk_cell_renderer_get_instance_privatecxx . . $ gtk_cell_renderer_get_instance_private(33421e8b5941bfca). (cell); |
| 1755 | |
| 1756 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!); |
| 1757 | |
| 1758 | return priv->is_expandercxx . . $ _GtkCellRendererPrivate#is_expander.; |
| 1759 | } |
| 1760 | |
| 1761 | /** |
| 1762 | * gtk_cell_renderer_set_is_expanded: |
| 1763 | * @cell: a `GtkCellRenderer` |
| 1764 | * @is_expanded: whether @cell should be expanded |
| 1765 | * |
| 1766 | * Sets whether the given `GtkCellRenderer` is expanded. |
| 1767 | * |
| 1768 | * Deprecated: 4.10 |
| 1769 | */ |
| 1770 | void |
| 1771 | gtk_cell_renderer_set_is_expandedcxx . . $ gtk_cell_renderer_set_is_expanded(ce63b40b733b81ac). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 1772 | gbooleancxx . . $ gboolean# is_expanded) |
| 1773 | { |
| 1774 | GtkCellRendererPrivatecxx . . $ GtkCellRendererPrivate# *priv = gtk_cell_renderer_get_instance_privatecxx . . $ gtk_cell_renderer_get_instance_private(33421e8b5941bfca). (cell); |
| 1775 | |
| 1776 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell)); |
| 1777 | |
| 1778 | is_expanded = !!is_expanded; |
| 1779 | |
| 1780 | if (is_expanded != priv->is_expandedcxx . . $ _GtkCellRendererPrivate#is_expanded.) |
| 1781 | { |
| 1782 | priv->is_expandedcxx . . $ _GtkCellRendererPrivate#is_expanded. = is_expanded; |
| 1783 | |
| 1784 | g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (cell), "is-expanded"); |
| 1785 | } |
| 1786 | } |
| 1787 | |
| 1788 | /** |
| 1789 | * gtk_cell_renderer_get_is_expanded: |
| 1790 | * @cell: a `GtkCellRenderer` |
| 1791 | * |
| 1792 | * Checks whether the given `GtkCellRenderer` is expanded. |
| 1793 | * |
| 1794 | * Returns: %TRUE if the cell renderer is expanded |
| 1795 | * |
| 1796 | * Deprecated: 4.10 |
| 1797 | */ |
| 1798 | gbooleancxx . . $ gboolean# |
| 1799 | gtk_cell_renderer_get_is_expandedcxx . . $ gtk_cell_renderer_get_is_expanded(d58dbe04fca29844). (GtkCellRenderercxx . . $ GtkCellRenderer# *cell) |
| 1800 | { |
| 1801 | GtkCellRendererPrivatecxx . . $ GtkCellRendererPrivate# *priv = gtk_cell_renderer_get_instance_privatecxx . . $ gtk_cell_renderer_get_instance_private(33421e8b5941bfca). (cell); |
| 1802 | |
| 1803 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_CELL_RENDERERcxx . . $ `gtk/deprecated/gtkcellrenderer.h:79:9`! (cell), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!); |
| 1804 | |
| 1805 | return priv->is_expandedcxx . . $ _GtkCellRendererPrivate#is_expanded.; |
| 1806 | } |