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

cellrenderertext.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_TEXT_HH 00025 #define GFC_GTK_CELL_RENDERER_TEXT_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 GFC_PANGO_ATTRIBUTES_HH 00036 #include <gfc/pango/attributes.hh> 00037 #endif 00038 00039 #ifndef __GTK_CELL_RENDERER_TEXT_H__ 00040 #include <gtk/gtkcellrenderertext.h> 00041 #endif 00042 00043 namespace GFC { 00044 00045 namespace Gtk { 00046 00049 00050 class CellRendererText : public CellRenderer 00051 { 00052 friend class G::Object; 00053 00054 CellRendererText(const CellRendererText&); 00055 CellRendererText& operator=(const CellRendererText&); 00056 00057 protected: 00060 00061 explicit CellRendererText(GtkCellRendererText *cell, bool owns_reference = false); 00068 00072 00073 typedef G::Property<String> TextPropertyType; 00074 typedef G::PropertyProxy<G::Object, TextPropertyType> TextPropertyProxy; 00075 static const TextPropertyType text_property; 00077 00078 typedef G::WritableProperty<String> MarkupPropertyType; 00079 typedef G::PropertyProxy<G::Object, MarkupPropertyType> MarkupPropertyProxy; 00080 static const MarkupPropertyType markup_property; 00082 00083 typedef G::Property<Pointer<Pango::AttrList> > AttributePropertyType; 00084 typedef G::PropertyProxy<G::Object, AttributePropertyType> AttributePropertyProxy; 00085 static const AttributePropertyType attribute_property; 00087 00088 typedef G::Property<Pointer<bool> > SingleParagraphModePropertyType; 00089 typedef G::PropertyProxy<G::Object, SingleParagraphModePropertyType> SingleParagraphModePropertyProxy; 00090 static const SingleParagraphModePropertyType single_paragraph_mode_property; 00092 00093 typedef G::WritableProperty<String> BackgroundPropertyType; 00094 typedef G::PropertyProxy<G::Object, BackgroundPropertyType> BackgroundPropertyProxy; 00095 static const BackgroundPropertyType background_property; 00097 00098 typedef G::Property<Pointer<Gdk::Color> > BackgroundGdkPropertyType; 00099 typedef G::PropertyProxy<G::Object, BackgroundGdkPropertyType> BackgroundGdkPropertyProxy; 00100 static const BackgroundGdkPropertyType background_gdk_property; 00102 00103 typedef G::WritableProperty<String> ForegroundPropertyType; 00104 typedef G::PropertyProxy<G::Object, ForegroundPropertyType> ForegroundPropertyProxy; 00105 static const ForegroundPropertyType foreground_property; 00107 00108 typedef G::Property<Pointer<Gdk::Color> > ForegroundGdkPropertyType; 00109 typedef G::PropertyProxy<G::Object, ForegroundGdkPropertyType> ForegroundGdkPropertyProxy; 00110 static const ForegroundGdkPropertyType foreground_gdk_property; 00112 00113 typedef G::Property<bool> EditablePropertyType; 00114 typedef G::PropertyProxy<G::Object, EditablePropertyType> EditablePropertyProxy; 00115 static const EditablePropertyType editable_property; 00117 00118 typedef G::Property<String> FontPropertyType; 00119 typedef G::PropertyProxy<G::Object, FontPropertyType> FontPropertyProxy; 00120 static const FontPropertyType font_property; 00122 00123 typedef G::Property<Pointer<Pango::FontDescription> > FontDescPropertyType; 00124 typedef G::PropertyProxy<G::Object, FontDescPropertyType> FontDescPropertyProxy; 00125 static const FontDescPropertyType font_desc_property; 00127 00128 typedef G::Property<String> FamilyPropertyType; 00129 typedef G::PropertyProxy<G::Object, FamilyPropertyType> FamilyPropertyProxy; 00130 static const FamilyPropertyType family_property; 00132 00133 typedef G::Property<Pango::Style, int> StylePropertyType; 00134 typedef G::PropertyProxy<G::Object, StylePropertyType> StylePropertyProxy; 00135 static const StylePropertyType style_property; 00137 00138 typedef G::Property<Pango::Variant, int> VariantPropertyType; 00139 typedef G::PropertyProxy<G::Object, VariantPropertyType> VariantPropertyProxy; 00140 static const VariantPropertyType variant_property; 00142 00143 typedef G::Property<Pango::Weight, int> WeightPropertyType; 00144 typedef G::PropertyProxy<G::Object, WeightPropertyType> WeightPropertyProxy; 00145 static const WeightPropertyType weight_property; 00147 00148 typedef G::Property<Pango::Stretch, int> StretchPropertyType; 00149 typedef G::PropertyProxy<G::Object, StretchPropertyType> StretchPropertyProxy; 00150 static const StretchPropertyType stretch_property; 00152 00153 typedef G::Property<int> SizePropertyType; 00154 typedef G::PropertyProxy<G::Object, SizePropertyType> SizePropertyProxy; 00155 static const SizePropertyType size_property; 00157 00158 typedef G::Property<double> SizePointsPropertyType; 00159 typedef G::PropertyProxy<G::Object, SizePointsPropertyType> SizePointsPropertyProxy; 00160 static const SizePointsPropertyType size_points_property; 00162 00163 typedef G::Property<double> ScalePropertyType; 00164 typedef G::PropertyProxy<G::Object, ScalePropertyType> ScalePropertyProxy; 00165 static const ScalePropertyType scale_property; 00167 00168 typedef G::Property<int> RisePropertyType; 00169 typedef G::PropertyProxy<G::Object, RisePropertyType> RisePropertyProxy; 00170 static const RisePropertyType rise_property; 00172 00173 typedef G::Property<String> LanguagePropertyType; 00174 typedef G::PropertyProxy<G::Object, LanguagePropertyType> LanguagePropertyProxy; 00175 static const LanguagePropertyType language_property; 00177 00178 typedef G::Property<bool> StrikethroughPropertyType; 00179 typedef G::PropertyProxy<G::Object, StrikethroughPropertyType> StrikethroughPropertyProxy; 00180 static const StrikethroughPropertyType strikethrough_property; 00182 00183 typedef G::Property<Pango::Underline, int> UnderlinePropertyType; 00184 typedef G::PropertyProxy<G::Object, UnderlinePropertyType> UnderlinePropertyProxy; 00185 static const UnderlinePropertyType underline_property; 00187 00188 typedef G::Property<bool> BackgroundSetPropertyType; 00189 typedef G::PropertyProxy<G::Object, BackgroundSetPropertyType> BackgroundSetPropertyProxy; 00190 static const BackgroundSetPropertyType background_set_property; 00192 00193 typedef G::Property<bool> ForegroundSetPropertyType; 00194 typedef G::PropertyProxy<G::Object, ForegroundSetPropertyType> ForegroundSetPropertyProxy; 00195 static const ForegroundSetPropertyType foreground_set_property; 00197 00198 typedef G::Property<bool> EditableSetPropertyType; 00199 typedef G::PropertyProxy<G::Object, EditableSetPropertyType> EditableSetPropertyProxy; 00200 static const EditableSetPropertyType editable_set_property; 00202 00203 typedef G::Property<bool> FamilySetPropertyType; 00204 typedef G::PropertyProxy<G::Object, FamilySetPropertyType> FamilySetPropertyProxy; 00205 static const FamilySetPropertyType family_set_property; 00207 00208 typedef G::Property<bool> StyleSetPropertyType; 00209 typedef G::PropertyProxy<G::Object, StyleSetPropertyType> StyleSetPropertyProxy; 00210 static const StyleSetPropertyType style_set_property; 00212 00213 typedef G::Property<bool> VariantSetPropertyType; 00214 typedef G::PropertyProxy<G::Object, VariantSetPropertyType> VariantSetPropertyProxy; 00215 static const VariantSetPropertyType variant_set_property; 00217 00218 typedef G::Property<bool> WeightSetPropertyType; 00219 typedef G::PropertyProxy<G::Object, WeightSetPropertyType> WeightSetPropertyProxy; 00220 static const WeightSetPropertyType weight_set_property; 00222 00223 typedef G::Property<bool> StretchSetPropertyType; 00224 typedef G::PropertyProxy<G::Object, StretchSetPropertyType> StretchSetPropertyProxy; 00225 static const StretchSetPropertyType stretch_set_property; 00227 00228 typedef G::Property<bool> SizeSetPropertyType; 00229 typedef G::PropertyProxy<G::Object, SizeSetPropertyType> SizeSetPropertyProxy; 00230 static const SizeSetPropertyType size_set_property; 00232 00233 typedef G::Property<bool> ScaleSetPropertyType; 00234 typedef G::PropertyProxy<G::Object, ScaleSetPropertyType> ScaleSetPropertyProxy; 00235 static const ScaleSetPropertyType scale_set_property; 00237 00238 typedef G::Property<bool> RiseSetPropertyType; 00239 typedef G::PropertyProxy<G::Object, RiseSetPropertyType> RiseSetPropertyProxy; 00240 static const RiseSetPropertyType rise_set_property; 00242 00243 typedef G::Property<bool> StrikethroughSetPropertyType; 00244 typedef G::PropertyProxy<G::Object, StrikethroughSetPropertyType> StrikethroughSetPropertyProxy; 00245 static const StrikethroughSetPropertyType strikethrough_set_property; 00247 00248 typedef G::Property<bool> UnderlineSetPropertyType; 00249 typedef G::PropertyProxy<G::Object, UnderlineSetPropertyType> UnderlineSetPropertyProxy; 00250 static const UnderlineSetPropertyType underline_set_property; 00252 00253 typedef G::Property<bool> LanguageSetPropertyType; 00254 typedef G::PropertyProxy<G::Object, LanguageSetPropertyType> LanguageSetPropertyProxy; 00255 static const LanguageSetPropertyType language_set_property; 00257 00261 00262 typedef G::Signal<void, const String&, const String&> EditedSignalType; 00263 typedef G::SignalProxy<TypeInstance, EditedSignalType> EditedSignalProxy; 00264 static const EditedSignalType edited_signal; 00272 00274 00275 public: 00278 00279 CellRendererText(); 00285 00286 virtual ~CellRendererText(); 00288 00292 00293 GtkCellRendererText* gtk_cell_renderer_text() const; 00295 00296 operator GtkCellRendererText* () const; 00298 00302 00303 void set_fixed_height_from_font(int number_of_rows); 00314 00318 00319 const TextPropertyProxy prop_text(); 00321 00322 const MarkupPropertyProxy prop_markup(); 00324 00325 const AttributePropertyProxy prop_attribute(); 00328 00329 const SingleParagraphModePropertyProxy prop_single_paragraph_mode(); 00331 00332 const BackgroundPropertyProxy prop_background(); 00334 00335 const BackgroundGdkPropertyProxy prop_background_gdk(); 00337 00338 const ForegroundPropertyProxy prop_foreground(); 00340 00341 const ForegroundGdkPropertyProxy prop_foreground_gdk(); 00343 00344 const EditablePropertyProxy prop_editable(); 00346 00347 const FontPropertyProxy prop_font(); 00349 00350 const FontDescPropertyProxy prop_font_desc(); 00352 00353 const FamilyPropertyProxy prop_family(); 00355 00356 const StylePropertyProxy prop_style(); 00358 00359 const VariantPropertyProxy prop_variant(); 00361 00362 const WeightPropertyProxy prop_weight(); 00364 00365 const StretchPropertyProxy prop_stretch(); 00367 00368 const SizePropertyProxy prop_size(); 00370 00371 const SizePointsPropertyProxy prop_size_points(); 00373 00374 const ScalePropertyProxy prop_scale(); 00376 00377 const RisePropertyProxy prop_rise(); 00379 00380 const LanguagePropertyProxy prop_language(); 00384 00385 const StrikethroughPropertyProxy prop_strikethrough(); 00387 00388 const UnderlinePropertyProxy prop_underline(); 00390 00391 const BackgroundSetPropertyProxy prop_background_set(); 00393 00394 const ForegroundSetPropertyProxy prop_foreground_set(); 00396 00397 const EditableSetPropertyProxy prop_editable_set(); 00399 00400 const FamilySetPropertyProxy prop_family_set(); 00402 00403 const StyleSetPropertyProxy prop_style_set(); 00405 00406 const VariantSetPropertyProxy prop_variant_set(); 00408 00409 const WeightSetPropertyProxy prop_weight_set(); 00411 00412 const StretchSetPropertyProxy prop_stretch_set(); 00414 00415 const SizeSetPropertyProxy prop_size_set(); 00417 00418 const ScaleSetPropertyProxy prop_scale_set(); 00420 00421 const RiseSetPropertyProxy prop_rise_set(); 00423 00424 const StrikethroughSetPropertyProxy prop_strikethrough_set(); 00426 00427 const UnderlineSetPropertyProxy prop_underline_set(); 00429 00430 const LanguageSetPropertyProxy prop_language_set(); 00432 00436 00437 const EditedSignalProxy sig_edited(); 00439 00441 }; 00442 00443 } // namespace Gtk 00444 00445 } // namespace GFC 00446 00447 #include <gfc/gtk/inline/cellrenderertext.inl> 00448 00449 #endif // GFC_GTK_CELL_RENDERER_TEXT_HH 00450

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