00001 // -*- c++ -*- 00002 // Generated by gtkmmproc -- DO NOT MODIFY! 00003 #ifndef _LIBGNOMECANVASMM_TEXT_H 00004 #define _LIBGNOMECANVASMM_TEXT_H 00005 00006 00007 #include <glibmm.h> 00008 00009 /* $Id: text.hg,v 1.8 2004/04/07 19:13:51 murrayc Exp $ */ 00010 00011 /* text.h 00012 * 00013 * Copyright (C) 1998 EMC Capital Management Inc. 00014 * Developed by Havoc Pennington <hp@pobox.com> 00015 * 00016 * Copyright (C) 1999 The Gtk-- Development Team 00017 * 00018 * This library is free software; you can redistribute it and/or 00019 * modify it under the terms of the GNU Library General Public 00020 * License as published by the Free Software Foundation; either 00021 * version 2 of the License, or (at your option) any later version. 00022 * 00023 * This library is distributed in the hope that it will be useful, 00024 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00025 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00026 * Library General Public License for more details. 00027 * 00028 * You should have received a copy of the GNU Library General Public 00029 * License along with this library; if not, write to the Free 00030 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00031 */ 00032 00033 #include <libgnomecanvasmm/item.h> 00034 #include <pangomm/attrlist.h> 00035 #include <gtkmm/enums.h> 00036 #include <libgnomecanvas/gnome-canvas-text.h> 00037 00038 00039 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00040 typedef struct _GnomeCanvasText GnomeCanvasText; 00041 typedef struct _GnomeCanvasTextClass GnomeCanvasTextClass; 00042 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00043 00044 00045 namespace Gnome 00046 { 00047 00048 namespace Canvas 00049 { class Text_Class; } // namespace Canvas 00050 00051 } // namespace Gnome 00052 namespace Gnome 00053 { 00054 00055 namespace Canvas 00056 { 00057 00058 class Group; 00059 00060 00061 class Text : public Item 00062 { 00063 public: 00064 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00065 typedef Text CppObjectType; 00066 typedef Text_Class CppClassType; 00067 typedef GnomeCanvasText BaseObjectType; 00068 typedef GnomeCanvasTextClass BaseClassType; 00069 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00070 00071 virtual ~Text(); 00072 00073 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00074 00075 private: 00076 friend class Text_Class; 00077 static CppClassType text_class_; 00078 00079 // noncopyable 00080 Text(const Text&); 00081 Text& operator=(const Text&); 00082 00083 protected: 00084 explicit Text(const Glib::ConstructParams& construct_params); 00085 explicit Text(GnomeCanvasText* castitem); 00086 00087 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00088 00089 public: 00090 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00091 static GType get_type() G_GNUC_CONST; 00092 static GType get_base_type() G_GNUC_CONST; 00093 #endif 00094 00096 GnomeCanvasText* gobj() { return reinterpret_cast<GnomeCanvasText*>(gobject_); } 00097 00099 const GnomeCanvasText* gobj() const { return reinterpret_cast<GnomeCanvasText*>(gobject_); } 00100 00101 00102 public: 00103 //C++ methods used to invoke GTK+ virtual functions: 00104 00105 protected: 00106 //GTK+ Virtual Functions (override these to change behaviour): 00107 00108 //Default Signal Handlers:: 00109 00110 00111 private: 00112 00113 public: 00114 Text(Group& parent, double x, double y, const Glib::ustring& text); 00115 explicit Text(Group& parent); 00116 00123 Glib::PropertyProxy<Glib::ustring> property_text() ; 00124 00131 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_text() const; 00132 00139 Glib::PropertyProxy_WriteOnly<Glib::ustring> property_markup() ; 00140 00141 00148 Glib::PropertyProxy<double> property_x() ; 00149 00156 Glib::PropertyProxy_ReadOnly<double> property_x() const; 00157 00164 Glib::PropertyProxy<double> property_y() ; 00165 00172 Glib::PropertyProxy_ReadOnly<double> property_y() const; 00173 00180 Glib::PropertyProxy<Glib::ustring> property_font() ; 00181 00188 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_font() const; 00189 00196 Glib::PropertyProxy<Pango::FontDescription> property_font_desc() ; 00197 00204 Glib::PropertyProxy_ReadOnly<Pango::FontDescription> property_font_desc() const; 00205 00212 Glib::PropertyProxy<Glib::ustring> property_family() ; 00213 00220 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_family() const; 00221 00228 Glib::PropertyProxy<bool> property_family_set() ; 00229 00236 Glib::PropertyProxy_ReadOnly<bool> property_family_set() const; 00237 00244 Glib::PropertyProxy<Pango::AttrList> property_attributes() ; 00245 00252 Glib::PropertyProxy_ReadOnly<Pango::AttrList> property_attributes() const; 00253 00260 Glib::PropertyProxy<Pango::Style> property_style() ; 00261 00268 Glib::PropertyProxy_ReadOnly<Pango::Style> property_style() const; 00269 00276 Glib::PropertyProxy<bool> property_style_set() ; 00277 00284 Glib::PropertyProxy_ReadOnly<bool> property_style_set() const; 00285 00292 Glib::PropertyProxy<Pango::Variant> property_variant() ; 00293 00300 Glib::PropertyProxy_ReadOnly<Pango::Variant> property_variant() const; 00301 00308 Glib::PropertyProxy<bool> property_variant_set() ; 00309 00316 Glib::PropertyProxy_ReadOnly<bool> property_variant_set() const; 00317 00324 Glib::PropertyProxy<int> property_weight() ; 00325 00332 Glib::PropertyProxy_ReadOnly<int> property_weight() const; 00333 00340 Glib::PropertyProxy<bool> property_weight_set() ; 00341 00348 Glib::PropertyProxy_ReadOnly<bool> property_weight_set() const; 00349 00356 Glib::PropertyProxy<Pango::Weight> property_stretch() ; 00357 00364 Glib::PropertyProxy_ReadOnly<Pango::Weight> property_stretch() const; 00365 00372 Glib::PropertyProxy<bool> property_stretch_set() ; 00373 00380 Glib::PropertyProxy_ReadOnly<bool> property_stretch_set() const; 00381 00388 Glib::PropertyProxy<int> property_size() ; 00389 00396 Glib::PropertyProxy_ReadOnly<int> property_size() const; 00397 00404 Glib::PropertyProxy<bool> property_size_set() ; 00405 00412 Glib::PropertyProxy_ReadOnly<bool> property_size_set() const; 00413 00420 Glib::PropertyProxy<double> property_size_points() ; 00421 00428 Glib::PropertyProxy_ReadOnly<double> property_size_points() const; 00429 00436 Glib::PropertyProxy<bool> property_strikethrough() ; 00437 00444 Glib::PropertyProxy_ReadOnly<bool> property_strikethrough() const; 00445 00452 Glib::PropertyProxy<bool> property_strikethrough_set() ; 00453 00460 Glib::PropertyProxy_ReadOnly<bool> property_strikethrough_set() const; 00461 00468 Glib::PropertyProxy<Pango::Underline> property_underline() ; 00469 00476 Glib::PropertyProxy_ReadOnly<Pango::Underline> property_underline() const; 00477 00484 Glib::PropertyProxy<bool> property_underline_set() ; 00485 00492 Glib::PropertyProxy_ReadOnly<bool> property_underline_set() const; 00493 00500 Glib::PropertyProxy<int> property_rise() ; 00501 00508 Glib::PropertyProxy_ReadOnly<int> property_rise() const; 00509 00516 Glib::PropertyProxy<bool> property_rise_set() ; 00517 00524 Glib::PropertyProxy_ReadOnly<bool> property_rise_set() const; 00525 00532 Glib::PropertyProxy<double> property_scale() ; 00533 00540 Glib::PropertyProxy_ReadOnly<double> property_scale() const; 00541 00548 Glib::PropertyProxy<bool> property_scale_set() ; 00549 00556 Glib::PropertyProxy_ReadOnly<bool> property_scale_set() const; 00557 00564 Glib::PropertyProxy<Gtk::AnchorType> property_anchor() ; 00565 00572 Glib::PropertyProxy_ReadOnly<Gtk::AnchorType> property_anchor() const; 00573 00580 Glib::PropertyProxy<Gtk::Justification> property_justification() ; 00581 00588 Glib::PropertyProxy_ReadOnly<Gtk::Justification> property_justification() const; 00589 00596 Glib::PropertyProxy<double> property_clip_width() ; 00597 00604 Glib::PropertyProxy_ReadOnly<double> property_clip_width() const; 00605 00612 Glib::PropertyProxy<double> property_clip_height() ; 00613 00620 Glib::PropertyProxy_ReadOnly<double> property_clip_height() const; 00621 00628 Glib::PropertyProxy<bool> property_clip() ; 00629 00636 Glib::PropertyProxy_ReadOnly<bool> property_clip() const; 00637 00644 Glib::PropertyProxy<double> property_x_offset() ; 00645 00652 Glib::PropertyProxy_ReadOnly<double> property_x_offset() const; 00653 00660 Glib::PropertyProxy<double> property_y_offset() ; 00661 00668 Glib::PropertyProxy_ReadOnly<double> property_y_offset() const; 00669 00676 Glib::PropertyProxy<Glib::ustring> property_fill_color() ; 00677 00684 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_fill_color() const; 00685 00692 Glib::PropertyProxy<Gdk::Color> property_fill_color_gdk() ; 00693 00700 Glib::PropertyProxy_ReadOnly<Gdk::Color> property_fill_color_gdk() const; 00701 00708 Glib::PropertyProxy<guint> property_fill_color_rgba() ; 00709 00716 Glib::PropertyProxy_ReadOnly<guint> property_fill_color_rgba() const; 00717 00724 Glib::PropertyProxy< Glib::RefPtr<Gdk::Bitmap> > property_fill_stipple() ; 00725 00732 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Bitmap> > property_fill_stipple() const; 00733 00740 Glib::PropertyProxy<double> property_text_width() ; 00741 00748 Glib::PropertyProxy_ReadOnly<double> property_text_width() const; 00749 00756 Glib::PropertyProxy<double> property_text_height() ; 00757 00764 Glib::PropertyProxy_ReadOnly<double> property_text_height() const; 00765 00766 00767 }; 00768 00769 } /* namespace Canvas */ 00770 } /* namespace Gnome */ 00771 00772 00773 namespace Glib 00774 { 00780 Gnome::Canvas::Text* wrap(GnomeCanvasText* object, bool take_copy = false); 00781 } //namespace Glib 00782 00783 00784 #endif /* _LIBGNOMECANVASMM_TEXT_H */ 00785