Reference Manual
Inti Logo
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

Inti::Gtk::TextChildAnchor Class Reference

A GtkTextChildAnchor C++ wrapper class. More...

#include <inti/gtk/textbuffer.h>

Inheritance diagram for Inti::Gtk::TextChildAnchor:

Inti::G::Object Inti::G::TypeInstance Inti::MemoryHandler Inti::ReferencedBase List of all members.

Public Member Functions

Constructors
Accessors

Protected Member Functions

Constructors

Detailed Description

A GtkTextChildAnchor C++ wrapper class.

A TextChildAnchor is a spot in a TextBuffer 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.


Constructor & Destructor Documentation

Inti::Gtk::TextChildAnchor::TextChildAnchor GtkTextChildAnchor *  anchor,
bool  reference = true
[explicit, protected]
 

Construct a new TextChildAnchor from an existing GtkTextChildAnchor.

Parameters:
anchor A pointer to a GtkTextChildAnchor.
reference Set false if the initial reference count is floating, set true if it's not.

The anchor can be a newly created GtkTextChildAnchor or an existing GtkTextChildAnchor (see G::Object::Object).

Inti::Gtk::TextChildAnchor::TextChildAnchor  ) 
 

Construct a new anchor.

Constructs a new TextChildAnchor. Usually you would then insert it into a TextBuffer with Gtk::TextBuffer::insert_child_anchor(). To perform the creation and insertion in one step, use the convenience method Gtk::TextBuffer::create_child_anchor().


Member Function Documentation

bool Inti::Gtk::TextChildAnchor::get_deleted  )  const
 

Determines whether a child anchor has been deleted from the buffer.

Returns:
true if the child anchor has been deleted from its buffer.

Keep in mind that the child anchor will be unreferenced when removed from the buffer, so you need to hold your own reference (with ref()) if you plan to use this method - otherwise all deleted child anchors will also be finalized.

bool Inti::Gtk::TextChildAnchor::get_widgets std::vector< Widget * > &  widgets  )  const
 

Gets a list of all widgets anchored at this child anchor.

Parameters:
widgets A reference to a vector of Widget* to hold the list of widgets.
Returns:
true if the vector contains any widgets.


The documentation for this class was generated from the following file: Main Page - Footer


Generated on Sun Sep 14 20:08:20 2003 for Inti by doxygen 1.3.2 written by Dimitri van Heesch, © 1997-2002