00001
00002
00003
#ifndef _LIBGNOMECANVASMM_RICH_TEXT_H
00004
#define _LIBGNOMECANVASMM_RICH_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
#include <gtkmm/textbuffer.h>
00032
#include <libgnomecanvasmm/item.h>
00033
#include <libgnomecanvas/gnome-canvas-rich-text.h>
00034
00035
00036
#ifndef DOXYGEN_SHOULD_SKIP_THIS
00037
typedef struct _GnomeCanvasRichText GnomeCanvasRichText;
00038
typedef struct _GnomeCanvasRichTextClass GnomeCanvasRichTextClass;
00039
#endif
00040
00041
00042
namespace Gnome
00043 {
00044
00045
namespace Canvas
00046 {
class RichText_Class; }
00047
00048 }
00049
namespace Gnome
00050 {
00051
00052
namespace Canvas
00053 {
00054
00055
00056 class RichText :
public Item
00057 {
00058
public:
00059
#ifndef DOXYGEN_SHOULD_SKIP_THIS
00060
typedef RichText CppObjectType;
00061
typedef RichText_Class CppClassType;
00062
typedef GnomeCanvasRichText BaseObjectType;
00063
typedef GnomeCanvasRichTextClass BaseClassType;
00064
#endif
00065
00066
virtual ~RichText();
00067
00068
#ifndef DOXYGEN_SHOULD_SKIP_THIS
00069
00070
private:
00071
friend class RichText_Class;
00072
static CppClassType richtext_class_;
00073
00074
00075
RichText(
const RichText&);
00076
RichText& operator=(
const RichText&);
00077
00078
protected:
00079
explicit RichText(
const Glib::ConstructParams& construct_params);
00080
explicit RichText(GnomeCanvasRichText* castitem);
00081
00082
#endif
00083
00084
public:
00085
#ifndef DOXYGEN_SHOULD_SKIP_THIS
00086
static GType get_type() G_GNUC_CONST;
00087
static GType get_base_type() G_GNUC_CONST;
00088
#endif
00089
00091 GnomeCanvasRichText*
gobj() {
return reinterpret_cast<GnomeCanvasRichText*>(gobject_); }
00092
00094 const GnomeCanvasRichText*
gobj()
const {
return reinterpret_cast<GnomeCanvasRichText*>(gobject_); }
00095
00096
00097
public:
00098
00099
00100
protected:
00101
00102
00103
00104
virtual void on_tag_changed(
const Glib::RefPtr<Gtk::TextTag>& tag);
00105
00106
00107
private:
00108
00109
00110
public:
00111 typedef Gtk::TextIter iterator;
00112
00113
RichText(
Group& parent,
double x,
double y,
const Glib::ustring& text);
00114
explicit RichText(
Group& parent);
00115
00116
00117
void cut_clipboard();
00118
00119
void copy_clipboard();
00120
00121
void paste_clipboard();
00122
00123
00124
void set_buffer(
const Glib::RefPtr<Gtk::TextBuffer>& buffer);
00125
00126
Glib::RefPtr<Gtk::TextBuffer> get_buffer()
const;
00127
00128
00129
void get_iter_location(
const iterator& iter, Gdk::Rectangle& location)
const;
00130
iterator get_iter_at_location(
int x,
int y) const;
00131
00132
00133 Glib::SignalProxy1<
void,const Glib::RefPtr<Gtk::TextTag>& > signal_tag_changed();
00134
00135
00140 Glib::PropertyProxy<Glib::ustring> property_text() ;
00141
00146 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_text() const;
00147
00152 Glib::PropertyProxy<
double> property_x() ;
00153
00158 Glib::PropertyProxy_ReadOnly<
double> property_x() const;
00159
00164 Glib::PropertyProxy<
double> property_y() ;
00165
00170 Glib::PropertyProxy_ReadOnly<
double> property_y() const;
00171
00176 Glib::PropertyProxy<
double> property_width() ;
00177
00182 Glib::PropertyProxy_ReadOnly<
double> property_width() const;
00183
00188 Glib::PropertyProxy<
double> property_height() ;
00189
00194 Glib::PropertyProxy_ReadOnly<
double> property_height() const;
00195
00200 Glib::PropertyProxy<
bool> property_editable() ;
00201
00206 Glib::PropertyProxy_ReadOnly<
bool> property_editable() const;
00207
00212 Glib::PropertyProxy<
bool> property_visible() ;
00213
00218 Glib::PropertyProxy_ReadOnly<
bool> property_visible() const;
00219
00224 Glib::PropertyProxy<
bool> property_cursor_visible() ;
00225
00230 Glib::PropertyProxy_ReadOnly<
bool> property_cursor_visible() const;
00231
00236 Glib::PropertyProxy<
bool> property_cursor_blink() ;
00237
00242 Glib::PropertyProxy_ReadOnly<
bool> property_cursor_blink() const;
00243
00248 Glib::PropertyProxy<
bool> property_grow_height() ;
00249
00254 Glib::PropertyProxy_ReadOnly<
bool> property_grow_height() const;
00255
00260 Glib::PropertyProxy<Gtk::WrapMode> property_wrap_mode() ;
00261
00266 Glib::PropertyProxy_ReadOnly<Gtk::WrapMode> property_wrap_mode() const;
00267
00272 Glib::PropertyProxy<Gtk::Justification> property_justification() ;
00273
00278 Glib::PropertyProxy_ReadOnly<Gtk::Justification> property_justification() const;
00279
00284 Glib::PropertyProxy<Gtk::DirectionType> property_direction() ;
00285
00290 Glib::PropertyProxy_ReadOnly<Gtk::DirectionType> property_direction() const;
00291
00296 Glib::PropertyProxy<Gtk::AnchorType> property_anchor() ;
00297
00302 Glib::PropertyProxy_ReadOnly<Gtk::AnchorType> property_anchor() const;
00303
00308 Glib::PropertyProxy<
int> property_pixels_above_lines() ;
00309
00314 Glib::PropertyProxy_ReadOnly<
int> property_pixels_above_lines() const;
00315
00320 Glib::PropertyProxy<
int> property_pixels_below_lines() ;
00321
00326 Glib::PropertyProxy_ReadOnly<
int> property_pixels_below_lines() const;
00327
00332 Glib::PropertyProxy<
int> property_pixels_inside_wrap() ;
00333
00338 Glib::PropertyProxy_ReadOnly<
int> property_pixels_inside_wrap() const;
00339
00344 Glib::PropertyProxy<
int> property_left_margin() ;
00345
00350 Glib::PropertyProxy_ReadOnly<
int> property_left_margin() const;
00351
00356 Glib::PropertyProxy<
int> property_right_margin() ;
00357
00362 Glib::PropertyProxy_ReadOnly<
int> property_right_margin() const;
00363
00368 Glib::PropertyProxy<
int> property_indent() ;
00369
00374 Glib::PropertyProxy_ReadOnly<
int> property_indent() const;
00375
00376
00377 };
00378
00379 }
00380 }
00381
00382 namespace Glib
00383 {
00389
Gnome::Canvas::RichText*
wrap(GnomeCanvasRichText* object,
bool take_copy =
false);
00390 }
00391
#endif
00392