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   //We reversed the parameter order, because name can be NULL:
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   // overloaded for category == NULL
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   // overloaded for category == NULL
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   //C++ methods used to invoke GTK+ virtual functions:
00166 #ifdef GLIBMM_VFUNCS_ENABLED
00167 #endif //GLIBMM_VFUNCS_ENABLED
00168 
00169 protected:
00170   //GTK+ Virtual Functions (override these to change behaviour):
00171 #ifdef GLIBMM_VFUNCS_ENABLED
00172 #endif //GLIBMM_VFUNCS_ENABLED
00173 
00174   //Default Signal Handlers::
00175 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00176 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00177 
00178 
00179 };//end class SourceMark
00180 
00181 }//end namespace gtksourceview
00182 
00183 
00184 namespace Glib
00185 {
00194   Glib::RefPtr<gtksourceview::SourceMark> wrap(GtkSourceMark* object, bool take_copy = false);
00195 }
00196 
00197 
00198 #endif /* _GTKSOURCEVIEWMM_SOURCEMARK_H */
00199 

Generated on Fri Jun 20 05:53:08 2008 for libgtksourceviewmm by  doxygen 1.5.4