2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _GTKMM_TEXTATTRIBUTES_H
4 #define _GTKMM_TEXTATTRIBUTES_H
12 * Copyright(C) 1998-2002 The gtkmm Development Team
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.
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.
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.
30 #ifndef DOXYGEN_SHOULD_SKIP_THIS
31 extern "C" { typedef struct _GtkTextAttributes GtkTextAttributes; }
43 #ifndef DOXYGEN_SHOULD_SKIP_THIS
44 typedef TextAttributes CppObjectType;
45 typedef GtkTextAttributes BaseObjectType;
47 static GType get_type() G_GNUC_CONST;
48 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
52 explicit TextAttributes(GtkTextAttributes* gobject, bool make_a_copy = true);
54 TextAttributes(const TextAttributes& other);
55 TextAttributes& operator=(const TextAttributes& other);
59 void swap(TextAttributes& other);
61 ///Provides access to the underlying C instance.
62 GtkTextAttributes* gobj() { return gobject_; }
64 ///Provides access to the underlying C instance.
65 const GtkTextAttributes* gobj() const { return gobject_; }
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;
71 GtkTextAttributes* gobject_;
86 /** @relates Gtk::TextAttributes
87 * @param lhs The left-hand side
88 * @param rhs The right-hand side
90 inline void swap(TextAttributes& lhs, TextAttributes& rhs)
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.
103 Gtk::TextAttributes wrap(GtkTextAttributes* object, bool take_copy = false);
105 #ifndef DOXYGEN_SHOULD_SKIP_THIS
107 class Value<Gtk::TextAttributes> : public Glib::Value_Boxed<Gtk::TextAttributes>
109 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
113 #endif /* _GTKMM_TEXTATTRIBUTES_H */