GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

GFC::Gtk::TextChildAnchor Class Reference

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

#include <gfc/gtk/textbuffer.hh>

Inheritance diagram for GFC::Gtk::TextChildAnchor:

GFC::G::Object GFC::G::TypeInstance GFC::Trackable 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

GFC::Gtk::TextChildAnchor::TextChildAnchor GtkTextChildAnchor *  anchor,
bool  owns_reference = true
[explicit, protected]
 

Construct a new TextChildAnchor from an existing GtkTextChildAnchor.

Parameters:
anchor A pointer to a GtkTextChildAnchor.
owns_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).

GFC::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 GFC::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 GFC::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:
Generated on Tue Aug 24 00:34:42 2004 for GFC-UI by doxygen 1.3.8