00001
00002
00003 #ifndef _GTKSOURCEVIEWMM_SOURCEMARK_H
00004 #define _GTKSOURCEVIEWMM_SOURCEMARK_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
00030
00031 #include <gtkmm/textmark.h>
00032
00033
00034 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00035 typedef struct _GtkSourceMark GtkSourceMark;
00036 typedef struct _GtkSourceMarkClass GtkSourceMarkClass;
00037 #endif
00038
00039
00040 namespace gtksourceview
00041 { class SourceMark_Class; }
00042 namespace gtksourceview
00043 {
00044
00045
00046 class SourceMark : public Gtk::TextMark
00047 {
00048
00049 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00050
00051 public:
00052 typedef SourceMark CppObjectType;
00053 typedef SourceMark_Class CppClassType;
00054 typedef GtkSourceMark BaseObjectType;
00055 typedef GtkSourceMarkClass BaseClassType;
00056
00057 private: friend class SourceMark_Class;
00058 static CppClassType sourcemark_class_;
00059
00060 private:
00061
00062 SourceMark(const SourceMark&);
00063 SourceMark& operator=(const SourceMark&);
00064
00065 protected:
00066 explicit SourceMark(const Glib::ConstructParams& construct_params);
00067 explicit SourceMark(GtkSourceMark* castitem);
00068
00069 #endif
00070
00071 public:
00072 virtual ~SourceMark();
00073
00074 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00075 static GType get_type() G_GNUC_CONST;
00076 static GType get_base_type() G_GNUC_CONST;
00077 #endif
00078
00080 GtkSourceMark* gobj() { return reinterpret_cast<GtkSourceMark*>(gobject_); }
00081
00083 const GtkSourceMark* gobj() const { return reinterpret_cast<GtkSourceMark*>(gobject_); }
00084
00086 GtkSourceMark* gobj_copy();
00087
00088 private:
00089
00090
00091 protected:
00092 SourceMark();
00093
00094 explicit SourceMark(const Glib::ustring& category);
00095
00096 public:
00097
00098 static Glib::RefPtr<SourceMark> create(const Glib::ustring& category);
00099
00100
00106 Glib::ustring get_category() const;
00107
00114 Glib::RefPtr<SourceMark> next(const Glib::ustring& category);
00115
00122 Glib::RefPtr<const SourceMark> next(const Glib::ustring& category) const;
00123
00124
00125 Glib::RefPtr<SourceMark> next();
00126 Glib::RefPtr<const SourceMark> next() const;
00127
00128
00135 Glib::RefPtr<SourceMark> prev(const Glib::ustring& category);
00136
00143 Glib::RefPtr<const SourceMark> prev(const Glib::ustring& category) const;
00144
00145
00146 Glib::RefPtr<SourceMark> prev();
00147 Glib::RefPtr<const SourceMark> prev() const;
00148
00149
00150 public:
00151
00152 public:
00153
00154 #ifdef GLIBMM_VFUNCS_ENABLED
00155 #endif //GLIBMM_VFUNCS_ENABLED
00156
00157 protected:
00158
00159 #ifdef GLIBMM_VFUNCS_ENABLED
00160 #endif //GLIBMM_VFUNCS_ENABLED
00161
00162
00163 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00164 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00165
00166
00167 };
00168
00169 }
00170
00171
00172 namespace Glib
00173 {
00182 Glib::RefPtr<gtksourceview::SourceMark> wrap(GtkSourceMark* object, bool take_copy = false);
00183 }
00184
00185
00186 #endif
00187