| 1 |
/* Copyright (C) 1998-2002 The gtkmm Development Team |
| 2 |
* |
| 3 |
* This library is free software; you can redistribute it and/or |
| 4 |
* modify it under the terms of the GNU Lesser General Public |
| 5 |
* License as published by the Free Software Foundation; either |
| 6 |
* version 2.1 of the License, or (at your option) any later version. |
| 7 |
* |
| 8 |
* This library is distributed in the hope that it will be useful, |
| 9 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11 |
* Lesser General Public License for more details. |
| 12 |
* |
| 13 |
* You should have received a copy of the GNU Lesser General Public |
| 14 |
* License along with this library; if not, see <https://www.gnu.org/licenses/>. |
| 15 |
*/ |
| 16 |
|
| 17 |
#include <vector> |
| 18 |
|
| 19 |
#include <gtkmm/widget.h> |
| 20 |
|
| 21 |
_DEFS(gtkmm,gtk) |
| 22 |
_PINCLUDE(glibmm/private/object_p.h) |
| 23 |
|
| 24 |
namespace Gtk |
| 25 |
{ |
| 26 |
|
| 27 |
/** A TextChildAnchor is a spot in the buffer where child widgets can be "anchored" |
| 28 |
* (inserted inline, as if they were characters). The anchor can have multiple widgets anchored, |
| 29 |
* to allow for multiple views. |
| 30 |
* |
| 31 |
* Typedefed as Gtk::TextBuffer::ChildAnchor. |
| 32 |
* @ingroup TextView |
| 33 |
*/ |
| 34 |
class GTKMM_API TextChildAnchor : public Glib::Object |
| 35 |
{ |
| 36 |
_CLASS_GOBJECT(TextChildAnchor, GtkTextChildAnchor, GTK_TEXT_CHILD_ANCHOR, Glib::Object, GObject, , , GTKMM_API) |
| 37 |
protected: |
| 38 |
_CTOR_DEFAULT() |
| 39 |
|
| 40 |
public: |
| 41 |
_WRAP_CREATE() |
| 42 |
|
| 43 |
#m4 _CONVERSION(`GList*',`std::vector<Widget*>',`Glib::ListHandler<Widget*>::list_to_vector($3, Glib::OWNERSHIP_SHALLOW)') |
| 44 |
_WRAP_METHOD(std::vector<Widget*> get_widgets(), gtk_text_child_anchor_get_widgets) |
| 45 |
#m4 _CONVERSION(`GList*',`std::vector<const Widget*>',`Glib::ListHandler<const Widget*>::list_to_vector($3, Glib::OWNERSHIP_SHALLOW)') |
| 46 |
_WRAP_METHOD(std::vector<const Widget*> get_widgets() const, gtk_text_child_anchor_get_widgets) |
| 47 |
_WRAP_METHOD(bool get_deleted() const, gtk_text_child_anchor_get_deleted) |
| 48 |
|
| 49 |
//These methods, and GtkTextLayout are semi-private: |
| 50 |
_IGNORE(gtk_text_child_anchor_register_child, gtk_text_child_anchor_unregister_child, gtk_text_child_anchor_queue_resize) |
| 51 |
//_WRAP_METHOD(void Register_child(TextLayout& layout), gtk_text_child_anchor_register_child) |
| 52 |
//_WRAP_METHOD(void unregister_child(Widget& child), gtk_text_child_anchor_unregister_child) |
| 53 |
//_WRAP_METHOD(void queue_resize(TextLayout& layout), gtk_text_child_anchor_queue_resize) |
| 54 |
|
| 55 |
}; |
| 56 |
|
| 57 |
} //namespace Gtk |