/* Copyright (C) 1998-2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see .
*/
#include
#include
_DEFS(gtkmm,gtk)
_PINCLUDE(glibmm/private/object_p.h)
namespace Gtk
{
/** A TextChildAnchor is a spot in the buffer where child widgets can be "anchored"
* (inserted inline, as if they were characters). The anchor can have multiple widgets anchored,
* to allow for multiple views.
*
* Typedefed as Gtk::TextBuffer::ChildAnchor.
* @ingroup TextView
*/
class GTKMM_API TextChildAnchor : public Glib::Object
{
_CLASS_GOBJECT(TextChildAnchor, GtkTextChildAnchor, GTK_TEXT_CHILD_ANCHOR, Glib::Object, GObject, , , GTKMM_API)
protected:
_CTOR_DEFAULT()
public:
_WRAP_CREATE()
#m4 _CONVERSION(`GList*',`std::vector',`Glib::ListHandler::list_to_vector($3, Glib::OWNERSHIP_SHALLOW)')
_WRAP_METHOD(std::vector get_widgets(), gtk_text_child_anchor_get_widgets)
#m4 _CONVERSION(`GList*',`std::vector',`Glib::ListHandler::list_to_vector($3, Glib::OWNERSHIP_SHALLOW)')
_WRAP_METHOD(std::vector get_widgets() const, gtk_text_child_anchor_get_widgets)
_WRAP_METHOD(bool get_deleted() const, gtk_text_child_anchor_get_deleted)
//These methods, and GtkTextLayout are semi-private:
_IGNORE(gtk_text_child_anchor_register_child, gtk_text_child_anchor_unregister_child, gtk_text_child_anchor_queue_resize)
//_WRAP_METHOD(void Register_child(TextLayout& layout), gtk_text_child_anchor_register_child)
//_WRAP_METHOD(void unregister_child(Widget& child), gtk_text_child_anchor_unregister_child)
//_WRAP_METHOD(void queue_resize(TextLayout& layout), gtk_text_child_anchor_queue_resize)
};
} //namespace Gtk