2 * This file is part of gtkD.
4 * gtkD 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 * gtkD 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 gtkD; 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 = GtkCellRendererPixbuf.html
27 * outFile = CellRendererPixbuf
28 * strct = GtkCellRenderer
29 * realStrct=GtkCellRendererPixbuf
31 * clss = CellRendererPixbuf
39 * - gtk_cell_renderer_pixbuf_
47 * - GtkCellRenderer* -> CellRenderer
52 module gtk
.CellRendererPixbuf
;
58 import tango
.io
.Stdout
; // use the tango loging?
62 private import gtkc
.gtktypes
;
64 private import gtkc
.gtk
;
67 private import gtk
.CellRenderer
;
74 * A GtkCellRendererPixbuf can be used to render an image in a cell. It allows to render
75 * either a given GdkPixbuf (set via the
76 * pixbuf property) or a stock icon
77 * (set via the stock-id property).
78 * To support the tree view, GtkCellRendererPixbuf also supports rendering two alternative
79 * pixbufs, when the is-expander property
80 * is TRUE. If the is-expanded property
82 * pixbuf-expander-open
83 * property is set to a pixbuf, it renders that pixbuf, if the
84 * is-expanded property is FALSE and
86 * pixbuf-expander-closed
87 * property is set to a pixbuf, it renders that one.
89 private import gtk
.CellRenderer
;
90 public class CellRendererPixbuf
: CellRenderer
93 /** the main Gtk struct */
94 protected GtkCellRendererPixbuf
* gtkCellRendererPixbuf
;
97 public GtkCellRendererPixbuf
* getCellRendererPixbufStruct()
99 return gtkCellRendererPixbuf
;
103 /** the main Gtk struct as a void* */
104 protected void* getStruct()
106 return cast(void*)gtkCellRendererPixbuf
;
110 * Sets our main struct and passes it to the parent class
112 public this (GtkCellRendererPixbuf
* gtkCellRendererPixbuf
)
116 if ( gtkCellRendererPixbuf
is null )
121 Stdout("struct gtkCellRendererPixbuf is null on constructor").newline
;
125 printf("struct gtkCellRendererPixbuf is null on constructor");
132 assert(gtkCellRendererPixbuf
!is null, "struct gtkCellRendererPixbuf is null on constructor");
134 super(cast(GtkCellRenderer
*)gtkCellRendererPixbuf
);
135 this.gtkCellRendererPixbuf
= gtkCellRendererPixbuf
;
143 * Creates a new GtkCellRendererPixbuf. Adjust rendering
144 * parameters using object properties. Object properties can be set
145 * globally (with g_object_set()). Also, with GtkTreeViewColumn, you
146 * can bind a property to a value in a GtkTreeModel. For example, you
147 * can bind the "pixbuf" property on the cell renderer to a pixbuf value
148 * in the model, thus rendering a different image in each row of the
151 * the new cell renderer
153 * The "follow-state" property
154 * "follow-state" gboolean : Read / Write
155 * Specifies whether the rendered pixbuf should be colorized
156 * according to the GtkCellRendererState.
157 * Default value: FALSE
162 // GtkCellRenderer* gtk_cell_renderer_pixbuf_new (void);
163 this(cast(GtkCellRendererPixbuf
*)gtk_cell_renderer_pixbuf_new() );