00001
00002
00003
#ifndef _LIBGNOMECANVASMM_TEXT_H
00004
#define _LIBGNOMECANVASMM_TEXT_H
00005
00006
#include <glibmm.h>
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
#include <libgnomecanvasmm/item.h>
00033
#include <pangomm/attrlist.h>
00034
#include <gtkmm/enums.h>
00035
#include <libgnomecanvas/gnome-canvas-text.h>
00036
00037
00038
#ifndef DOXYGEN_SHOULD_SKIP_THIS
00039
typedef struct _GnomeCanvasText GnomeCanvasText;
00040
typedef struct _GnomeCanvasTextClass GnomeCanvasTextClass;
00041
#endif
00042
00043
00044
namespace Gnome
00045 {
00046
00047
namespace Canvas
00048 {
class Text_Class; }
00049
00050 }
00051
namespace Gnome
00052 {
00053
00054
namespace Canvas
00055 {
00056
00057
class Group;
00058
00059
00060 class Text :
public Item
00061 {
00062
public:
00063
#ifndef DOXYGEN_SHOULD_SKIP_THIS
00064
typedef Text CppObjectType;
00065
typedef Text_Class CppClassType;
00066
typedef GnomeCanvasText BaseObjectType;
00067
typedef GnomeCanvasTextClass BaseClassType;
00068
#endif
00069
00070
virtual ~Text();
00071
00072
#ifndef DOXYGEN_SHOULD_SKIP_THIS
00073
00074
private:
00075
friend class Text_Class;
00076
static CppClassType text_class_;
00077
00078
00079
Text(
const Text&);
00080
Text& operator=(
const Text&);
00081
00082
protected:
00083
explicit Text(
const Glib::ConstructParams& construct_params);
00084
explicit Text(GnomeCanvasText* castitem);
00085
00086
#endif
00087
00088
public:
00089
#ifndef DOXYGEN_SHOULD_SKIP_THIS
00090
static GType get_type() G_GNUC_CONST;
00091
static GType get_base_type() G_GNUC_CONST;
00092
#endif
00093
00095 GnomeCanvasText*
gobj() {
return reinterpret_cast<GnomeCanvasText*>(gobject_); }
00096
00098 const GnomeCanvasText*
gobj()
const {
return reinterpret_cast<GnomeCanvasText*>(gobject_); }
00099
00100
00101
public:
00102
00103
00104
protected:
00105
00106
00107
00108
00109
00110
private:
00111
00112
public:
00113
Text(
Group& parent,
double x,
double y,
const Glib::ustring& text);
00114
explicit Text(
Group& parent);
00115
00121 Glib::PropertyProxy<Glib::ustring>
property_text();
00122
00128 Glib::PropertyProxy_WriteOnly<Glib::ustring>
property_markup();
00129
00135 Glib::PropertyProxy<double>
property_x();
00136
00142 Glib::PropertyProxy<double>
property_y();
00143
00149 Glib::PropertyProxy<Glib::ustring>
property_font();
00150
00156 Glib::PropertyProxy<Pango::FontDescription>
property_font_desc();
00157
00163 Glib::PropertyProxy<Glib::ustring>
property_family();
00164
00170 Glib::PropertyProxy<bool>
property_family_set();
00171
00177 Glib::PropertyProxy<Pango::AttrList>
property_attributes();
00178
00184 Glib::PropertyProxy<PangoStyle>
property_style();
00185
00191 Glib::PropertyProxy<bool>
property_style_set();
00192
00198 Glib::PropertyProxy<PangoVariant>
property_variant();
00199
00205 Glib::PropertyProxy<bool>
property_variant_set();
00206
00212 Glib::PropertyProxy<int>
property_weight();
00213
00219 Glib::PropertyProxy<bool>
property_weight_set();
00220
00226 Glib::PropertyProxy<PangoWeight>
property_stretch();
00227
00233 Glib::PropertyProxy<bool>
property_stretch_set();
00234
00240 Glib::PropertyProxy<int>
property_size();
00241
00247 Glib::PropertyProxy<bool>
property_size_set();
00248
00254 Glib::PropertyProxy<double>
property_size_points();
00255
00261 Glib::PropertyProxy<bool>
property_strikethrough();
00262
00268 Glib::PropertyProxy<bool>
property_strikethrough_set();
00269
00275 Glib::PropertyProxy<PangoUnderline>
property_underline();
00276
00282 Glib::PropertyProxy<bool>
property_underline_set();
00283
00289 Glib::PropertyProxy<int>
property_rise();
00290
00296 Glib::PropertyProxy<bool>
property_rise_set();
00297
00303 Glib::PropertyProxy<double>
property_scale();
00304
00310 Glib::PropertyProxy<bool>
property_scale_set();
00311
00317 Glib::PropertyProxy<Gtk::AnchorType>
property_anchor();
00318
00324 Glib::PropertyProxy<Gtk::Justification>
property_justification();
00325
00331 Glib::PropertyProxy<double>
property_clip_width();
00332
00338 Glib::PropertyProxy<double>
property_clip_height();
00339
00345 Glib::PropertyProxy<bool>
property_clip();
00346
00352 Glib::PropertyProxy<double>
property_x_offset();
00353
00359 Glib::PropertyProxy<double>
property_y_offset();
00360
00366 Glib::PropertyProxy<Glib::ustring>
property_fill_color();
00367
00373 Glib::PropertyProxy<Gdk::Color>
property_fill_color_gdk();
00374
00380 Glib::PropertyProxy<guint>
property_fill_color_rgba();
00381
00387 Glib::PropertyProxy< Glib::RefPtr<Gdk::Bitmap> >
property_fill_stipple();
00388
00394 Glib::PropertyProxy<double>
property_text_width();
00395
00401 Glib::PropertyProxy<double>
property_text_height();
00402
00403
00404 };
00405
00406 }
00407 }
00408
00409
namespace Glib
00410 {
00412
Gnome::Canvas::Text* wrap(GnomeCanvasText* object,
bool take_copy =
false);
00413 }
00414
#endif
00415