Trait gtk::prelude::ListBoxExt

source ·
pub trait ListBoxExt: IsA<ListBox> + Sealed + 'static {
Show 42 methods // Provided methods fn bind_model<P: Fn(&Object) -> Widget + 'static>( &self, model: Option<&impl IsA<ListModel>>, create_widget_func: P ) { ... } fn drag_highlight_row(&self, row: &impl IsA<ListBoxRow>) { ... } fn drag_unhighlight_row(&self) { ... } fn activates_on_single_click(&self) -> bool { ... } fn adjustment(&self) -> Option<Adjustment> { ... } fn row_at_index(&self, index_: i32) -> Option<ListBoxRow> { ... } fn row_at_y(&self, y: i32) -> Option<ListBoxRow> { ... } fn selected_row(&self) -> Option<ListBoxRow> { ... } fn selected_rows(&self) -> Vec<ListBoxRow> { ... } fn selection_mode(&self) -> SelectionMode { ... } fn insert(&self, child: &impl IsA<Widget>, position: i32) { ... } fn invalidate_filter(&self) { ... } fn invalidate_headers(&self) { ... } fn invalidate_sort(&self) { ... } fn prepend(&self, child: &impl IsA<Widget>) { ... } fn select_all(&self) { ... } fn select_row(&self, row: Option<&impl IsA<ListBoxRow>>) { ... } fn selected_foreach<P: FnMut(&ListBox, &ListBoxRow)>(&self, func: P) { ... } fn set_activate_on_single_click(&self, single: bool) { ... } fn set_adjustment(&self, adjustment: Option<&impl IsA<Adjustment>>) { ... } fn set_filter_func( &self, filter_func: Option<Box_<dyn Fn(&ListBoxRow) -> bool + 'static>> ) { ... } fn set_header_func( &self, update_header: Option<Box_<dyn Fn(&ListBoxRow, Option<&ListBoxRow>) + 'static>> ) { ... } fn set_placeholder(&self, placeholder: Option<&impl IsA<Widget>>) { ... } fn set_selection_mode(&self, mode: SelectionMode) { ... } fn set_sort_func( &self, sort_func: Option<Box_<dyn Fn(&ListBoxRow, &ListBoxRow) -> i32 + 'static>> ) { ... } fn unselect_all(&self) { ... } fn unselect_row(&self, row: &impl IsA<ListBoxRow>) { ... } fn connect_activate_cursor_row<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn emit_activate_cursor_row(&self) { ... } fn connect_move_cursor<F: Fn(&Self, MovementStep, i32) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn emit_move_cursor(&self, object: MovementStep, p0: i32) { ... } fn connect_row_activated<F: Fn(&Self, &ListBoxRow) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_row_selected<F: Fn(&Self, Option<&ListBoxRow>) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_select_all<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn emit_select_all(&self) { ... } fn connect_selected_rows_changed<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_toggle_cursor_row<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn emit_toggle_cursor_row(&self) { ... } fn connect_unselect_all<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn emit_unselect_all(&self) { ... } fn connect_activate_on_single_click_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_selection_mode_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... }
}

Provided Methods§

source

fn bind_model<P: Fn(&Object) -> Widget + 'static>( &self, model: Option<&impl IsA<ListModel>>, create_widget_func: P )

source

fn drag_highlight_row(&self, row: &impl IsA<ListBoxRow>)

source

fn drag_unhighlight_row(&self)

source

fn activates_on_single_click(&self) -> bool

source

fn adjustment(&self) -> Option<Adjustment>

source

fn row_at_index(&self, index_: i32) -> Option<ListBoxRow>

source

fn row_at_y(&self, y: i32) -> Option<ListBoxRow>

source

fn selected_row(&self) -> Option<ListBoxRow>

source

fn selected_rows(&self) -> Vec<ListBoxRow>

source

fn selection_mode(&self) -> SelectionMode

source

fn insert(&self, child: &impl IsA<Widget>, position: i32)

source

fn invalidate_filter(&self)

source

fn invalidate_headers(&self)

source

fn invalidate_sort(&self)

source

fn prepend(&self, child: &impl IsA<Widget>)

source

fn select_all(&self)

source

fn select_row(&self, row: Option<&impl IsA<ListBoxRow>>)

source

fn selected_foreach<P: FnMut(&ListBox, &ListBoxRow)>(&self, func: P)

source

fn set_activate_on_single_click(&self, single: bool)

source

fn set_adjustment(&self, adjustment: Option<&impl IsA<Adjustment>>)

source

fn set_filter_func( &self, filter_func: Option<Box_<dyn Fn(&ListBoxRow) -> bool + 'static>> )

source

fn set_header_func( &self, update_header: Option<Box_<dyn Fn(&ListBoxRow, Option<&ListBoxRow>) + 'static>> )

source

fn set_placeholder(&self, placeholder: Option<&impl IsA<Widget>>)

source

fn set_selection_mode(&self, mode: SelectionMode)

source

fn set_sort_func( &self, sort_func: Option<Box_<dyn Fn(&ListBoxRow, &ListBoxRow) -> i32 + 'static>> )

source

fn unselect_all(&self)

source

fn unselect_row(&self, row: &impl IsA<ListBoxRow>)

source

fn connect_activate_cursor_row<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn emit_activate_cursor_row(&self)

source

fn connect_move_cursor<F: Fn(&Self, MovementStep, i32) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn emit_move_cursor(&self, object: MovementStep, p0: i32)

source

fn connect_row_activated<F: Fn(&Self, &ListBoxRow) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_row_selected<F: Fn(&Self, Option<&ListBoxRow>) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_select_all<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn emit_select_all(&self)

source

fn connect_selected_rows_changed<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_toggle_cursor_row<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn emit_toggle_cursor_row(&self)

source

fn connect_unselect_all<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn emit_unselect_all(&self)

source

fn connect_activate_on_single_click_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_selection_mode_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

Implementors§