Trait gtk4::prelude::TreeViewExtManual

source ·
pub trait TreeViewExtManual: Sealed + IsA<TreeView> + 'static {
    // Provided methods
    fn insert_column_with_attributes(
        &self,
        position: i32,
        title: &str,
        cell: &impl IsA<CellRenderer>,
        attributes: &[(&str, i32)]
    ) -> i32 { ... }
    fn unset_row_separator_func(&self) { ... }
}
👎Deprecated: Since 4.10
Expand description

Trait containing manually implemented methods of TreeView.

Provided Methods§

source

fn insert_column_with_attributes( &self, position: i32, title: &str, cell: &impl IsA<CellRenderer>, attributes: &[(&str, i32)] ) -> i32

👎Deprecated: Since 4.10

Creates a new TreeViewColumn and inserts it into the @self at @position. If @position is -1, then the newly created column is inserted at the end. The column is initialized with the attributes given. If @self has “fixed_height” mode enabled, then the new column will have its sizing property set to be GTK_TREE_VIEW_COLUMN_FIXED.

§Deprecated since 4.10

Use ListView or ColumnView instead

§position

The position to insert the new column in

§title

The title to set the header to

§cell

The CellRenderer

§Returns

The number of columns in @self after insertion.

source

fn unset_row_separator_func(&self)

👎Deprecated: Since 4.10

Object Safety§

This trait is not object safe.

Implementors§