00001
00002
00003 #ifndef _GTKSOURCEVIEWMM_SOURCESTYLESCHEME_H
00004 #define _GTKSOURCEVIEWMM_SOURCESTYLESCHEME_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
00028
00029
00032
00033 #include <glibmm/interface.h>
00034 #include <gtksourceviewmm/sourcestyle.h>
00035 #include <gtksourceview/gtksourcestylescheme.h>
00036
00037
00038 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00039 typedef struct _GtkSourceStyleScheme GtkSourceStyleScheme;
00040 typedef struct _GtkSourceStyleSchemeClass GtkSourceStyleSchemeClass;
00041 #endif
00042
00043
00044 namespace gtksourceview
00045 { class SourceStyleScheme_Class; }
00046 namespace gtksourceview
00047 {
00048
00050
00051 class SourceStyleScheme : public Glib::Interface
00052 {
00053
00054
00055 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00056
00057 public:
00058 typedef SourceStyleScheme CppObjectType;
00059 typedef SourceStyleScheme_Class CppClassType;
00060 typedef GtkSourceStyleScheme BaseObjectType;
00061 typedef GTypeInterface BaseClassType;
00062
00063 private:
00064 friend class SourceStyleScheme_Class;
00065 static CppClassType sourcestylescheme_class_;
00066
00067
00068 SourceStyleScheme(const SourceStyleScheme&);
00069 SourceStyleScheme& operator=(const SourceStyleScheme&);
00070
00071 protected:
00072 SourceStyleScheme();
00073 explicit SourceStyleScheme(GtkSourceStyleScheme* castitem);
00074
00075 #endif
00076
00077 public:
00078 virtual ~SourceStyleScheme();
00079
00080 static void add_interface(GType gtype_implementer);
00081
00082 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00083 static GType get_type() G_GNUC_CONST;
00084 static GType get_base_type() G_GNUC_CONST;
00085 #endif
00086
00088 GtkSourceStyleScheme* gobj() { return reinterpret_cast<GtkSourceStyleScheme*>(gobject_); }
00089
00091 const GtkSourceStyleScheme* gobj() const { return reinterpret_cast<GtkSourceStyleScheme*>(gobject_); }
00092
00093 private:
00094
00095
00096 public:
00097
00098
00099 Glib::ustring get_id() const;
00100
00101 Glib::ustring get_name() const;
00102
00103 Glib::ustring get_description() const;
00104
00105
00106 Glib::StringArrayHandle get_authors() const;
00107
00108
00109 std::string get_filename() const;
00110
00111
00112 Glib::RefPtr<SourceStyle> get_style(const Glib::ustring& style_id);
00113
00114 Glib::RefPtr<const SourceStyle> get_style(const Glib::ustring& style_id) const;
00115
00116
00117 public:
00118
00119 public:
00120
00121 #ifdef GLIBMM_VFUNCS_ENABLED
00122 #endif //GLIBMM_VFUNCS_ENABLED
00123
00124 protected:
00125
00126 #ifdef GLIBMM_VFUNCS_ENABLED
00127 #endif //GLIBMM_VFUNCS_ENABLED
00128
00129
00130 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00131 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00132
00133
00134 };
00135
00136 }
00137
00138
00139 namespace Glib
00140 {
00149 Glib::RefPtr<gtksourceview::SourceStyleScheme> wrap(GtkSourceStyleScheme* object, bool take_copy = false);
00150
00151 }
00152
00153
00154 #endif
00155