add new sigc++2 directory
[ardour.git] / libs / gtkmm2 / gtk / src / textchildanchor.hg
1 /* $Id: textchildanchor.hg,v 1.3 2006/03/22 16:53:22 murrayc Exp $ */
2
3 /* textchildanchor.h
4  * 
5  * Copyright (C) 1998-2002 The gtkmm Development Team
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public
18  * License along with this library; if not, write to the Free
19  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20  */
21
22
23 #include <gtkmm/object.h>
24 #include <gtkmm/widget.h>
25 #include <glibmm/listhandle.h>
26
27 _DEFS(gtkmm,gtk)
28 _PINCLUDE(glibmm/private/object_p.h)
29
30 namespace Gtk
31 {
32
33 /** A TextChildAnchor is a spot in the buffer where child widgets can be "anchored" 
34  * (inserted inline, as if they were characters). The anchor can have multiple widgets anchored, 
35  * to allow for multiple views.
36  *
37  * Typedefed as Gtk::TextBuffer::ChildAnchor.
38  * @ingroup TextView
39  */
40 class TextChildAnchor : public Glib::Object
41 {
42    _CLASS_GOBJECT(TextChildAnchor, GtkTextChildAnchor, GTK_TEXT_CHILD_ANCHOR, Glib::Object, GObject)
43 protected:
44   _CTOR_DEFAULT()
45
46 public:
47   _WRAP_CREATE()
48
49   _WRAP_METHOD(Glib::ListHandle<Widget*> get_widgets(), gtk_text_child_anchor_get_widgets)
50   _WRAP_METHOD(Glib::ListHandle<const Widget*> get_widgets() const, gtk_text_child_anchor_get_widgets)
51   _WRAP_METHOD(bool get_deleted() const, gtk_text_child_anchor_get_deleted)
52
53   //These methods, and GtkTextLayout are semi-private:
54   _IGNORE(gtk_text_child_anchor_register_child, gtk_text_child_anchor_unregister_child, gtk_text_child_anchor_queue_resize)
55   //_WRAP_METHOD(void Register_child(TextLayout& layout), gtk_text_child_anchor_register_child)
56   //_WRAP_METHOD(void unregister_child(Widget& child), gtk_text_child_anchor_unregister_child)
57   //_WRAP_METHOD(void queue_resize(TextLayout& layout), gtk_text_child_anchor_queue_resize)
58
59 };
60
61 } /* namespace Gtk */
62