RelmListBoxExt

Trait RelmListBoxExt 

Source
pub trait RelmListBoxExt {
    // Required methods
    fn index_of_child(&self, widget: &impl AsRef<Widget>) -> Option<i32>;
    fn remove_row_of_child(&self, widget: &impl AsRef<Widget>);
    fn row_of_child(&self, widget: &impl AsRef<Widget>) -> Option<ListBoxRow>;
}
Expand description

Additional methods for gtk::ListBox.

Required Methods§

Source

fn index_of_child(&self, widget: &impl AsRef<Widget>) -> Option<i32>

Get the index of a widget attached to a listbox.

Source

fn remove_row_of_child(&self, widget: &impl AsRef<Widget>)

Remove the row of a child attached a listbox.

Source

fn row_of_child(&self, widget: &impl AsRef<Widget>) -> Option<ListBoxRow>

Get the row of a widget attached to a listbox.

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.

Implementations on Foreign Types§

Source§

impl RelmListBoxExt for ListBox

Source§

fn index_of_child(&self, widget: &impl AsRef<Widget>) -> Option<i32>

Source§

fn remove_row_of_child(&self, widget: &impl AsRef<Widget>)

Source§

fn row_of_child(&self, widget: &impl AsRef<Widget>) -> Option<ListBoxRow>

Implementors§