text.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _GOOCANVASMM_TEXT_H
00004 #define _GOOCANVASMM_TEXT_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 /* Copyright (C) 1998-2006 The gtkmm Development Team
00010  *
00011  * This library is free software; you can redistribute it and/or
00012  * modify it under the terms of the GNU Lesser General Public
00013  * License as published by the Free Software Foundation; either
00014  * version 2.1 of the License, or (at your option) any later version.
00015  *
00016  * This library is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019  * Lesser General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU Lesser General Public
00022  * License along with this library; if not, write to the Free
00023  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00024  */
00025 
00026 
00027 #include <goocanvasmm/itemsimple.h>
00028 #include <gtkmm/enums.h> /* For AnchorType. */
00029 
00030 
00031 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00032 typedef struct _GooCanvasText GooCanvasText;
00033 typedef struct _GooCanvasTextClass GooCanvasTextClass;
00034 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00035 
00036 
00037 namespace Goocanvas
00038 { class Text_Class; } // namespace Goocanvas
00039 namespace Goocanvas
00040 {
00041 
00042 
00043 class Text : public Goocanvas::ItemSimple
00044 {
00045   
00046 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00047 
00048 public:
00049   typedef Text CppObjectType;
00050   typedef Text_Class CppClassType;
00051   typedef GooCanvasText BaseObjectType;
00052   typedef GooCanvasTextClass BaseClassType;
00053 
00054 private:  friend class Text_Class;
00055   static CppClassType text_class_;
00056 
00057 private:
00058   // noncopyable
00059   Text(const Text&);
00060   Text& operator=(const Text&);
00061 
00062 protected:
00063   explicit Text(const Glib::ConstructParams& construct_params);
00064   explicit Text(GooCanvasText* castitem);
00065 
00066 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00067 
00068 public:
00069   virtual ~Text();
00070 
00071 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00072   static GType get_type()      G_GNUC_CONST;
00073   static GType get_base_type() G_GNUC_CONST;
00074 #endif
00075 
00077   GooCanvasText*       gobj()       { return reinterpret_cast<GooCanvasText*>(gobject_); }
00078 
00080   const GooCanvasText* gobj() const { return reinterpret_cast<GooCanvasText*>(gobject_); }
00081 
00083   GooCanvasText* gobj_copy();
00084 
00085 private:
00086 
00087 protected:
00088 
00089   explicit Text(const Glib::ustring& text = Glib::ustring(), double x = 0.0, double y = 0.0, double width = -1, Gtk::AnchorType anchor = Gtk::ANCHOR_NORTH_WEST);
00090   
00091 
00092 public:
00093 
00094   
00095   static Glib::RefPtr<Text> create(const Glib::ustring& text =  Glib::ustring(), double x =  0.0, double y =  0.0, double width =  0.0, Gtk::AnchorType anchor =  Gtk::ANCHOR_NORTH_WEST);
00096 
00097 
00105   void get_natural_extents(Pango::Rectangle& ink_rect, Pango::Rectangle& logical_rect) const;
00106 
00107   //We put these in item.hg instead.
00108   //See the comment there.
00109   //_WRAP_PROPERTY("x", double)
00110   //_WRAP_PROPERTY("y", double)
00111   //_WRAP_PROPERTY("width", double)
00112   //_WRAP_PROPERTY("height", double)
00113   #ifdef GLIBMM_PROPERTIES_ENABLED
00114 
00120   Glib::PropertyProxy<Pango::Alignment> property_alignment() ;
00121 #endif //#GLIBMM_PROPERTIES_ENABLED
00122 
00123 #ifdef GLIBMM_PROPERTIES_ENABLED
00124 
00130   Glib::PropertyProxy_ReadOnly<Pango::Alignment> property_alignment() const;
00131 #endif //#GLIBMM_PROPERTIES_ENABLED
00132 
00133   #ifdef GLIBMM_PROPERTIES_ENABLED
00134 
00140   Glib::PropertyProxy<Gtk::AnchorType> property_anchor() ;
00141 #endif //#GLIBMM_PROPERTIES_ENABLED
00142 
00143 #ifdef GLIBMM_PROPERTIES_ENABLED
00144 
00150   Glib::PropertyProxy_ReadOnly<Gtk::AnchorType> property_anchor() const;
00151 #endif //#GLIBMM_PROPERTIES_ENABLED
00152 
00153   #ifdef GLIBMM_PROPERTIES_ENABLED
00154 
00160   Glib::PropertyProxy<Pango::EllipsizeMode> property_ellipsize() ;
00161 #endif //#GLIBMM_PROPERTIES_ENABLED
00162 
00163 #ifdef GLIBMM_PROPERTIES_ENABLED
00164 
00170   Glib::PropertyProxy_ReadOnly<Pango::EllipsizeMode> property_ellipsize() const;
00171 #endif //#GLIBMM_PROPERTIES_ENABLED
00172 
00173   #ifdef GLIBMM_PROPERTIES_ENABLED
00174 
00180   Glib::PropertyProxy<Glib::ustring> property_text() ;
00181 #endif //#GLIBMM_PROPERTIES_ENABLED
00182 
00183 #ifdef GLIBMM_PROPERTIES_ENABLED
00184 
00190   Glib::PropertyProxy_ReadOnly<Glib::ustring> property_text() const;
00191 #endif //#GLIBMM_PROPERTIES_ENABLED
00192 
00193   #ifdef GLIBMM_PROPERTIES_ENABLED
00194 
00200   Glib::PropertyProxy<bool> property_use_markup() ;
00201 #endif //#GLIBMM_PROPERTIES_ENABLED
00202 
00203 #ifdef GLIBMM_PROPERTIES_ENABLED
00204 
00210   Glib::PropertyProxy_ReadOnly<bool> property_use_markup() const;
00211 #endif //#GLIBMM_PROPERTIES_ENABLED
00212 
00213   #ifdef GLIBMM_PROPERTIES_ENABLED
00214 
00220   Glib::PropertyProxy<Pango::WrapMode> property_wrap() ;
00221 #endif //#GLIBMM_PROPERTIES_ENABLED
00222 
00223 #ifdef GLIBMM_PROPERTIES_ENABLED
00224 
00230   Glib::PropertyProxy_ReadOnly<Pango::WrapMode> property_wrap() const;
00231 #endif //#GLIBMM_PROPERTIES_ENABLED
00232 
00233 
00234 public:
00235 
00236 public:
00237   //C++ methods used to invoke GTK+ virtual functions:
00238 #ifdef GLIBMM_VFUNCS_ENABLED
00239 #endif //GLIBMM_VFUNCS_ENABLED
00240 
00241 protected:
00242   //GTK+ Virtual Functions (override these to change behaviour):
00243 #ifdef GLIBMM_VFUNCS_ENABLED
00244 #endif //GLIBMM_VFUNCS_ENABLED
00245 
00246   //Default Signal Handlers::
00247 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00248 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00249 
00250 
00251 };
00252 
00253 } //namespace Goocanvas
00254 
00255 
00256 namespace Glib
00257 {
00266   Glib::RefPtr<Goocanvas::Text> wrap(GooCanvasText* object, bool take_copy = false);
00267 }
00268 
00269 
00270 #endif /* _GOOCANVASMM_TEXT_H */
00271 

Generated on Sun Jul 26 01:18:37 2009 for goocanvasmm by  doxygen 1.5.9