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
00095 explicit SourceMark(const Glib::ustring& category, const Glib::ustring& name = Glib::ustring());
00096
00097
00098 public:
00099
00100 static Glib::RefPtr<SourceMark> create(const Glib::ustring& category, const Glib::ustring& name = Glib::ustring());
00101
00102
00108 Glib::ustring get_category() const;
00109
00116 Glib::RefPtr<SourceMark> next(const Glib::ustring& category);
00117
00124 Glib::RefPtr<const SourceMark> next(const Glib::ustring& category) const;
00125
00126
00127 Glib::RefPtr<SourceMark> next();
00128 Glib::RefPtr<const SourceMark> next() const;
00129
00130
00137 Glib::RefPtr<SourceMark> prev(const Glib::ustring& category);
00138
00145 Glib::RefPtr<const SourceMark> prev(const Glib::ustring& category) const;
00146
00147
00148 Glib::RefPtr<SourceMark> prev();
00149 Glib::RefPtr<const SourceMark> prev() const;
00150
00151 #ifdef GLIBMM_PROPERTIES_ENABLED
00152
00158 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_category() const;
00159 #endif //#GLIBMM_PROPERTIES_ENABLED
00160
00161
00162 public:
00163
00164 public:
00165
00166 #ifdef GLIBMM_VFUNCS_ENABLED
00167 #endif //GLIBMM_VFUNCS_ENABLED
00168
00169 protected:
00170
00171 #ifdef GLIBMM_VFUNCS_ENABLED
00172 #endif //GLIBMM_VFUNCS_ENABLED
00173
00174
00175 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00176 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00177
00178
00179 };
00180
00181 }
00182
00183
00184 namespace Glib
00185 {
00194 Glib::RefPtr<gtksourceview::SourceMark> wrap(GtkSourceMark* object, bool take_copy = false);
00195 }
00196
00197
00198 #endif
00199