Reference Manual
Inti Logo
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

sourcetagstyle.h

Go to the documentation of this file.
00001 /*  Inti-SourceView: Integrated Foundation Classes
00002  *  Copyright (C) 2003 The Inti Development Team.
00003  *
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU Library General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU Library General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  */
00018 
00021 
00022 #ifndef INTI_GTK_SOURCE_TAG_STYLE_H
00023 #define INTI_GTK_SOURCE_TAG_STYLE_H
00024 
00025 #ifndef INTI_G_BOXED_H
00026 #include <inti/glib/boxed.h>
00027 #endif
00028 
00029 #ifndef __GTK_SOURCE_TAG_STYLE_H__
00030 #include <gtksourceview/gtksourcetagstyle.h>
00031 #endif
00032 
00033 namespace Inti {
00034 
00035 namespace Gdk {
00036 class Color;
00037 }
00038 
00039 namespace Gtk {
00040 
00043 
00044 class SourceTagStyle : public G::Boxed
00045 {
00046 public:
00049 
00050         SourceTagStyle();
00052 
00053         SourceTagStyle(const char *foregound);
00055 
00056         SourceTagStyle(const Gdk::Color& foregound);
00058 
00059         explicit SourceTagStyle(GtkSourceTagStyle *style);
00067 
00068         SourceTagStyle(GtkSourceTagStyle *style, bool copy);
00078 
00079         SourceTagStyle(const SourceTagStyle& src);
00082 
00083         ~SourceTagStyle();
00085 
00086         SourceTagStyle& operator=(const SourceTagStyle& src);
00089 
00093 
00094         GtkSourceTagStyle* gtk_source_tag_style() const { return (GtkSourceTagStyle*)boxed_; }
00096 
00097         operator GtkSourceTagStyle* () const;
00099 
00100         bool is_default() const;
00102 
00103         Gdk::Color get_foreground() const;
00105 
00106         Gdk::Color get_background() const;
00108 
00109         bool get_italic() const;
00111 
00112         bool get_bold() const;
00114 
00115         bool get_underline() const;
00117 
00118         bool get_strikethrough() const;
00120 
00124 
00125         void set_foreground(const char *spec);
00128 
00129         void set_foreground(const Gdk::Color& color);
00132 
00133         void unset_foreground();
00135 
00136         void set_background(const char *spec);
00139 
00140         void set_background(const Gdk::Color& color);
00143 
00144         void unset_background();
00146 
00147         void set_italic(bool italic);
00149 
00150         void set_bold(bool bold);
00152 
00153         void set_underline(bool underline);
00155 
00156         void set_strikethrough(bool strikethrough);
00158 
00160 };
00161 
00162 } // namespace Gtk
00163 
00164 } // namespace Inti
00165 
00166 #endif // INTI_GTK_SOURCE_TAG_STYLE_H
Main Page - Footer


Generated on Wed Aug 27 21:17:27 2003 for Inti-SourceView by doxygen 1.3.2 written by Dimitri van Heesch, © 1997-2002