Ardour  9.0-pre0-582-g084a23a80d
texttagtable.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_TEXTTAGTABLE_H
4 #define _GTKMM_TEXTTAGTABLE_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: texttagtable.hg,v 1.4 2006/04/12 11:11:25 murrayc Exp $ */
11 
12 /* texttagtable.h
13  *
14  * Copyright (C) 1998-2002 The gtkmm Development Team
15  *
16  * This library is free software; you can redistribute it and/or
17  * modify it under the terms of the GNU Lesser General Public
18  * License as published by the Free Software Foundation; either
19  * version 2.1 of the License, or (at your option) any later version.
20  *
21  * This library is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24  * Lesser General Public License for more details.
25  *
26  * You should have received a copy of the GNU Lesser General Public
27  * License along with this library; if not, write to the Free
28  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29  */
30 
31 #include <gtkmm/object.h>
32 #include <gtkmm/texttag.h>
33 
34 
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
36 typedef struct _GtkTextTagTable GtkTextTagTable;
38 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39 
40 
41 #ifndef DOXYGEN_SHOULD_SKIP_THIS
42 namespace Gtk
43 { class TextTagTable_Class; } // namespace Gtk
44 #endif //DOXYGEN_SHOULD_SKIP_THIS
45 
46 namespace Gtk
47 {
48 
49 class TextTag;
50 
60 class TextTagTable : public Glib::Object
61 {
62 
63 #ifndef DOXYGEN_SHOULD_SKIP_THIS
64 
65 public:
66  typedef TextTagTable CppObjectType;
67  typedef TextTagTable_Class CppClassType;
68  typedef GtkTextTagTable BaseObjectType;
69  typedef GtkTextTagTableClass BaseClassType;
70 
71 private: friend class TextTagTable_Class;
72  static CppClassType texttagtable_class_;
73 
74 private:
75  // noncopyable
76  TextTagTable(const TextTagTable&);
77  TextTagTable& operator=(const TextTagTable&);
78 
79 protected:
80  explicit TextTagTable(const Glib::ConstructParams& construct_params);
81  explicit TextTagTable(GtkTextTagTable* castitem);
82 
83 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
84 
85 public:
86  virtual ~TextTagTable();
87 
90  static GType get_type() G_GNUC_CONST;
91 
92 #ifndef DOXYGEN_SHOULD_SKIP_THIS
93 
94 
95  static GType get_base_type() G_GNUC_CONST;
96 #endif
97 
99  GtkTextTagTable* gobj() { return reinterpret_cast<GtkTextTagTable*>(gobject_); }
100 
102  const GtkTextTagTable* gobj() const { return reinterpret_cast<GtkTextTagTable*>(gobject_); }
103 
106 
107 private:
108 
109 protected:
110 
112 
113 public:
114 
115  static Glib::RefPtr<TextTagTable> create();
116 
117 
126  void add(const Glib::RefPtr<TextTag>& tag);
127 
134  void remove(const Glib::RefPtr<TextTag>& tag);
135 
141  Glib::RefPtr<TextTag> lookup(const Glib::ustring& name);
142 
148  Glib::RefPtr<const TextTag> lookup(const Glib::ustring& name) const;
149 
150  typedef sigc::slot<void, const Glib::RefPtr<TextTag>&> SlotForEach;
151  void foreach(const SlotForEach& slot);
152 
153 
158  int get_size() const;
159 
160 
167  Glib::SignalProxy2< void,const Glib::RefPtr<TextTag>&,bool > signal_tag_changed();
168 
169 
176  Glib::SignalProxy1< void,const Glib::RefPtr<TextTag>& > signal_tag_added();
177 
178 
185  Glib::SignalProxy1< void,const Glib::RefPtr<TextTag>& > signal_tag_removed();
186 
187 
188 public:
189 
190 public:
191  //C++ methods used to invoke GTK+ virtual functions:
192 
193 protected:
194  //GTK+ Virtual Functions (override these to change behaviour):
195 
196  //Default Signal Handlers::
198  virtual void on_tag_changed(const Glib::RefPtr<TextTag>& tag, bool size_changed);
200  virtual void on_tag_added(const Glib::RefPtr<TextTag>& tag);
202  virtual void on_tag_removed(const Glib::RefPtr<TextTag>& tag);
203 
204 
205 };
206 
207 } /* namespace Gtk */
208 
209 
210 namespace Glib
211 {
220  Glib::RefPtr<Gtk::TextTagTable> wrap(GtkTextTagTable* object, bool take_copy = false);
221 }
222 
223 
224 #endif /* _GTKMM_TEXTTAGTABLE_H */
225 
GtkTextTagTable * gobj()
Provides access to the underlying C GObject.
Definition: texttagtable.h:99
void add(const Glib::RefPtr< TextTag > &tag)
Glib::RefPtr< const TextTag > lookup(const Glib::ustring &name) const
GtkTextTagTable * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
virtual ~TextTagTable()
sigc::slot< void, const Glib::RefPtr< TextTag > & > SlotForEach
Definition: texttagtable.h:150
Glib::RefPtr< TextTag > lookup(const Glib::ustring &name)
int get_size() const
const GtkTextTagTable * gobj() const
Provides access to the underlying C GObject.
Definition: texttagtable.h:102
static Glib::RefPtr< TextTagTable > create()
void remove(const Glib::RefPtr< TextTag > &tag)
Glib::SignalProxy1< void, const Glib::RefPtr< TextTag > & > signal_tag_added()
static GType get_type() G_GNUC_CONST
virtual void on_tag_changed(const Glib::RefPtr< TextTag > &tag, bool size_changed)
This is a default handler for the signal signal_tag_changed().
virtual void on_tag_added(const Glib::RefPtr< TextTag > &tag)
This is a default handler for the signal signal_tag_added().
virtual void on_tag_removed(const Glib::RefPtr< TextTag > &tag)
This is a default handler for the signal signal_tag_removed().
Glib::SignalProxy2< void, const Glib::RefPtr< TextTag > &, bool > signal_tag_changed()
Glib::SignalProxy1< void, const Glib::RefPtr< TextTag > & > signal_tag_removed()
Glib::RefPtr< Gtk::TextTagTable > wrap(GtkTextTagTable *object, bool take_copy=false)
GtkImageIconNameData name
Definition: gtkimage.h:6
Definition: ardour_ui.h:188