/src/wrappers/gtk/library/gtk_cell_renderer_pixbuf.e
http://github.com/tybor/Liberty · Specman e · 128 lines · 33 code · 36 blank · 59 comment · 2 complexity · 729ed6aa7f5bf7d2dee14581d3a1d5c0 MD5 · raw file
- indexing
- description: "GtkCellRendererPixbuf renders a pixbuf in a cell."
- copyright: "[
- Copyright (C) 2006 eiffel-libraries team, GTK+ team
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License
- as published by the Free Software Foundation; either version 2.1 of
- the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
- You should have received a copy of the GNU Lesser General Public
- License along with this library; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- 02110-1301 USA
- ]"
-
- class GTK_CELL_RENDERER_PIXBUF
- -- A GTK_CELL_RENDERER_PIXBUF can be used to render an image in a
- -- cell. It allows to render either a given GDK_PIXBUF (set via the
- -- pixbuf property) or a stock icon (set via the stock-id
- -- property).
- -- To support the tree view, GTK_CELL_RENDERER_PIXBUF also supports
- -- rendering two alternative pixbufs, when the is-expander property
- -- is TRUE. If the is-expanded property is TRUE and the
- -- pixbuf-expander-open property is set to a pixbuf, it renders
- -- that pixbuf, if the is-expanded property is FALSE and the
- -- pixbuf-expander-closed property is set to a pixbuf, it renders
- -- that one.
- inherit GTK_CELL_RENDERER
- insert GTK_CELL_RENDERER_PIXBUF_EXTERNALS
- creation make, from_external_pointer
- feature -- size
- struct_size: INTEGER is
- external "C inline use <gtk/gtk.h>"
- alias "sizeof(GtkCellRendererPixbuf)"
- end
- feature {} -- Creation
- make is
- -- Creates a new GtkCellRendererPixbuf. Adjust rendering
- -- parameters using object properties. Object properties can
- -- be set globally (with `set_property' and its typed variants). Also, with
- -- GtkTreeViewColumn, you can bind a property to a value in a
- -- GtkTreeModel. For example, you can bind the "pixbuf"
- -- property on the cell renderer to a pixbuf value in the
- -- model, thus rendering a different image in each row of the
- -- GtkTreeView.
- do
- from_external_pointer (gtk_cell_renderer_pixbuf_new)
- end
- feature -- Properties
- -- "follow-state" gboolean : Read / Write
- -- "icon-name" gchararray : Read / Write
- -- "pixbuf" GdkPixbuf : Read / Write
- -- "pixbuf-expander-closed" GdkPixbuf : Read / Write
- -- "pixbuf-expander-open" GdkPixbuf : Read / Write
- -- "stock-detail" gchararray : Read / Write
- -- "stock-id" gchararray : Read / Write
- -- "stock-size" guint : Read / Write
- -- Property Details
- -- The "follow-state" property
- -- "follow-state" gboolean : Read / Write
- -- Specifies whether the rendered pixbuf should be colorized according to the GtkCellRendererState.
- -- Default value: FALSE
- -- Since 2.8
- -- The "icon-name" property
- -- "icon-name" gchararray : Read / Write
- -- The name of the themed icon to display. This property only has an effect if not overridden by "stock_id" or "pixbuf" properties.
- -- Default value: NULL
- -- Since 2.8
- -- The "pixbuf" property
- -- "pixbuf" GdkPixbuf : Read / Write
- -- The pixbuf to render.
- -- The "pixbuf-expander-closed" property
- -- "pixbuf-expander-closed" GdkPixbuf : Read / Write
- -- Pixbuf for closed expander.
- -- The "pixbuf-expander-open" property
- -- "pixbuf-expander-open" GdkPixbuf : Read / Write
- -- Pixbuf for open expander.
- -- The "stock-detail" property
- -- "stock-detail" gchararray : Read / Write
- -- Render detail to pass to the theme engine.
- -- Default value: NULL
- -- The "stock-id" property
- -- "stock-id" gchararray : Read / Write
- -- The stock ID of the stock icon to render.
- -- Default value: NULL
- -- The "stock-size" property
- -- "stock-size" guint : Read / Write
- -- The GtkIconSize value that specifies the size of the rendered icon.
- -- Default value: 1
- end