gtkmm: TreeView Classes

gtkmm 3.91.2

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

Classes | Enumerations
TreeView Classes

These classes are used with the Gtk::TreeView widget. More...

## Classes
class | Gtk::CellRenderer
| CellRenderers are used by Gtk::TreeView columns to render the Gtk::TreeModel column data appropriately. More...
class | Gtk::CellRendererAccel
| Renders a keyboard accelerator in a cell. More...
class | Gtk::CellRendererCombo
| Renders a combobox in a cell. More...
class | Gtk::CellRendererPixbuf
| Renders a pixbuf in a cell. More...
class | Gtk::CellRendererProgress
| Renders numbers as progress bars. More...
class | Gtk::CellRendererSpin
| Renders a spin button in a cell. More...
class | Gtk::CellRendererSpinner
| Renders a spinning animation in a cell. More...
class | Gtk::CellRendererText
| Renders text in a cell. More...
class | Gtk::CellRendererToggle
| Renders a toggle button in a cell. More...
class | Gtk::ListStore
| Thist is a list model for use with a Gtk::TreeView widget. More...
class | Gtk::TreeDragDest
class | Gtk::TreeDragSource
class | Gtk::TreeIterBase
| Base of TreeIter, TreeRow and TreeNodeChildren. More...
class | Gtk::TreeIterBase2
| Base of TreeIter, TreeRow and TreeNodeChildren. More...
class | Gtk::TreeIterBase3
| Base of TreeIter. More...
class | Gtk::TreeIter< T >
| Typedefed as TreeModel::iterator and TreeModel::const_iterator. More...
class | Gtk::TreeConstRow
| Typedefed as TreeModel::ConstRow. More...
class | Gtk::TreeRow
| Typedefed as TreeModel::Row. More...
class | Gtk::TreeNodeConstChildren
| Typedefed as TreeModel::ConstChildren. More...
class | Gtk::TreeNodeChildren
| Typedefed as TreeModel::Children. More...
class | Gtk::TreeModel
| This class defines a generic tree interface for use by the Gtk::TreeView widget. More...
class | Gtk::TreeModelFilter
class | Gtk::TreeModelSort
| A wrapper which makes an underlying Gtk::TreeModel sortable. More...
class | Gtk::TreePath
| A path is essentially a potential node. More...
class | Gtk::TreeRowReference
| Typedefed as Gtk::TreeModel::RowReference. More...
class | Gtk::TreeSelection
| Typedefed as Gtk::TreeView::Selection. More...
class | Gtk::TreeSortable
class | Gtk::TreeStore
class | Gtk::TreeView
| The TreeView widget displays the model (Gtk::TreeModel) data and allows the user to interact with it. More...
class | Gtk::TreeViewColumn
| Typedefed as Gtk::TreeView::Column. More...
class | Gtk::ListViewText::TextModelColumns
class | Gtk::ListViewText
| A simple listbox which presents some lines of information in columns and lets the user select some of them. More...
class | Gtk::TreeModelColumnRecord
| Typedefed as TreeModel::ColumnRecord. More...
class | Gtk::TreeModelColumnBase
| Base class of TreeModelColumn templates. More...
class | Gtk::TreeModelColumn< T >
| A Gtk::TreeModelColumn describes the C++ type of the data in a model column, and identifies that column in the model. More...

## Enumerations
enum | Gtk::CellRendererAccel::Mode { Gtk::CellRendererAccel::Mode::GTK, Gtk::CellRendererAccel::Mode::OTHER }
| Determines if the edited accelerators are GTK+ accelerators. More...
enum | Gtk::TreeModel::Flags { Gtk::TreeModel::Flags::ITERS_PERSIST = 1 << 0, Gtk::TreeModel::Flags::LIST_ONLY = 1 << 1 }
| These flags indicate various properties of a Gtk::TreeModel. More...
enum | { Gtk::TreeSortable::DEFAULT_SORT_COLUMN_ID = -1, Gtk::TreeSortable::DEFAULT_UNSORTED_COLUMN_ID = -2 }
enum | Gtk::TreeView::DropPosition { Gtk::TreeView::DropPosition::BEFORE, Gtk::TreeView::DropPosition::AFTER, Gtk::TreeView::DropPosition::INTO_OR_BEFORE, Gtk::TreeView::DropPosition::INTO_OR_AFTER }
| An enum for determining where a dropped row goes. More...
enum | Gtk::TreeView::GridLines { Gtk::TreeView::GridLines::NONE, Gtk::TreeView::GridLines::HORIZONTAL, Gtk::TreeView::GridLines::VERTICAL, Gtk::TreeView::GridLines::BOTH }
| Used to indicate which grid lines to draw in a tree view. More...
enum | Gtk::TreeViewColumn::Sizing { Gtk::TreeViewColumn::Sizing::GROW_ONLY, Gtk::TreeViewColumn::Sizing::AUTOSIZE, Gtk::TreeViewColumn::Sizing::FIXED }
| The sizing method the column uses to determine its width. More...

## Detailed Description

These classes are used with the Gtk::TreeView widget.

## Enumeration Type Documentation

anonymous enum

Enumerator
DEFAULT_SORT_COLUMN_ID | See set_default_sort_func() and set_sort_column().
DEFAULT_UNSORTED_COLUMN_ID |

enum Gtk::TreeView::DropPosition
| strong

An enum for determining where a dropped row goes.

Enumerator
BEFORE | Dropped row is inserted before.
AFTER | Dropped row is inserted after.
INTO_OR_BEFORE | Dropped row becomes a child or is inserted before.
INTO_OR_AFTER | Dropped row becomes a child or is inserted after.

enum Gtk::TreeModel::Flags
| strong

These flags indicate various properties of a Gtk::TreeModel.

They are returned by Gtk::TreeModel::get_flags(), and must be static for the lifetime of the object. A more complete description of Gtk::TreeModel::Flags::ITERS_PERSIST can be found in the overview of this section.

Bitwise operators:
  `TreeModel::Flags operator|(TreeModel::Flags, TreeModel::Flags)`
  `TreeModel::Flags operator&(TreeModel::Flags, TreeModel::Flags)`
  `TreeModel::Flags operator^(TreeModel::Flags, TreeModel::Flags)`
  `TreeModel::Flags operator~(TreeModel::Flags)`
  `TreeModel::Flags& operator|=(TreeModel::Flags&, TreeModel::Flags)`
  `TreeModel::Flags& operator&=(TreeModel::Flags&, TreeModel::Flags)`
  `TreeModel::Flags& operator^=(TreeModel::Flags&, TreeModel::Flags)`

Enumerator
ITERS_PERSIST | Iterators survive all signals emitted by the tree.
LIST_ONLY | The model is a list only, and never has children.

enum Gtk::TreeView::GridLines
| strong

Used to indicate which grid lines to draw in a tree view.

Enumerator
NONE | No grid lines.
HORIZONTAL | Horizontal grid lines.
VERTICAL | Vertical grid lines.
BOTH | Horizontal and vertical grid lines.

enum Gtk::CellRendererAccel::Mode
| strong

Determines if the edited accelerators are GTK+ accelerators.

If they are, consumed modifiers are suppressed, only accelerators accepted by GTK+ are allowed, and the accelerators are rendered in the same way as they are in menus.

Enumerator
GTK | GTK+ accelerators mode.
OTHER | Other accelerator mode.

enum Gtk::TreeViewColumn::Sizing
| strong

The sizing method the column uses to determine its width.

Please note that GTK_TREE_VIEW_COLUMN_AUTOSIZE are inefficient for large views, and can make columns appear choppy.

Enumerator
GROW_ONLY | Columns only get bigger in reaction to changes in the model.
AUTOSIZE | Columns resize to be the optimal size everytime the model changes.
FIXED | Columns are a fixed numbers of pixels wide.