1 /* $Id: textchildanchor.hg,v 1.3 2006/03/22 16:53:22 murrayc Exp $ */
5 * Copyright (C) 1998-2002 The gtkmm Development Team
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.
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.
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.
23 #include <gtkmm/object.h>
24 #include <gtkmm/widget.h>
25 #include <glibmm/listhandle.h>
28 _PINCLUDE(glibmm/private/object_p.h)
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.
37 * Typedefed as Gtk::TextBuffer::ChildAnchor.
40 class TextChildAnchor : public Glib::Object
42 _CLASS_GOBJECT(TextChildAnchor, GtkTextChildAnchor, GTK_TEXT_CHILD_ANCHOR, Glib::Object, GObject)
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)
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)