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
00105 void get_natural_extents(Pango::Rectangle& ink_rect, Pango::Rectangle& logical_rect) const;
00106
00107
00108
00109
00110
00111
00112
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
00238 #ifdef GLIBMM_VFUNCS_ENABLED
00239 #endif //GLIBMM_VFUNCS_ENABLED
00240
00241 protected:
00242
00243 #ifdef GLIBMM_VFUNCS_ENABLED
00244 #endif //GLIBMM_VFUNCS_ENABLED
00245
00246
00247 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00248 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00249
00250
00251 };
00252
00253 }
00254
00255
00256 namespace Glib
00257 {
00266 Glib::RefPtr<Goocanvas::Text> wrap(GooCanvasText* object, bool take_copy = false);
00267 }
00268
00269
00270 #endif
00271