~ubuntu-branches/ubuntu/vivid/ardour/vivid-proposed

« back to all changes in this revision

Viewing changes to libs/gtkmm2/gtk/gtkmm/texttagtable.h

  • Committer: Package Import Robot
  • Author(s): Felipe Sateler, Jaromír Mikeš, Felipe Sateler
  • Date: 2014-05-22 14:39:25 UTC
  • mfrom: (29 sid)
  • mto: This revision was merged to the branch mainline in revision 30.
  • Revision ID: package-import@ubuntu.com-20140522143925-vwqfo9287pmkrroe
Tags: 1:2.8.16+git20131003-3
* Team upload

[ Jaromír Mikeš ]
* Add -dbg package

[ Felipe Sateler ]
* Upload to experimental

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- c++ -*-
 
2
// Generated by gtkmmproc -- DO NOT MODIFY!
 
3
#ifndef _GTKMM_TEXTTAGTABLE_H
 
4
#define _GTKMM_TEXTTAGTABLE_H
 
5
 
 
6
#include <glibmm.h>
 
7
 
 
8
/* $Id$ */
 
9
 
 
10
/* texttagtable.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
#include <gtkmm/object.h>
 
30
#include <gtkmm/texttag.h>
 
31
 
 
32
 
 
33
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
34
typedef struct _GtkTextTagTable GtkTextTagTable;
 
35
typedef struct _GtkTextTagTableClass GtkTextTagTableClass;
 
36
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
37
 
 
38
 
 
39
namespace Gtk
 
40
{ class TextTagTable_Class; } // namespace Gtk
 
41
namespace Gtk
 
42
{
 
43
 
 
44
class TextTag;
 
45
 
 
46
/** Typedefed as Gtk::TextBuffer::TagTable. A Collection of @link Gtk::TextTag Gtk::TextBuffer::Tags@endlink that can be used together.
 
47
 *
 
48
 * A tag table defines a set of @link Gtk::TextTag Gtk::TextBuffer::Tags@endlink that can be used together. Each buffer has one tag
 
49
 * table associated with it; only tags from that tag table can be used with the buffer. A single tag table can be shared between
 
50
 * multiple buffers, however.
 
51
 *
 
52
 * @ingroup TextView
 
53
 */
 
54
 
 
55
class TextTagTable : public Glib::Object
 
56
{
 
57
   
 
58
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
59
 
 
60
public:
 
61
  typedef TextTagTable CppObjectType;
 
62
  typedef TextTagTable_Class CppClassType;
 
63
  typedef GtkTextTagTable BaseObjectType;
 
64
  typedef GtkTextTagTableClass BaseClassType;
 
65
 
 
66
private:  friend class TextTagTable_Class;
 
67
  static CppClassType texttagtable_class_;
 
68
 
 
69
private:
 
70
  // noncopyable
 
71
  TextTagTable(const TextTagTable&);
 
72
  TextTagTable& operator=(const TextTagTable&);
 
73
 
 
74
protected:
 
75
  explicit TextTagTable(const Glib::ConstructParams& construct_params);
 
76
  explicit TextTagTable(GtkTextTagTable* castitem);
 
77
 
 
78
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
79
 
 
80
public:
 
81
  virtual ~TextTagTable();
 
82
 
 
83
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
84
  static GType get_type()      G_GNUC_CONST;
 
85
  static GType get_base_type() G_GNUC_CONST;
 
86
#endif
 
87
 
 
88
  ///Provides access to the underlying C GObject.
 
89
  GtkTextTagTable*       gobj()       { return reinterpret_cast<GtkTextTagTable*>(gobject_); }
 
90
 
 
91
  ///Provides access to the underlying C GObject.
 
92
  const GtkTextTagTable* gobj() const { return reinterpret_cast<GtkTextTagTable*>(gobject_); }
 
93
 
 
94
  ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
 
95
  GtkTextTagTable* gobj_copy();
 
96
 
 
97
private:
 
98
 
 
99
protected:
 
100
 
 
101
  TextTagTable();
 
102
 
 
103
public:
 
104
  
 
105
  static Glib::RefPtr<TextTagTable> create();
 
106
 
 
107
 
 
108
  /** Add a tag to the table. The tag is assigned the highest priority
 
109
   * in the table.
 
110
   * 
 
111
   *  @a tag  must not be in a tag table already, and may not have
 
112
   * the same name as an already-added tag.
 
113
   * @param tag A Gtk::TextTag.
 
114
   */
 
115
  void add(const Glib::RefPtr<TextTag>& tag);
 
116
  
 
117
  /** Remove a tag from the table. This will remove the table's
 
118
   * reference to the tag, so be careful - the tag will end
 
119
   * up destroyed if you don't have a reference to it.
 
120
   * @param tag A Gtk::TextTag.
 
121
   */
 
122
  void remove(const Glib::RefPtr<TextTag>& tag);
 
123
  
 
124
  /** Look up a named tag.
 
125
   * @param name Name of a tag.
 
126
   * @return The tag, or <tt>0</tt> if none by that name is in the table.
 
127
   */
 
128
  Glib::RefPtr<TextTag> lookup(const Glib::ustring& name);
 
129
  
 
130
  /** Look up a named tag.
 
131
   * @param name Name of a tag.
 
132
   * @return The tag, or <tt>0</tt> if none by that name is in the table.
 
133
   */
 
134
  Glib::RefPtr<const TextTag> lookup(const Glib::ustring& name) const;
 
135
 
 
136
  typedef sigc::slot<void, const Glib::RefPtr<TextTag>&> SlotForEach;
 
137
  void foreach(const SlotForEach& slot);
 
138
  
 
139
 
 
140
  /** Returns the size of the table (number of tags)
 
141
   * @return Number of tags in @a table .
 
142
   */
 
143
  int get_size() const;
 
144
 
 
145
  
 
146
  Glib::SignalProxy2< void,const Glib::RefPtr<TextTag>&,bool > signal_tag_changed();
 
147
 
 
148
  
 
149
  Glib::SignalProxy1< void,const Glib::RefPtr<TextTag>& > signal_tag_added();
 
150
 
 
151
  
 
152
  Glib::SignalProxy1< void,const Glib::RefPtr<TextTag>& > signal_tag_removed();
 
153
 
 
154
 
 
155
public:
 
156
 
 
157
public:
 
158
  //C++ methods used to invoke GTK+ virtual functions:
 
159
 
 
160
protected:
 
161
  //GTK+ Virtual Functions (override these to change behaviour):
 
162
 
 
163
  //Default Signal Handlers::
 
164
  virtual void on_tag_changed(const Glib::RefPtr<TextTag>& tag, bool size_changed);
 
165
  virtual void on_tag_added(const Glib::RefPtr<TextTag>& tag);
 
166
  virtual void on_tag_removed(const Glib::RefPtr<TextTag>& tag);
 
167
 
 
168
 
 
169
};
 
170
 
 
171
} /* namespace Gtk */
 
172
 
 
173
 
 
174
namespace Glib
 
175
{
 
176
  /** @relates Gtk::TextTagTable
 
177
   * @param object The C instance
 
178
   * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
 
179
   * @result A C++ instance that wraps this C instance.
 
180
   */
 
181
  Glib::RefPtr<Gtk::TextTagTable> wrap(GtkTextTagTable* object, bool take_copy = false);
 
182
}
 
183
 
 
184
 
 
185
#endif /* _GTKMM_TEXTTAGTABLE_H */
 
186