text.h
Go to the documentation of this file.00001
00002
00003 #ifndef _GOOCANVASMM_TEXT_H
00004 #define _GOOCANVASMM_TEXT_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include <goocanvasmm/itemsimple.h>
00028 #include <gtkmm/enums.h>
00029
00030
00031 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00032 typedef struct _GooCanvasText GooCanvasText;
00033 typedef struct _GooCanvasTextClass GooCanvasTextClass;
00034 #endif
00035
00036
00037 namespace Goocanvas
00038 { class Text_Class; }
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
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
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
00098
00099 void get_natural_extents(Pango::Rectangle& ink_rect, Pango::Rectangle& logical_rect) const;
00100
00101 #ifdef GLIBMM_PROPERTIES_ENABLED
00102
00108 Glib::PropertyProxy<Pango::Alignment> property_alignment() ;
00109 #endif //#GLIBMM_PROPERTIES_ENABLED
00110
00111 #ifdef GLIBMM_PROPERTIES_ENABLED
00112
00118 Glib::PropertyProxy_ReadOnly<Pango::Alignment> property_alignment() const;
00119 #endif //#GLIBMM_PROPERTIES_ENABLED
00120
00121 #ifdef GLIBMM_PROPERTIES_ENABLED
00122
00128 Glib::PropertyProxy<Gtk::AnchorType> property_anchor() ;
00129 #endif //#GLIBMM_PROPERTIES_ENABLED
00130
00131 #ifdef GLIBMM_PROPERTIES_ENABLED
00132
00138 Glib::PropertyProxy_ReadOnly<Gtk::AnchorType> property_anchor() const;
00139 #endif //#GLIBMM_PROPERTIES_ENABLED
00140
00141 #ifdef GLIBMM_PROPERTIES_ENABLED
00142
00148 Glib::PropertyProxy<Pango::EllipsizeMode> property_ellipsize() ;
00149 #endif //#GLIBMM_PROPERTIES_ENABLED
00150
00151 #ifdef GLIBMM_PROPERTIES_ENABLED
00152
00158 Glib::PropertyProxy_ReadOnly<Pango::EllipsizeMode> property_ellipsize() const;
00159 #endif //#GLIBMM_PROPERTIES_ENABLED
00160
00161 #ifdef GLIBMM_PROPERTIES_ENABLED
00162
00168 Glib::PropertyProxy<Glib::ustring> property_text() ;
00169 #endif //#GLIBMM_PROPERTIES_ENABLED
00170
00171 #ifdef GLIBMM_PROPERTIES_ENABLED
00172
00178 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_text() const;
00179 #endif //#GLIBMM_PROPERTIES_ENABLED
00180
00181 #ifdef GLIBMM_PROPERTIES_ENABLED
00182
00188 Glib::PropertyProxy<bool> property_use_markup() ;
00189 #endif //#GLIBMM_PROPERTIES_ENABLED
00190
00191 #ifdef GLIBMM_PROPERTIES_ENABLED
00192
00198 Glib::PropertyProxy_ReadOnly<bool> property_use_markup() const;
00199 #endif //#GLIBMM_PROPERTIES_ENABLED
00200
00201 #ifdef GLIBMM_PROPERTIES_ENABLED
00202
00208 Glib::PropertyProxy<double> property_width() ;
00209 #endif //#GLIBMM_PROPERTIES_ENABLED
00210
00211 #ifdef GLIBMM_PROPERTIES_ENABLED
00212
00218 Glib::PropertyProxy_ReadOnly<double> property_width() const;
00219 #endif //#GLIBMM_PROPERTIES_ENABLED
00220
00221 #ifdef GLIBMM_PROPERTIES_ENABLED
00222
00228 Glib::PropertyProxy<double> property_x() ;
00229 #endif //#GLIBMM_PROPERTIES_ENABLED
00230
00231 #ifdef GLIBMM_PROPERTIES_ENABLED
00232
00238 Glib::PropertyProxy_ReadOnly<double> property_x() const;
00239 #endif //#GLIBMM_PROPERTIES_ENABLED
00240
00241 #ifdef GLIBMM_PROPERTIES_ENABLED
00242
00248 Glib::PropertyProxy<double> property_y() ;
00249 #endif //#GLIBMM_PROPERTIES_ENABLED
00250
00251 #ifdef GLIBMM_PROPERTIES_ENABLED
00252
00258 Glib::PropertyProxy_ReadOnly<double> property_y() const;
00259 #endif //#GLIBMM_PROPERTIES_ENABLED
00260
00261 #ifdef GLIBMM_PROPERTIES_ENABLED
00262
00268 Glib::PropertyProxy<Pango::WrapMode> property_wrap() ;
00269 #endif //#GLIBMM_PROPERTIES_ENABLED
00270
00271 #ifdef GLIBMM_PROPERTIES_ENABLED
00272
00278 Glib::PropertyProxy_ReadOnly<Pango::WrapMode> property_wrap() const;
00279 #endif //#GLIBMM_PROPERTIES_ENABLED
00280
00281
00282 public:
00283
00284 public:
00285
00286 #ifdef GLIBMM_VFUNCS_ENABLED
00287 #endif //GLIBMM_VFUNCS_ENABLED
00288
00289 protected:
00290
00291 #ifdef GLIBMM_VFUNCS_ENABLED
00292 #endif //GLIBMM_VFUNCS_ENABLED
00293
00294
00295 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00296 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00297
00298
00299 };
00300
00301 }
00302
00303
00304 namespace Glib
00305 {
00314 Glib::RefPtr<Goocanvas::Text> wrap(GooCanvasText* object, bool take_copy = false);
00315 }
00316
00317
00318 #endif
00319