Re: [gtkmm] TreeView reference documentation
- From: Murray Cumming <murrayc usa net>
- To: Morten Brix Pedersen <morten wtf dk>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] TreeView reference documentation
- Date: 07 Jul 2002 11:38:52 +0100
On Sun, 2002-07-07 at 00:33, Morten Brix Pedersen wrote:
> I don't understand the description for this method:
>
> template <class ColumnType>
> int Gtk::TreeView::append_column ( const Glib::ustring& title,
> const TreeModelColumn<ColumnType>& model_column ) [inline]
>
>
> Appends a View column with the appropriate CellRenderer for the Model column.
>
>
> A CellRenderer? The function takes no CellRenderer arguments, I don't
> understand what this means.
It means that, if model_column is a TreeModel::Column<Glib::ustring> or
TreeModel::Column<std::string> then it will use a CellRendererText.
If it's a TreeModel::Column<bool> then it will use a CellRendererToggle,
and if it's a TreeModel::Column<Gdk::Pixbuf> then it will use a
CellRenderPixbuf. It's worth mentioning in the reference documentation
because GTK+ in C requires you to specify what CellRenderer needs to be
used.
--
Murray Cumming
murrayc usa net
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]