sourcemark.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _GTKSOURCEVIEWMM_SOURCEMARK_H
00004 #define _GTKSOURCEVIEWMM_SOURCEMARK_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 /* sourcemark.hg
00010  * 
00011  * Copyright (C)2008 Jonathon Jongsma
00012  *
00013  * This library is free software; you can redistribute it and/or
00014  * modify it under the terms of the GNU Library General Public
00015  * License as published by the Free Software Foundation; either
00016  * version 2 of the License, or (at your option) any later version.
00017  *
00018  * This library is distributed in the hope that it will be useful,
00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00021  * Library General Public License for more details.
00022  *
00023  * You should have received a copy of the GNU Library General Public
00024  * License along with this library; if not, write to the Free
00025  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
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 /* DOXYGEN_SHOULD_SKIP_THIS */
00038 
00039 
00040 namespace gtksourceview
00041 { class SourceMark_Class; } // namespace gtksourceview
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   // noncopyable
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 /* DOXYGEN_SHOULD_SKIP_THIS */
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   // overloaded for category == NULL
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   // overloaded for category == NULL
00146   Glib::RefPtr<SourceMark> prev();
00147   Glib::RefPtr<const SourceMark> prev() const;
00148 
00149 
00150 public:
00151 
00152 public:
00153   //C++ methods used to invoke GTK+ virtual functions:
00154 #ifdef GLIBMM_VFUNCS_ENABLED
00155 #endif //GLIBMM_VFUNCS_ENABLED
00156 
00157 protected:
00158   //GTK+ Virtual Functions (override these to change behaviour):
00159 #ifdef GLIBMM_VFUNCS_ENABLED
00160 #endif //GLIBMM_VFUNCS_ENABLED
00161 
00162   //Default Signal Handlers::
00163 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00164 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00165 
00166 
00167 };//end class SourceMark
00168 
00169 }//end namespace gtksourceview
00170 
00171 
00172 namespace Glib
00173 {
00182   Glib::RefPtr<gtksourceview::SourceMark> wrap(GtkSourceMark* object, bool take_copy = false);
00183 }
00184 
00185 
00186 #endif /* _GTKSOURCEVIEWMM_SOURCEMARK_H */
00187 

Generated on Wed Feb 6 02:24:39 2008 for libgtksourceviewmm by  doxygen 1.5.1