~inkscape.dev/inkscape-devlibs/devlibs-gtk3

« back to all changes in this revision

Viewing changes to include/gtkmm-2.4/gtkmm/textattributes.h

  • Committer: JazzyNico
  • Date: 2013-01-21 10:11:05 UTC
  • Revision ID: nicoduf@yahoo.fr-20130121101105-i8d8slkq9ng4olx8
Adding gtk2 libraries.

Show diffs side-by-side

added added

removed removed

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