alternative to assert
[gtkD.git] / src / gtk / CellRendererCombo.d
blob400a0623a32a06caabd73d851e9c3daaa6c7eb0b
1 /*
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
26 * outPack = gtk
27 * outFile = CellRendererCombo
28 * strct = GtkCellRenderer
29 * realStrct=GtkCellRendererCombo
30 * ctorStrct=
31 * clss = CellRendererCombo
32 * interf =
33 * class Code: No
34 * interface Code: No
35 * template for:
36 * extend =
37 * implements:
38 * prefixes:
39 * - gtk_cell_renderer_combo_
40 * - gtk_
41 * omit structs:
42 * omit prefixes:
43 * omit code:
44 * imports:
45 * - gtk.CellRenderer
46 * structWrap:
47 * - GtkCellRenderer* -> CellRenderer
48 * local aliases:
51 module gtk.CellRendererCombo;
53 private import gtk.gtktypes;
55 private import lib.gtk;
57 private import gtk.CellRenderer;
59 /**
60 * Description
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
66 * model property.
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
69 * text-column
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;
94 /**
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.
115 * Returns:
116 * the new cell renderer
117 * Since 2.6
118 * Property Details
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
124 * Since 2.6
126 public this ()
128 // GtkCellRenderer* gtk_cell_renderer_combo_new (void);
129 this(cast(GtkCellRendererCombo*)gtk_cell_renderer_combo_new() );