Install ardour as a binary, a script and a set of shared
[ardour.git] / libs / gtkmm2 / gtk / gtkmm / textattributes.h
1 // -*- c++ -*-
2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _GTKMM_TEXTATTRIBUTES_H
4 #define _GTKMM_TEXTATTRIBUTES_H
5
6 #include <glibmm.h>
7
8 /* $Id$ */
9
10 /* textattributes.h
11  *
12  * Copyright(C) 1998-2002 The gtkmm Development Team
13  *
14  * This library is free software, ) you can redistribute it and/or
15  * modify it under the terms of the GNU Library General Public
16  * License as published by the Free Software Foundation, ) either
17  * version 2 of the License, or(at your option) any later version.
18  *
19  * This library is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY, ) without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
22  * Library General Public License for more details.
23  *
24  * You should have received a copy of the GNU Library General Public
25  * License along with this library, ) if not, write to the Free
26  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27  */
28
29
30 #ifndef DOXYGEN_SHOULD_SKIP_THIS
31 extern "C" { typedef struct _GtkTextAttributes GtkTextAttributes; }
32 #endif
33
34 namespace Gtk
35 {
36
37 /**
38  * @ingroup TextView
39  */
40 class TextAttributes
41 {
42   public:
43 #ifndef DOXYGEN_SHOULD_SKIP_THIS
44   typedef TextAttributes CppObjectType;
45   typedef GtkTextAttributes BaseObjectType;
46
47   static GType get_type() G_GNUC_CONST;
48 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
49
50   TextAttributes();
51
52   explicit TextAttributes(GtkTextAttributes* gobject, bool make_a_copy = true);
53
54   TextAttributes(const TextAttributes& other);
55   TextAttributes& operator=(const TextAttributes& other);
56
57   ~TextAttributes();
58
59   void swap(TextAttributes& other);
60
61   ///Provides access to the underlying C instance.
62   GtkTextAttributes*       gobj()       { return gobject_; }
63
64   ///Provides access to the underlying C instance.
65   const GtkTextAttributes* gobj() const { return gobject_; }
66
67   ///Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.
68   GtkTextAttributes* gobj_copy() const;
69
70 protected:
71   GtkTextAttributes* gobject_;
72
73 private:
74
75 public:
76
77
78 };
79
80 } //namespace Gtk
81
82
83 namespace Gtk
84 {
85
86 /** @relates Gtk::TextAttributes
87  * @param lhs The left-hand side
88  * @param rhs The right-hand side
89  */
90 inline void swap(TextAttributes& lhs, TextAttributes& rhs)
91   { lhs.swap(rhs); }
92
93 } // namespace Gtk
94
95 namespace Glib
96 {
97
98 /** @relates Gtk::TextAttributes
99  * @param object The C instance
100  * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
101  * @result A C++ instance that wraps this C instance.
102  */
103 Gtk::TextAttributes wrap(GtkTextAttributes* object, bool take_copy = false);
104
105 #ifndef DOXYGEN_SHOULD_SKIP_THIS
106 template <>
107 class Value<Gtk::TextAttributes> : public Glib::Value_Boxed<Gtk::TextAttributes>
108 {};
109 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
110
111 } // namespace Glib
112
113 #endif /* _GTKMM_TEXTATTRIBUTES_H */
114