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

texttag.hh

Go to the documentation of this file.
00001 /* GFC-UI: GTK+ Foundation Classes (User Interface Library) 00002 * Copyright (C) 2002-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_TEXT_TAG_HH 00025 #define GFC_GTK_TEXT_TAG_HH 00026 00027 #ifndef GFC_G_BOXED_HH 00028 #include <gfc/glib/boxed.hh> 00029 #endif 00030 00031 #ifndef GFC_G_OBJECT_HH 00032 #include <gfc/glib/object.hh> 00033 #endif 00034 00035 #ifndef GFC_G_PROPERTY_HH 00036 #include <gfc/glib/property.hh> 00037 #endif 00038 00039 #ifndef GFC_GTK_ENUMS_HH 00040 #include <gfc/gtk/enums.hh> 00041 #endif 00042 00043 #ifndef GFC_PANGO_ATTRIBUTES_HH 00044 #include <gfc/pango/attributes.hh> 00045 #endif 00046 00047 #ifndef GTK_TEXT_TAG_H 00048 #include <gtk/gtktexttag.h> 00049 #endif 00050 00051 #ifndef GTK_TEXT_TAG_TABLE_H 00052 #include <gtk/gtktexttagtable.h> 00053 #endif 00054 00055 namespace GFC { 00056 00057 namespace Pango { 00058 class FontDescription; 00059 class TabArray; 00060 } 00061 00062 namespace Gdk { 00063 class Color; 00064 class Bitmap; 00065 class Event; 00066 class Pixmap; 00067 } 00068 00069 namespace Gtk { 00070 00071 class TextIter; 00072 class TextTagTable; 00073 00079 00080 class TextAppearance 00081 { 00082 GtkTextAppearance appearence_; 00083 00084 public: 00087 00088 GtkTextAppearance* gtk_text_appearance() const; 00090 00091 Gdk::Color bg_color() const; 00093 00094 Gdk::Color fg_color() const; 00096 00097 Gdk::Bitmap* bg_stipple() const; 00099 00100 Gdk::Bitmap* fg_stipple() const; 00102 00103 int rise() const; 00105 00106 Pango::Underline underline() const; 00108 00109 bool strikethrough() const; 00111 00115 00116 void set_colors(const Gdk::Color& fg_color, const Gdk::Color& bg_color); 00120 00121 void set_bg_color(const Gdk::Color& color); 00124 00125 void set_fg_color(const Gdk::Color& color); 00128 00129 void set_stipple(const Gdk::Bitmap& fg_mask, const Gdk::Bitmap& bg_mask); 00133 00134 void set_bg_stipple(const Gdk::Bitmap& mask); 00137 00138 void set_fg_stipple(const Gdk::Bitmap& mask); 00141 00142 void set_rise(int rise); 00145 00146 void set_underline(Pango::Underline underline); 00149 00150 void set_strikethrough(bool setting); 00153 00155 }; 00156 00162 00163 class TextAttributes : public G::Boxed 00164 { 00165 public: 00168 00169 TextAttributes(); 00171 00172 explicit TextAttributes(GtkTextAttributes *values); 00180 00181 TextAttributes(GtkTextAttributes *values, bool copy); 00193 00194 explicit TextAttributes(const TextAttributes& src); 00197 00198 ~TextAttributes(); 00200 00201 TextAttributes& operator=(const TextAttributes& src); 00204 00208 00209 GtkTextAttributes* gtk_text_attributes() const; 00211 00212 operator GtkTextAttributes* () const; 00214 00215 TextAppearance& appearance() const; 00217 00218 Justification justification() const; 00220 00221 TextDirection direction() const; 00223 00224 Pointer<Pango::FontDescription> font() const; 00226 00227 double font_scale() const; 00229 00230 int left_margin() const; 00232 00233 int indent() const; 00235 00236 int right_margin() const; 00238 00239 int pixels_above_lines() const; 00241 00242 int pixels_below_lines() const; 00244 00245 int pixels_inside_wrap() const; 00247 00248 Pointer<Pango::TabArray> tabs() const; 00250 00251 WrapMode wrap_mode() const; 00253 00254 PangoLanguage* language() const; 00257 00258 bool invisible() const; 00260 00261 bool bg_full_height() const; 00264 00265 bool editable() const; 00267 00268 bool realized() const; 00270 00274 00275 void set_justification(Justification justification); 00278 00279 void set_direction(TextDirection direction); 00282 00283 void set_margins(int left_margin, int right_margin); 00287 00288 void set_left_margin(int margin); 00291 00292 void set_right_margin(int margin); 00295 00296 void set_indent(int indent); 00298 00299 void set_pixels(int pixels_above_lines, int pixels_below_lines, int pixels_inside_wrap); 00304 00305 void set_pixels_above_lines(int pixels); 00308 00309 void set_pixels_below_lines(int pixels); 00312 00313 void set_pixels_inside_wrap(int pixels); 00316 00317 void set_tab_array(Pango::TabArray& tabs); 00320 00321 void set_wrap_mode(WrapMode wrap_mode); 00324 00325 void set_language(PangoLanguage *language); 00331 00332 void set_invisible(bool setting); 00335 00336 void set_bg_full_height(bool setting); 00340 00341 void set_editable(bool setting); 00343 00345 }; 00346 00365 00366 class TextTag : public G::Object 00367 { 00368 friend class G::Object; 00369 friend class TextTagClass; 00370 00371 TextTag(const TextTag&); 00372 TextTag& operator=(const TextTag&); 00373 00374 protected: 00377 00378 explicit TextTag(GtkTextTag *tag, bool owns_reference = true); 00385 00389 00390 typedef G::Property<String> NamePropertyType; 00391 typedef G::PropertyProxy<G::Object, NamePropertyType> NamePropertyProxy; 00392 static const NamePropertyType name_property; 00394 00395 typedef G::WritableProperty<String> BackgroundPropertyType; 00396 typedef G::PropertyProxy<G::Object, BackgroundPropertyType> BackgroundPropertyProxy; 00397 static const BackgroundPropertyType background_property; 00399 00400 typedef G::Property<Pointer<Gdk::Color> > BackgroundGdkPropertyType; 00401 typedef G::PropertyProxy<G::Object, BackgroundGdkPropertyType> BackgroundGdkPropertyProxy; 00402 static const BackgroundGdkPropertyType background_gdk_property; 00404 00405 typedef G::Property<bool> BackgroundFullHeightPropertyType; 00406 typedef G::PropertyProxy<G::Object, BackgroundFullHeightPropertyType> BackgroundFullHeightPropertyProxy; 00407 static const BackgroundFullHeightPropertyType background_full_height_property; 00409 00410 typedef G::Property<Gdk::Bitmap*, G::Object*> BackgroundStipplePropertyType; 00411 typedef G::PropertyProxy<G::Object, BackgroundStipplePropertyType> BackgroundStipplePropertyProxy; 00412 static const BackgroundStipplePropertyType background_stipple_property; 00414 00415 typedef G::WritableProperty<String> ForegroundPropertyType; 00416 typedef G::PropertyProxy<G::Object, ForegroundPropertyType> ForegroundPropertyProxy; 00417 static const ForegroundPropertyType foreground_property; 00419 00420 typedef G::Property<Pointer<Gdk::Color> > ForegroundGdkPropertyType; 00421 typedef G::PropertyProxy<G::Object, ForegroundGdkPropertyType> ForegroundGdkPropertyProxy; 00422 static const ForegroundGdkPropertyType foreground_gdk_property; 00424 00425 typedef G::Property<Gdk::Bitmap*, G::Object*> ForegroundStipplePropertyType; 00426 typedef G::PropertyProxy<G::Object, ForegroundStipplePropertyType> ForegroundStipplePropertyProxy; 00427 static const ForegroundStipplePropertyType foreground_stipple_property; 00429 00430 typedef G::Property<TextDirection, int> DirectionPropertyType; 00431 typedef G::PropertyProxy<G::Object, DirectionPropertyType> DirectionPropertyProxy; 00432 static const DirectionPropertyType direction_property; 00434 00435 typedef G::Property<bool> EditablePropertyType; 00436 typedef G::PropertyProxy<G::Object, EditablePropertyType> EditablePropertyProxy; 00437 static const EditablePropertyType editable_property; 00439 00440 typedef G::Property<String> FontPropertyType; 00441 typedef G::PropertyProxy<G::Object, FontPropertyType> FontPropertyProxy; 00442 static const FontPropertyType font_property; 00444 00445 typedef G::Property<Pointer<Pango::FontDescription> > FontDescPropertyType; 00446 typedef G::PropertyProxy<G::Object, FontDescPropertyType> FontDescPropertyProxy; 00447 static const FontDescPropertyType font_desc_property; 00449 00450 typedef G::Property<String> FamilyPropertyType; 00451 typedef G::PropertyProxy<G::Object, FamilyPropertyType> FamilyPropertyProxy; 00452 static const FamilyPropertyType family_property; 00454 00455 typedef G::Property<Pango::Style, int> StylePropertyType; 00456 typedef G::PropertyProxy<G::Object, StylePropertyType> StylePropertyProxy; 00457 static const StylePropertyType style_property; 00459 00460 typedef G::Property<Pango::Variant, int> VariantPropertyType; 00461 typedef G::PropertyProxy<G::Object, VariantPropertyType> VariantPropertyProxy; 00462 static const VariantPropertyType variant_property; 00464 00465 typedef G::Property<Pango::Weight, int> WeightPropertyType; 00466 typedef G::PropertyProxy<G::Object, WeightPropertyType> WeightPropertyProxy; 00467 static const WeightPropertyType weight_property; 00469 00470 typedef G::Property<Pango::Stretch, int> StretchPropertyType; 00471 typedef G::PropertyProxy<G::Object, StretchPropertyType> StretchPropertyProxy; 00472 static const StretchPropertyType stretch_property; 00474 00475 typedef G::Property<int> SizePropertyType; 00476 typedef G::PropertyProxy<G::Object, SizePropertyType> SizePropertyProxy; 00477 static const SizePropertyType size_property; 00479 00480 typedef G::Property<double> ScalePropertyType; 00481 typedef G::PropertyProxy<G::Object, ScalePropertyType> ScalePropertyProxy; 00482 static const ScalePropertyType scale_property; 00484 00485 typedef G::Property<double> SizePointsPropertyType; 00486 typedef G::PropertyProxy<G::Object, SizePointsPropertyType> SizePointsPropertyProxy; 00487 static const SizePointsPropertyType size_points_property; 00489 00490 typedef G::Property<Justification, int> JustificationPropertyType; 00491 typedef G::PropertyProxy<G::Object, JustificationPropertyType> JustificationPropertyProxy; 00492 static const JustificationPropertyType justification_property; 00494 00495 typedef G::Property<String> LanguagePropertyType; 00496 typedef G::PropertyProxy<G::Object, LanguagePropertyType> LanguagePropertyProxy; 00497 static const LanguagePropertyType language_property; 00499 00500 typedef G::Property<int> LeftMarginPropertyType; 00501 typedef G::PropertyProxy<G::Object, LeftMarginPropertyType> LeftMarginPropertyProxy; 00502 static const LeftMarginPropertyType left_margin_property; 00504 00505 typedef G::Property<int> RightMarginPropertyType; 00506 typedef G::PropertyProxy<G::Object, RightMarginPropertyType> RightMarginPropertyProxy; 00507 static const RightMarginPropertyType right_margin_property; 00509 00510 typedef G::Property<int> IndentPropertyType; 00511 typedef G::PropertyProxy<G::Object, IndentPropertyType> IndentPropertyProxy; 00512 static const IndentPropertyType indent_property; 00514 00515 typedef G::Property<int> RisePropertyType; 00516 typedef G::PropertyProxy<G::Object, RisePropertyType> RisePropertyProxy; 00517 static const RisePropertyType rise_property; 00519 00520 typedef G::Property<int> PixelsAboveLinesPropertyType; 00521 typedef G::PropertyProxy<G::Object, PixelsAboveLinesPropertyType> PixelsAboveLinesPropertyProxy; 00522 static const PixelsAboveLinesPropertyType pixels_above_lines_property; 00524 00525 typedef G::Property<int> PixelsBelowLinesPropertyType; 00526 typedef G::PropertyProxy<G::Object, PixelsBelowLinesPropertyType> PixelsBelowLinesPropertyProxy; 00527 static const PixelsBelowLinesPropertyType pixels_below_lines_property; 00529 00530 typedef G::Property<int> PixelsInsideWrapPropertyType; 00531 typedef G::PropertyProxy<G::Object, PixelsInsideWrapPropertyType> PixelsInsideWrapPropertyProxy; 00532 static const PixelsInsideWrapPropertyType pixels_inside_wrap_property; 00534 00535 typedef G::Property<bool> StrikethroughPropertyType; 00536 typedef G::PropertyProxy<G::Object, StrikethroughPropertyType> StrikethroughPropertyProxy; 00537 static const StrikethroughPropertyType strikethrough_property; 00539 00540 typedef G::Property<Pango::Underline, int> UnderlinePropertyType; 00541 typedef G::PropertyProxy<G::Object, UnderlinePropertyType> UnderlinePropertyProxy; 00542 static const UnderlinePropertyType underline_property; 00544 00545 typedef G::Property<WrapMode, int> WrapModePropertyType; 00546 typedef G::PropertyProxy<G::Object, WrapModePropertyType> WrapModePropertyProxy; 00547 static const WrapModePropertyType wrap_mode_property; 00549 00550 typedef G::Property<Pointer<Pango::TabArray> > TabsPropertyType; 00551 typedef G::PropertyProxy<G::Object, TabsPropertyType> TabsPropertyProxy; 00552 static const TabsPropertyType tabs_property; 00554 00555 typedef G::Property<bool> InvisiblePropertyType; 00556 typedef G::PropertyProxy<G::Object, InvisiblePropertyType> InvisiblePropertyProxy; 00557 static const InvisiblePropertyType invisible_property; 00559 00560 typedef G::Property<bool> BackgroundSetPropertyType; 00561 typedef G::PropertyProxy<G::Object, BackgroundSetPropertyType> BackgroundSetPropertyProxy; 00562 static const BackgroundSetPropertyType background_set_property; 00564 00565 typedef G::Property<bool> BackgroundFullHeightSetPropertyType; 00566 typedef G::PropertyProxy<G::Object, BackgroundFullHeightSetPropertyType> BackgroundFullHeightSetPropertyProxy; 00567 static const BackgroundFullHeightSetPropertyType background_full_height_set_property; 00569 00570 typedef G::Property<bool> BackgroundStippleSetPropertyType; 00571 typedef G::PropertyProxy<G::Object, BackgroundStippleSetPropertyType> BackgroundStippleSetPropertyProxy; 00572 static const BackgroundStippleSetPropertyType background_stipple_set_property; 00574 00575 typedef G::Property<bool> ForegroundSetPropertyType; 00576 typedef G::PropertyProxy<G::Object, ForegroundSetPropertyType> ForegroundSetPropertyProxy; 00577 static const ForegroundSetPropertyType foreground_set_property; 00579 00580 typedef G::Property<bool> ForegroundStippleSetPropertyType; 00581 typedef G::PropertyProxy<G::Object, ForegroundStippleSetPropertyType> ForegroundStippleSetPropertyProxy; 00582 static const ForegroundStippleSetPropertyType foreground_stipple_set_property; 00584 00585 typedef G::Property<bool> EditableSetPropertyType; 00586 typedef G::PropertyProxy<G::Object, EditableSetPropertyType> EditableSetPropertyProxy; 00587 static const EditableSetPropertyType editable_set_property; 00589 00590 typedef G::Property<bool> FamilySetPropertyType; 00591 typedef G::PropertyProxy<G::Object, FamilySetPropertyType> FamilySetPropertyProxy; 00592 static const FamilySetPropertyType family_set_property; 00594 00595 typedef G::Property<bool> StyleSetPropertyType; 00596 typedef G::PropertyProxy<G::Object, StyleSetPropertyType> StyleSetPropertyProxy; 00597 static const StyleSetPropertyType style_set_property; 00599 00600 typedef G::Property<bool> VariantSetPropertyType; 00601 typedef G::PropertyProxy<G::Object, VariantSetPropertyType> VariantSetPropertyProxy; 00602 static const VariantSetPropertyType variant_set_property; 00604 00605 typedef G::Property<bool> WeightSetPropertyType; 00606 typedef G::PropertyProxy<G::Object, WeightSetPropertyType> WeightSetPropertyProxy; 00607 static const WeightSetPropertyType weight_set_property; 00609 00610 typedef G::Property<bool> StretchSetPropertyType; 00611 typedef G::PropertyProxy<G::Object, StretchSetPropertyType> StretchSetPropertyProxy; 00612 static const StretchSetPropertyType stretch_set_property; 00614 00615 typedef G::Property<bool> SizeSetPropertyType; 00616 typedef G::PropertyProxy<G::Object, SizeSetPropertyType> SizeSetPropertyProxy; 00617 static const SizeSetPropertyType size_set_property; 00619 00620 typedef G::Property<bool> ScaleSetPropertyType; 00621 typedef G::PropertyProxy<G::Object, ScaleSetPropertyType> ScaleSetPropertyProxy; 00622 static const ScaleSetPropertyType scale_set_property; 00624 00625 typedef G::Property<bool> JustificationSetPropertyType; 00626 typedef G::PropertyProxy<G::Object, JustificationSetPropertyType> JustificationSetPropertyProxy; 00627 static const JustificationSetPropertyType justification_set_property; 00629 00630 typedef G::Property<bool> LanguageSetPropertyType; 00631 typedef G::PropertyProxy<G::Object, LanguageSetPropertyType> LanguageSetPropertyProxy; 00632 static const LanguageSetPropertyType language_set_property; 00634 00635 typedef G::Property<bool> LeftMarginSetPropertyType; 00636 typedef G::PropertyProxy<G::Object, LeftMarginSetPropertyType> LeftMarginSetPropertyProxy; 00637 static const LeftMarginSetPropertyType left_margin_set_property; 00639 00640 typedef G::Property<bool> IndentSetPropertyType; 00641 typedef G::PropertyProxy<G::Object, IndentSetPropertyType> IndentSetPropertyProxy; 00642 static const IndentSetPropertyType indent_set_property; 00644 00645 typedef G::Property<bool> RiseSetPropertyType; 00646 typedef G::PropertyProxy<G::Object, RiseSetPropertyType> RiseSetPropertyProxy; 00647 static const RiseSetPropertyType rise_set_property; 00649 00650 typedef G::Property<bool> PixelsAboveLinesSetPropertyType; 00651 typedef G::PropertyProxy<G::Object, PixelsAboveLinesSetPropertyType> PixelsAboveLinesSetPropertyProxy; 00652 static const PixelsAboveLinesSetPropertyType pixels_above_lines_set_property; 00654 00655 typedef G::Property<bool> PixelsBelowLinesSetPropertyType; 00656 typedef G::PropertyProxy<G::Object, PixelsBelowLinesSetPropertyType> PixelsBelowLinesSetPropertyProxy; 00657 static const PixelsBelowLinesSetPropertyType pixels_below_lines_set_property; 00659 00660 typedef G::Property<bool> PixelsInsideWrapSetPropertyType; 00661 typedef G::PropertyProxy<G::Object, PixelsInsideWrapSetPropertyType> PixelsInsideWrapSetPropertyProxy; 00662 static const PixelsInsideWrapSetPropertyType pixels_inside_wrap_set_property; 00664 00665 typedef G::Property<bool> StrikethroughSetPropertyType; 00666 typedef G::PropertyProxy<G::Object, StrikethroughSetPropertyType> StrikethroughSetPropertyProxy; 00667 static const StrikethroughSetPropertyType strikethrough_set_property; 00669 00670 typedef G::Property<bool> RightMarginSetPropertyType; 00671 typedef G::PropertyProxy<G::Object, RightMarginSetPropertyType> RightMarginSetPropertyProxy; 00672 static const RightMarginSetPropertyType right_margin_set_property; 00674 00675 typedef G::Property<bool> UnderlineSetPropertyType; 00676 typedef G::PropertyProxy<G::Object, UnderlineSetPropertyType> UnderlineSetPropertyProxy; 00677 static const UnderlineSetPropertyType underline_set_property; 00679 00680 typedef G::Property<bool> WrapModeSetPropertyType; 00681 typedef G::PropertyProxy<G::Object, WrapModeSetPropertyType> WrapModeSetPropertyProxy; 00682 static const WrapModeSetPropertyType wrap_mode_set_property; 00684 00685 typedef G::Property<bool> TabsSetPropertyType; 00686 typedef G::PropertyProxy<G::Object, TabsSetPropertyType> TabsSetPropertyProxy; 00687 static const TabsSetPropertyType tabs_set_property; 00689 00690 typedef G::Property<bool> InvisibleSetPropertyType; 00691 typedef G::PropertyProxy<G::Object, InvisibleSetPropertyType> InvisibleSetPropertyProxy; 00692 static const InvisibleSetPropertyType invisible_set_property; 00694 00698 00699 typedef G::Signal<bool, G::Object&, Gdk::Event&, const TextIter&> EventSignalType; 00700 typedef G::SignalProxy<TypeInstance, EventSignalType> EventSignalProxy; 00701 static const EventSignalType event_signal; 00710 00712 00713 public: 00716 00717 TextTag(); 00719 00720 explicit TextTag(const char *name); 00721 explicit TextTag(const String& name); 00724 00725 virtual ~TextTag(); 00727 00731 00732 GtkTextTag* gtk_text_tag() const; 00734 00735 operator GtkTextTag* () const; 00737 00738 TextTagTable* table() const; 00741 00742 Pointer<TextAttributes> values() const; 00748 00749 int get_priority() const; 00752 00756 00757 void set_priority(int priority); 00769 00770 bool event(G::Object& event_object, Gdk::Event& event, const TextIter& iter); 00776 00780 00781 const NamePropertyProxy prop_name(); 00784 00785 const BackgroundPropertyProxy prop_background(); 00787 00788 const BackgroundGdkPropertyProxy prop_background_gdk(); 00790 00791 const BackgroundFullHeightPropertyProxy prop_background_full_height(); 00794 00795 const BackgroundStipplePropertyProxy prop_background_stipple(); 00797 00798 const ForegroundPropertyProxy prop_foreground(); 00800 00801 const ForegroundGdkPropertyProxy prop_foreground_gdk(); 00803 00804 const ForegroundStipplePropertyProxy prop_foreground_stipple(); 00806 00807 const DirectionPropertyProxy prop_direction(); 00809 00810 const EditablePropertyProxy prop_editable(); 00812 00813 const FontPropertyProxy prop_font(); 00815 00816 const FontDescPropertyProxy prop_font_desc(); 00818 00819 const FamilyPropertyProxy prop_family(); 00821 00822 const StylePropertyProxy prop_style(); 00824 00825 const VariantPropertyProxy prop_variant(); 00827 00828 const WeightPropertyProxy prop_weight(); 00830 00831 const StretchPropertyProxy prop_stretch(); 00833 00834 const SizePropertyProxy prop_size(); 00836 00837 const ScalePropertyProxy prop_scale(); 00841 00842 const SizePointsPropertyProxy prop_size_points(); 00844 00845 const JustificationPropertyProxy prop_justification(); 00847 00848 const LanguagePropertyProxy prop_language(); 00852 00853 const LeftMarginPropertyProxy prop_left_margin(); 00855 00856 const RightMarginPropertyProxy prop_right_margin(); 00858 00859 const IndentPropertyProxy prop_indent(); 00861 00862 const RisePropertyProxy prop_rise(); 00865 00866 const PixelsAboveLinesPropertyProxy prop_pixels_above_lines(); 00868 00869 const PixelsBelowLinesPropertyProxy prop_pixels_below_lines(); 00871 00872 const PixelsInsideWrapPropertyProxy prop_pixels_inside_wrap(); 00874 00875 const StrikethroughPropertyProxy prop_strikethrough(); 00877 00878 const UnderlinePropertyProxy prop_underline(); 00880 00881 const WrapModePropertyProxy prop_wrap_mode(); 00884 00885 const TabsPropertyProxy prop_tabs(); 00887 00888 const InvisiblePropertyProxy prop_invisible(); 00890 00891 const BackgroundSetPropertyProxy prop_background_set(); 00893 00894 const BackgroundFullHeightSetPropertyProxy prop_background_full_height_set(); 00896 00897 const BackgroundStippleSetPropertyProxy prop_background_stipple_set(); 00899 00900 const ForegroundSetPropertyProxy prop_foreground_set(); 00902 00903 const ForegroundStippleSetPropertyProxy prop_foreground_stipple_set(); 00905 00906 const EditableSetPropertyProxy prop_editable_set(); 00908 00909 const FamilySetPropertyProxy prop_family_set(); 00911 00912 const StyleSetPropertyProxy prop_style_set(); 00914 00915 const VariantSetPropertyProxy prop_variant_set(); 00917 00918 const WeightSetPropertyProxy prop_weight_set(); 00920 00921 const StretchSetPropertyProxy prop_stretch_set(); 00923 00924 const SizeSetPropertyProxy prop_size_set(); 00926 00927 const ScaleSetPropertyProxy prop_scale_set(); 00929 00930 const JustificationSetPropertyProxy prop_justification_set(); 00932 00933 const LanguageSetPropertyProxy prop_language_set(); 00935 00936 const LeftMarginSetPropertyProxy prop_left_margin_set(); 00938 00939 const IndentSetPropertyProxy prop_indent_set(); 00941 00942 const RiseSetPropertyProxy prop_rise_set(); 00944 00945 const PixelsAboveLinesSetPropertyProxy prop_pixels_above_lines_set(); 00947 00948 const PixelsBelowLinesSetPropertyProxy prop_pixels_below_lines_set(); 00950 00951 const PixelsInsideWrapSetPropertyProxy prop_pixels_inside_wrap_set(); 00953 00954 const StrikethroughSetPropertyProxy prop_strikethrough_set(); 00956 00957 const RightMarginSetPropertyProxy prop_right_margin_set(); 00959 00960 const UnderlineSetPropertyProxy prop_underline_set(); 00962 00963 const WrapModeSetPropertyProxy prop_wrap_mode_set(); 00965 00966 const TabsSetPropertyProxy prop_tabs_set(); 00968 00969 const InvisibleSetPropertyProxy prop_invisible_set(); 00971 00975 00976 const EventSignalProxy sig_event(); 00978 00980 }; 00981 00989 00990 class TextTagTable : public G::Object 00991 { 00992 friend class G::Object; 00993 00994 TextTagTable(const TextTagTable&); 00995 TextTagTable& operator=(const TextTagTable&); 00996 00997 protected: 01000 01001 explicit TextTagTable(GtkTextTagTable *table, bool owns_reference = true); 01008 01012 01013 typedef G::Signal<void, TextTag&, bool> TagChangedSignalType; 01014 typedef G::SignalProxy<TypeInstance, TagChangedSignalType> TagChangedSignalProxy; 01015 static const TagChangedSignalType tag_changed_signal; 01022 01023 typedef G::Signal<void, TextTag&> TagAddedSignalType; 01024 typedef G::SignalProxy<TypeInstance, TagAddedSignalType> TagAddedSignalProxy; 01025 static const TagAddedSignalType tag_added_signal; 01031 01032 typedef G::Signal<void, TextTag&> TagRemovedSignalType; 01033 typedef G::SignalProxy<TypeInstance, TagRemovedSignalType> TagRemovedSignalProxy; 01034 static const TagRemovedSignalType tag_removed_signal; 01040 01042 01043 public: 01044 typedef sigc::slot<void, TextTag&> ForeachSlot; 01052 01055 01056 TextTagTable(); 01058 01059 virtual ~TextTagTable(); 01061 01065 01066 GtkTextTagTable* gtk_text_tag_table() const; 01068 01069 operator GtkTextTagTable* () const; 01071 01072 int get_size() const; 01075 01076 TextTag* lookup(const char *name); 01077 TextTag* lookup(const String& name); 01081 01085 01086 void add(TextTag& tag); 01092 01093 void remove(TextTag& tag); 01099 01100 void foreach(const ForeachSlot& each); 01103 01107 01108 const TagChangedSignalProxy sig_tag_changed(); 01110 01111 const TagAddedSignalProxy sig_tag_added(); 01113 01114 const TagRemovedSignalProxy sig_tag_removed(); 01116 01118 }; 01119 01120 } // namespace Gtk 01121 01122 } // namespace GFC 01123 01124 #include <gfc/gtk/inline/texttag.inl> 01125 01126 #endif // GFC_GTK_TEXT_TAG_HH 01127

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