gtk4::prelude

Trait TreeViewExtManual

Source
pub trait TreeViewExtManual: 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§