GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

cellrendererpixbuf.hh

Go to the documentation of this file.
00001 /* GFC-UI: GTK+ Foundation Classes (User Interface Library) 00002 * Copyright (C) 2004 The GFC Development Team. 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU Library General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Library General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 */ 00018 00023 00024 #ifndef GFC_GTK_CELL_RENDERER_PIXBUF_HH 00025 #define GFC_GTK_CELL_RENDERER_PIXBUF_HH 00026 00027 #ifndef GFC_GTK_CELL_RENDERER_HH 00028 #include <gfc/gtk/cellrenderer.hh> 00029 #endif 00030 00031 #ifndef GFC_G_PROPERTY_HH 00032 #include <gfc/glib/property.hh> 00033 #endif 00034 00035 #ifndef __GTK_CELL_RENDERER_PIXBUF_H__ 00036 #include <gtk/gtkcellrendererpixbuf.h> 00037 #endif 00038 00039 namespace GFC { 00040 00041 namespace Gdk { 00042 class Pixbuf; 00043 } 00044 00045 namespace Gtk { 00046 00047 class StockId; 00048 00053 00054 class CellRendererPixbuf : public CellRenderer 00055 { 00056 friend class G::Object; 00057 00058 CellRendererPixbuf(const CellRendererPixbuf&); 00059 CellRendererPixbuf& operator=(const CellRendererPixbuf&); 00060 00061 protected: 00064 00065 explicit CellRendererPixbuf(GtkCellRendererPixbuf *cell, bool owns_reference = false); 00072 00076 00077 typedef G::Property<Gdk::Pixbuf*, G::Object*> PixbufPropertyType; 00078 typedef G::PropertyProxy<G::Object, PixbufPropertyType> PixbufPropertyProxy; 00079 static const PixbufPropertyType pixbuf_property; 00081 00082 typedef G::Property<Gdk::Pixbuf*, G::Object*> PixbufExpanderOpenPropertyType; 00083 typedef G::PropertyProxy<G::Object, PixbufExpanderOpenPropertyType> PixbufExpanderOpenPropertyProxy; 00084 static const PixbufExpanderOpenPropertyType pixbuf_expander_open_property; 00086 00087 typedef G::Property<Gdk::Pixbuf*, G::Object*> PixbufExpanderClosedPropertyType; 00088 typedef G::PropertyProxy<G::Object, PixbufExpanderClosedPropertyType> PixbufExpanderClosedPropertyProxy; 00089 static const PixbufExpanderClosedPropertyType pixbuf_expander_closed_property; 00091 00092 typedef G::Property<String> StockIdPropertyType; 00093 typedef G::PropertyProxy<G::Object, StockIdPropertyType> StockIdPropertyProxy; 00094 static const StockIdPropertyType stock_id_property; 00096 00097 typedef G::Property<IconSize, int> StockSizePropertyType; 00098 typedef G::PropertyProxy<G::Object, StockSizePropertyType> StockSizePropertyProxy; 00099 static const StockSizePropertyType stock_size_property; 00101 00102 typedef G::Property<String> StockDetailPropertyType; 00103 typedef G::PropertyProxy<G::Object, StockDetailPropertyType> StockDetailPropertyProxy; 00104 static const StockDetailPropertyType stock_detail_property; 00106 00108 00109 public: 00112 00113 CellRendererPixbuf(); 00119 00120 virtual ~CellRendererPixbuf(); 00122 00126 00127 GtkCellRendererPixbuf* gtk_cell_renderer_pixbuf() const; 00129 00130 operator GtkCellRendererPixbuf* () const; 00132 00136 00137 const PixbufPropertyProxy prop_pixbuf(); 00139 00140 const PixbufExpanderOpenPropertyProxy prop_pixbuf_expander_open(); 00142 00143 const PixbufExpanderClosedPropertyProxy prop_pixbuf_expander_closed(); 00145 00146 const StockIdPropertyProxy prop_stock_id(); 00148 00149 const StockSizePropertyProxy prop_stock_size(); 00151 00152 const StockDetailPropertyProxy prop_stock_detail(); 00154 00156 }; 00157 00158 } // namespace Gtk 00159 00160 } // namespace GFC 00161 00162 #include <gfc/gtk/inline/cellrendererpixbuf.inl> 00163 00164 #endif // GFC_GTK_CELL_RENDERER_PIXBUF_HH 00165

Generated on Tue Aug 24 00:34:30 2004 for GFC-UI by doxygen 1.3.8