00001 // -*- c++ -*- 00002 // Generated by gtkmmproc -- DO NOT MODIFY! 00003 #ifndef _GTKSOURCEVIEWMM_SOURCETAGSTYLE_H 00004 #define _GTKSOURCEVIEWMM_SOURCETAGSTYLE_H 00005 00006 00007 #include <glibmm.h> 00008 00009 /* sourcetagstyle.hg 00010 * 00011 * Copyright (C) 2004-2005 Jae Jang 00012 * Copyright (C) 2005-2006 Rob Page 00013 * Copyright (C)2006 Dodji Seketeli 00014 * 00015 * This library is free software; you can redistribute it and/or 00016 * modify it under the terms of the GNU Library General Public 00017 * License as published by the Free Software Foundation; either 00018 * version 2 of the License, or (at your option) any later version. 00019 * 00020 * This library is distributed in the hope that it will be useful, 00021 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00022 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00023 * Library General Public License for more details. 00024 * 00025 * You should have received a copy of the GNU Library General Public 00026 * License along with this library; if not, write to the Free 00027 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00028 */ 00031 00032 #include <glibmm.h> 00033 #include <gdkmm/color.h> 00034 00035 00036 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00037 extern "C" { typedef struct _GtkSourceTagStyle GtkSourceTagStyle; } 00038 #endif 00039 00040 namespace gtksourceview { 00041 00043 class SourceTagStyle 00044 { 00045 public: 00046 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00047 typedef SourceTagStyle CppObjectType; 00048 typedef GtkSourceTagStyle BaseObjectType; 00049 00050 static GType get_type() G_GNUC_CONST; 00051 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00052 00053 00054 explicit SourceTagStyle(GtkSourceTagStyle* gobject, bool make_a_copy = true); 00055 00056 SourceTagStyle(const SourceTagStyle& other); 00057 SourceTagStyle& operator=(const SourceTagStyle& other); 00058 00059 ~SourceTagStyle(); 00060 00061 void swap(SourceTagStyle& other); 00062 00064 GtkSourceTagStyle* gobj() { return gobject_; } 00065 00067 const GtkSourceTagStyle* gobj() const { return gobject_; } 00068 00070 GtkSourceTagStyle* gobj_copy() const; 00071 00072 protected: 00073 GtkSourceTagStyle* gobject_; 00074 00075 private: 00076 00077 00078 public: 00079 00081 00082 00084 SourceTagStyle () ; 00085 00088 bool get_is_default() const; 00089 void set_is_default(const bool& value); 00091 00094 guint get_mask() const; 00095 void set_mask(const guint& value); 00097 00100 Gdk::Color get_foreground() const; 00101 void set_foreground(const Gdk::Color& value); 00103 00106 Gdk::Color get_background() const; 00107 void set_background(const Gdk::Color& value); 00109 00112 bool get_italic() const; 00113 void set_italic(const bool& value); 00115 00118 bool get_bold() const; 00119 void set_bold(const bool& value); 00121 00124 bool get_underline() const; 00125 void set_underline(const bool& value); 00127 00130 bool get_strikethrough() const; 00131 void set_strikethrough(const bool& value); 00133 00134 00135 };//end class SourceTagStyle 00136 00137 }//end namespace gtksourceview 00138 00139 00140 namespace gtksourceview 00141 { 00142 00147 inline void swap(SourceTagStyle& lhs, SourceTagStyle& rhs) 00148 { lhs.swap(rhs); } 00149 00150 } // namespace gtksourceview 00151 00152 namespace Glib 00153 { 00154 00160 gtksourceview::SourceTagStyle wrap(GtkSourceTagStyle* object, bool take_copy = false); 00161 00162 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00163 template <> 00164 class Value<gtksourceview::SourceTagStyle> : public Glib::Value_Boxed<gtksourceview::SourceTagStyle> 00165 {}; 00166 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00167 00168 } // namespace Glib 00169 00170 00171 #endif /* _GTKSOURCEVIEWMM_SOURCETAGSTYLE_H */ 00172