| 1 | /* gtkcelllayout.h |
| 2 | * Copyright (C) 2003 Kristian Rietveld <[email protected]> |
| 3 | * |
| 4 | * This library is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU Library General Public |
| 6 | * License as published by the Free Software Foundation; either |
| 7 | * version 2 of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This library is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | * Library General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Library General Public |
| 15 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ |
| 17 | |
| 18 | #pragma once |
| 19 | |
| 20 | #if !defined (__GTK_H_INSIDE__cxx . . $ `gtk/gtk.h:27:9`!) && !defined (GTK_COMPILATIONcxx . . $ `<built-in>:420:9`!) |
| 21 | #error "Only <gtk/gtk.h> can be included directly." |
| 22 | #endif |
| 23 | |
| 24 | #include <gtk/deprecated/gtkcellrenderer.h>cxx . . $ `<file>/gtk/deprecated/gtkcellrenderer.h`/ |
| 25 | #include <gtk/deprecated/gtkcellarea.h>cxx . . $ `<file>/gtk/deprecated/gtkcellarea.h`/ |
| 26 | #include <gtk/gtkbuildable.h>cxx . . $ `<file>/gtk/gtkbuildable.h`/ |
| 27 | #include <gtk/gtkbuilder.h>cxx . . $ `<file>/gtk/gtkbuilder.h`/ |
| 28 | |
| 29 | G_BEGIN_DECLScxx . . $ `<external>/12741050725406041920/gmacros.h:947:9`! |
| 30 | |
| 31 | #define GTK_TYPE_CELL_LAYOUTcxx . . $ `gtk/deprecated/gtkcelllayout.h:31:9`! (gtk_cell_layout_get_type ()) |
| 32 | #define GTK_CELL_LAYOUTcxx . . $ `gtk/deprecated/gtkcelllayout.h:32:9`!(obj) (G_TYPE_CHECK_INSTANCE_CASTcxx . . $ `<external>/9567554376676449156/gtype.h:528:9`! ((obj), GTK_TYPE_CELL_LAYOUTcxx . . $ `gtk/deprecated/gtkcelllayout.h:31:9`!, GtkCellLayout)) |
| 33 | #define GTK_IS_CELL_LAYOUTcxx . . $ `gtk/deprecated/gtkcelllayout.h:33:9`!(obj) (G_TYPE_CHECK_INSTANCE_TYPEcxx . . $ `<external>/9567554376676449156/gtype.h:541:9`! ((obj), GTK_TYPE_CELL_LAYOUTcxx . . $ `gtk/deprecated/gtkcelllayout.h:31:9`!)) |
| 34 | #define GTK_CELL_LAYOUT_GET_IFACEcxx . . $ `gtk/deprecated/gtkcelllayout.h:34:9`!(obj) (G_TYPE_INSTANCE_GET_INTERFACEcxx . . $ `<external>/9567554376676449156/gtype.h:584:9`! ((obj), GTK_TYPE_CELL_LAYOUTcxx . . $ `gtk/deprecated/gtkcelllayout.h:31:9`!, GtkCellLayoutIface)) |
| 35 | |
| 36 | typedef struct _GtkCellLayoutcxx . . $ _GtkCellLayout# GtkCellLayoutcxx . . $ GtkCellLayout#; /* dummy typedef */ |
| 37 | typedef struct _GtkCellLayoutIfacecxx . . $ _GtkCellLayoutIface# GtkCellLayoutIfacecxx . . $ GtkCellLayoutIface#; |
| 38 | |
| 39 | /* keep in sync with GtkTreeCellDataFunc */ |
| 40 | /** |
| 41 | * GtkCellLayoutDataFunc: |
| 42 | * @cell_layout: a `GtkCellLayout` |
| 43 | * @cell: the cell renderer whose value is to be set |
| 44 | * @tree_model: the model |
| 45 | * @iter: a `GtkTreeIter` indicating the row to set the value for |
| 46 | * @data: (closure): user data passed to gtk_cell_layout_set_cell_data_func() |
| 47 | * |
| 48 | * A function which should set the value of @cell_layout’s cell renderer(s) |
| 49 | * as appropriate. |
| 50 | * |
| 51 | * Deprecated: 4.20: There is no replacement |
| 52 | */ |
| 53 | typedef void (* GtkCellLayoutDataFunccxx . . $ GtkCellLayoutDataFunc#) (GtkCellLayoutcxx . . $ GtkCellLayout# *cell_layout, |
| 54 | GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 55 | GtkTreeModelcxx . . $ GtkTreeModel# *tree_model, |
| 56 | GtkTreeItercxx . . $ GtkTreeIter# *iter, |
| 57 | gpointercxx . . $ gpointer# data); |
| 58 | |
| 59 | /** |
| 60 | * GtkCellLayoutIface: |
| 61 | * @pack_start: Packs the cell into the beginning of cell_layout. |
| 62 | * @pack_end: Adds the cell to the end of cell_layout. |
| 63 | * @clear: Unsets all the mappings on all renderers on cell_layout and |
| 64 | * removes all renderers from cell_layout. |
| 65 | * @add_attribute: Adds an attribute mapping to the list in |
| 66 | * cell_layout. |
| 67 | * @set_cell_data_func: Sets the `GtkCellLayout`DataFunc to use for |
| 68 | * cell_layout. |
| 69 | * @clear_attributes: Clears all existing attributes previously set |
| 70 | * with gtk_cell_layout_set_attributes(). |
| 71 | * @reorder: Re-inserts cell at position. |
| 72 | * @get_cells: Get the cell renderers which have been added to |
| 73 | * cell_layout. |
| 74 | * @get_area: Get the underlying `GtkCellArea` which might be |
| 75 | * cell_layout if called on a `GtkCellArea` or might be NULL if no |
| 76 | * `GtkCellArea` is used by cell_layout. |
| 77 | */ |
| 78 | struct _GtkCellLayoutIfacecxx . . $ _GtkCellLayoutIface# |
| 79 | { |
| 80 | /*< private >*/ |
| 81 | GTypeInterfacecxx . . $ GTypeInterface# g_ifacecxx . . $ _GtkCellLayoutIface#g_iface.; |
| 82 | |
| 83 | /*< public >*/ |
| 84 | |
| 85 | /* Virtual Table */ |
| 86 | void (* pack_startcxx . . $ _GtkCellLayoutIface#pack_start.) (GtkCellLayoutcxx . . $ GtkCellLayout# *cell_layout, |
| 87 | GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 88 | gbooleancxx . . $ gboolean# expand); |
| 89 | void (* pack_endcxx . . $ _GtkCellLayoutIface#pack_end.) (GtkCellLayoutcxx . . $ GtkCellLayout# *cell_layout, |
| 90 | GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 91 | gbooleancxx . . $ gboolean# expand); |
| 92 | void (* clearcxx . . $ _GtkCellLayoutIface#clear.) (GtkCellLayoutcxx . . $ GtkCellLayout# *cell_layout); |
| 93 | void (* add_attributecxx . . $ _GtkCellLayoutIface#add_attribute.) (GtkCellLayoutcxx . . $ GtkCellLayout# *cell_layout, |
| 94 | GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 95 | const char *attribute, |
| 96 | int column); |
| 97 | void (* set_cell_data_funccxx . . $ _GtkCellLayoutIface#set_cell_data_func.) (GtkCellLayoutcxx . . $ GtkCellLayout# *cell_layout, |
| 98 | GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 99 | GtkCellLayoutDataFunccxx . . $ GtkCellLayoutDataFunc# func, |
| 100 | gpointercxx . . $ gpointer# func_data, |
| 101 | GDestroyNotifycxx . . $ GDestroyNotify# destroy); |
| 102 | void (* clear_attributescxx . . $ _GtkCellLayoutIface#clear_attributes.) (GtkCellLayoutcxx . . $ GtkCellLayout# *cell_layout, |
| 103 | GtkCellRenderercxx . . $ GtkCellRenderer# *cell); |
| 104 | void (* reordercxx . . $ _GtkCellLayoutIface#reorder.) (GtkCellLayoutcxx . . $ GtkCellLayout# *cell_layout, |
| 105 | GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 106 | int position); |
| 107 | GListcxx . . $ GList#* (* get_cellscxx . . $ _GtkCellLayoutIface#get_cells.) (GtkCellLayoutcxx . . $ GtkCellLayout# *cell_layout); |
| 108 | |
| 109 | GtkCellAreacxx . . $ GtkCellArea# *(* get_areacxx . . $ _GtkCellLayoutIface#get_area.) (GtkCellLayoutcxx . . $ GtkCellLayout# *cell_layout); |
| 110 | }; |
| 111 | |
| 112 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 113 | GTypecxx . . $ GType# gtk_cell_layout_get_typecxx . . $ gtk_cell_layout_get_type(f708dce9a8856c70). (void) G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!; |
| 114 | GDK_DEPRECATED_IN_4_10cxx . . $ `build/gdk/version/gdk-visibility.h:207:9`! |
| 115 | void gtk_cell_layout_pack_startcxx . . $ gtk_cell_layout_pack_start(6bf22d458dd3339a). (GtkCellLayoutcxx . . $ GtkCellLayout# *cell_layout, |
| 116 | GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 117 | gbooleancxx . . $ gboolean# expand); |
| 118 | GDK_DEPRECATED_IN_4_10cxx . . $ `build/gdk/version/gdk-visibility.h:207:9`! |
| 119 | void gtk_cell_layout_pack_endcxx . . $ gtk_cell_layout_pack_end(6bf22d458dd3339a). (GtkCellLayoutcxx . . $ GtkCellLayout# *cell_layout, |
| 120 | GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 121 | gbooleancxx . . $ gboolean# expand); |
| 122 | GDK_DEPRECATED_IN_4_10cxx . . $ `build/gdk/version/gdk-visibility.h:207:9`! |
| 123 | GListcxx . . $ GList# *gtk_cell_layout_get_cellscxx . . $ gtk_cell_layout_get_cells(e11d4f66befd1efd). (GtkCellLayoutcxx . . $ GtkCellLayout# *cell_layout); |
| 124 | GDK_DEPRECATED_IN_4_10cxx . . $ `build/gdk/version/gdk-visibility.h:207:9`! |
| 125 | void gtk_cell_layout_clearcxx . . $ gtk_cell_layout_clear(4b6271dc5bdfa0ab). (GtkCellLayoutcxx . . $ GtkCellLayout# *cell_layout); |
| 126 | GDK_DEPRECATED_IN_4_10cxx . . $ `build/gdk/version/gdk-visibility.h:207:9`! |
| 127 | void gtk_cell_layout_set_attributescxx . . $ gtk_cell_layout_set_attributes(e786233378383675). (GtkCellLayoutcxx . . $ GtkCellLayout# *cell_layout, |
| 128 | GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 129 | ...) G_GNUC_NULL_TERMINATEDcxx . . $ `<external>/12741050725406041920/gmacros.h:330:9`!; |
| 130 | GDK_DEPRECATED_IN_4_10cxx . . $ `build/gdk/version/gdk-visibility.h:207:9`! |
| 131 | void gtk_cell_layout_add_attributecxx . . $ gtk_cell_layout_add_attribute(95eccccb534a07bb). (GtkCellLayoutcxx . . $ GtkCellLayout# *cell_layout, |
| 132 | GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 133 | const char *attribute, |
| 134 | int column); |
| 135 | GDK_DEPRECATED_IN_4_10cxx . . $ `build/gdk/version/gdk-visibility.h:207:9`! |
| 136 | void gtk_cell_layout_set_cell_data_funccxx . . $ gtk_cell_layout_set_cell_data_func(6546a489bbae3a1a). (GtkCellLayoutcxx . . $ GtkCellLayout# *cell_layout, |
| 137 | GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 138 | GtkCellLayoutDataFunccxx . . $ GtkCellLayoutDataFunc# func, |
| 139 | gpointercxx . . $ gpointer# func_data, |
| 140 | GDestroyNotifycxx . . $ GDestroyNotify# destroy); |
| 141 | GDK_DEPRECATED_IN_4_10cxx . . $ `build/gdk/version/gdk-visibility.h:207:9`! |
| 142 | void gtk_cell_layout_clear_attributescxx . . $ gtk_cell_layout_clear_attributes(55a9f564a421cb5a). (GtkCellLayoutcxx . . $ GtkCellLayout# *cell_layout, |
| 143 | GtkCellRenderercxx . . $ GtkCellRenderer# *cell); |
| 144 | GDK_DEPRECATED_IN_4_10cxx . . $ `build/gdk/version/gdk-visibility.h:207:9`! |
| 145 | void gtk_cell_layout_reordercxx . . $ gtk_cell_layout_reorder(6bf22d458dd3339a). (GtkCellLayoutcxx . . $ GtkCellLayout# *cell_layout, |
| 146 | GtkCellRenderercxx . . $ GtkCellRenderer# *cell, |
| 147 | int position); |
| 148 | GDK_DEPRECATED_IN_4_10cxx . . $ `build/gdk/version/gdk-visibility.h:207:9`! |
| 149 | GtkCellAreacxx . . $ GtkCellArea# *gtk_cell_layout_get_areacxx . . $ gtk_cell_layout_get_area(ebae739605725821). (GtkCellLayoutcxx . . $ GtkCellLayout# *cell_layout); |
| 150 | |
| 151 | gbooleancxx . . $ gboolean# _gtk_cell_layout_buildable_custom_tag_startcxx . . $ _gtk_cell_layout_buildable_custom_tag_start(b259140ba88dbccf). (GtkBuildablecxx . . $ GtkBuildable# *buildable, |
| 152 | GtkBuildercxx . . $ GtkBuilder# *builder, |
| 153 | GObjectcxx . . $ GObject# *child, |
| 154 | const char *tagname, |
| 155 | GtkBuildableParsercxx . . $ GtkBuildableParser# *parser, |
| 156 | gpointercxx . . $ gpointer# *data); |
| 157 | gbooleancxx . . $ gboolean# _gtk_cell_layout_buildable_custom_tag_endcxx . . $ _gtk_cell_layout_buildable_custom_tag_end(87b05294aa5e1ec4). (GtkBuildablecxx . . $ GtkBuildable# *buildable, |
| 158 | GtkBuildercxx . . $ GtkBuilder# *builder, |
| 159 | GObjectcxx . . $ GObject# *child, |
| 160 | const char *tagname, |
| 161 | gpointercxx . . $ gpointer# *data); |
| 162 | void _gtk_cell_layout_buildable_add_childcxx . . $ _gtk_cell_layout_buildable_add_child(784606fbae7a2cc). (GtkBuildablecxx . . $ GtkBuildable# *buildable, |
| 163 | GtkBuildercxx . . $ GtkBuilder# *builder, |
| 164 | GObjectcxx . . $ GObject# *child, |
| 165 | const char *type); |
| 166 | |
| 167 | G_DEFINE_AUTOPTR_CLEANUP_FUNCcxx . . $ GtkCellLayout_listautoptr#(GtkCellLayout, g_object_unref) |
| 168 | |
| 169 | G_END_DECLScxx . . $ `<external>/12741050725406041920/gmacros.h:948:9`! |
| 170 |