1
// Generated by gtkmmproc -- DO NOT MODIFY!
4
#include <gtkmm/textattributes.h>
5
#include <gtkmm/private/textattributes_p.h>
8
/* $Id: textattributes.ccg,v 1.1 2003/01/21 13:40:41 murrayc Exp $ */
12
* Copyright 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 Lesser General Public
16
* License as published by the Free Software Foundation; either
17
* version 2.1 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
* Lesser General Public License for more details.
24
* You should have received a copy of the GNU Lesser 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.
34
} // anonymous namespace
40
Gtk::TextAttributes wrap(GtkTextAttributes* object, bool take_copy)
42
return Gtk::TextAttributes(object, take_copy);
53
GType TextAttributes::get_type()
55
return gtk_text_attributes_get_type();
58
TextAttributes::TextAttributes()
60
gobject_ (gtk_text_attributes_new())
63
TextAttributes::TextAttributes(const TextAttributes& other)
65
gobject_ ((other.gobject_) ? gtk_text_attributes_copy(other.gobject_) : 0)
68
TextAttributes::TextAttributes(GtkTextAttributes* gobject, bool make_a_copy)
70
// For BoxedType wrappers, make_a_copy is true by default. The static
71
// BoxedType wrappers must always take a copy, thus make_a_copy = true
72
// ensures identical behaviour if the default argument is used.
73
gobject_ ((make_a_copy && gobject) ? gtk_text_attributes_copy(gobject) : gobject)
76
TextAttributes& TextAttributes::operator=(const TextAttributes& other)
78
TextAttributes temp (other);
83
TextAttributes::~TextAttributes()
86
gtk_text_attributes_unref(gobject_);
89
void TextAttributes::swap(TextAttributes& other)
91
GtkTextAttributes *const temp = gobject_;
92
gobject_ = other.gobject_;
93
other.gobject_ = temp;
96
GtkTextAttributes* TextAttributes::gobj_copy() const
98
return gtk_text_attributes_copy(gobject_);