2 * This file is part of duit.
4 * duit is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; either version 2.1 of the License, or
7 * (at your option) any later version.
9 * duit 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
12 * GNU Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with duit; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // generated automatically - do not change
20 // find conversion definition on APILookup.txt
21 // implement new conversion functionalities on the wrap.utils pakage
24 * Conversion parameters:
25 * inFile = GtkCellRendererCombo.html
27 * outFile = CellRendererCombo
28 * strct = GtkCellRenderer
29 * realStrct=GtkCellRendererCombo
31 * clss = CellRendererCombo
39 * - gtk_cell_renderer_combo_
47 * - GtkCellRenderer* -> CellRenderer
51 module gtk
.CellRendererCombo
;
53 private import gtk
.gtktypes
;
55 private import lib
.gtk
;
57 private import gtk
.CellRenderer
;
61 * GtkCellRendererCombo renders text in a cell like GtkCellRendererText from
62 * which it is derived. But while GtkCellRendererText offers a simple entry to
63 * edit the text, GtkCellRendererCombo offers a GtkComboBox or GtkComboBoxEntry
64 * widget to edit the text. The values to display in the combo box are taken from
65 * the tree model specified in the
67 * The combo cell renderer takes care of adding a text cell renderer to the combo
68 * box and sets it to display the column specified by its
70 * property. Further properties of the comnbo box can be set in a handler for the
71 * editing-started signal.
72 * The GtkCellRendererCombo cell renderer was added in GTK+ 2.6.
74 private import gtk
.CellRendererText
;
75 public class CellRendererCombo
: CellRendererText
78 /** the main Gtk struct */
79 protected GtkCellRendererCombo
* gtkCellRendererCombo
;
82 public GtkCellRendererCombo
* getCellRendererComboStruct()
84 return gtkCellRendererCombo
;
88 /** the main Gtk struct as a void* */
89 protected void* getStruct()
91 return cast(void*)gtkCellRendererCombo
;
95 * Sets our main struct and passes it to the parent class
97 public this (GtkCellRendererCombo
* gtkCellRendererCombo
)
99 super(cast(GtkCellRendererText
*)gtkCellRendererCombo
);
100 this.gtkCellRendererCombo
= gtkCellRendererCombo
;
108 * Creates a new GtkCellRendererCombo.
109 * Adjust how text is drawn using object properties.
110 * Object properties can be set globally (with g_object_set()).
111 * Also, with GtkTreeViewColumn, you can bind a property to a value
112 * in a GtkTreeModel. For example, you can bind the "text" property
113 * on the cell renderer to a string value in the model, thus rendering
114 * a different string in each row of the GtkTreeView.
116 * the new cell renderer
119 * The "has-entry" property
120 * "has-entry" gboolean : Read / Write
121 * If TRUE, the cell renderer will include an entry and allow to enter values
122 * other than the ones in the popup list.
123 * Default value: TRUE
128 // GtkCellRenderer* gtk_cell_renderer_combo_new (void);
129 this(cast(GtkCellRendererCombo
*)gtk_cell_renderer_combo_new() );