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

iconsource.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 00026 00027 #ifndef GFC_GTK_ICON_SOURCE_HH 00028 #define GFC_GTK_ICON_SOURCE_HH 00029 00030 #ifndef GFC_G_BOXED_HH 00031 #include <gfc/glib/boxed.hh> 00032 #endif 00033 00034 #ifndef GFC_GTK_ENUMS_HH 00035 #include <gfc/gtk/enums.hh> 00036 #endif 00037 00038 #ifndef __GTK_ICON_FACTORY_H__ 00039 #include <gtk/gtkiconfactory.h> 00040 #endif 00041 00042 namespace GFC { 00043 00044 namespace Gdk { 00045 class Pixbuf; 00046 } 00047 00048 namespace Gtk { 00049 00072 00073 class IconSource : public G::Boxed 00074 { 00075 public: 00078 00079 IconSource(); 00081 00082 explicit IconSource(GtkIconSource *source); 00088 00089 IconSource(GtkIconSource *source, bool copy); 00096 00097 IconSource(const IconSource& src); 00099 00100 ~IconSource(); 00102 00103 IconSource& operator=(const IconSource& src); 00105 00109 00110 GtkIconSource* gtk_icon_source() const; 00112 00113 operator GtkIconSource* () const; 00115 00116 String get_filename() const; 00119 00120 String get_icon_name() const; 00123 00124 Gdk::Pixbuf* get_pixbuf() const; 00127 00128 bool get_size_wildcarded() const; 00131 00132 bool get_state_wildcarded() const; 00135 00136 bool get_direction_wildcarded() const; 00139 00140 TextDirection get_direction() const; 00145 00146 StateType get_state() const; 00151 00152 IconSize get_size() const; 00157 00161 00162 void set_filename(const char *filename); 00163 void set_filename(const String& filename); 00169 00170 void set_icon_name(const char *icon_name); 00171 void set_icon_name(const String& icon_name); 00175 00176 void set_pixbuf(Gdk::Pixbuf *pixbuf); 00181 00182 void set_direction_wildcarded(bool setting); 00191 00192 void set_state_wildcarded(bool setting); 00203 00204 void set_size_wildcarded(bool setting); 00215 00216 void set_direction(TextDirection direction); 00223 00224 void set_state(StateType state); 00231 00232 void set_size(IconSize size); 00239 00241 }; 00242 00243 } // namespace Gtk 00244 00245 } // namespace GFC 00246 00247 #include <gfc/gtk/inline/iconsource.inl> 00248 00249 #endif // GFC_GTK_ICON_SOURCE_HH 00250

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