Search code examples
gtkmmgtkmm3

Why we use Gtk::TreeModel::ColumnRecord


I just started learning gtkmm3. https://developer.gnome.org/gtkmm-tutorial/stable/sec-range-example.html.en

In above example TreeModel is used without explaining about it .

Can anyone explain scenarios where Gtk::TreeModel::ColumnRecord is used?


Solution

  • In the range example the Gtk::TreeModel::ColumnRecords is used for the Gtk::ComboBox widget to describe what types of data is stored.

    When you get to the sections on the Gtk::Treeview widget tutorial and the Gtk::ComboBox tutorial the use of Gtk::TreeModel is explained further. Think of it as describing which data types are stored and their access names are defined.