Trait ListBoxExt

Source
pub trait ListBoxExt: 'static {
Show 42 methods // Required methods fn bind_model<P: IsA<ListModel>, Q: Fn(&Object) -> Widget + 'static>( &self, model: Option<&P>, create_widget_func: Q, ); fn drag_highlight_row<P: IsA<ListBoxRow>>(&self, row: &P); fn drag_unhighlight_row(&self); fn get_activate_on_single_click(&self) -> bool; fn get_adjustment(&self) -> Option<Adjustment>; fn get_row_at_index(&self, index_: i32) -> Option<ListBoxRow>; fn get_row_at_y(&self, y: i32) -> Option<ListBoxRow>; fn get_selected_row(&self) -> Option<ListBoxRow>; fn get_selected_rows(&self) -> Vec<ListBoxRow>; fn get_selection_mode(&self) -> SelectionMode; fn insert<P: IsA<Widget>>(&self, child: &P, position: i32); fn invalidate_filter(&self); fn invalidate_headers(&self); fn invalidate_sort(&self); fn prepend<P: IsA<Widget>>(&self, child: &P); fn select_all(&self); fn select_row<P: IsA<ListBoxRow>>(&self, row: Option<&P>); fn selected_foreach<P: FnMut(&ListBox, &ListBoxRow)>(&self, func: P); fn set_activate_on_single_click(&self, single: bool); fn set_adjustment<P: IsA<Adjustment>>(&self, adjustment: Option<&P>); 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<P: IsA<Widget>>(&self, placeholder: Option<&P>); 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<P: IsA<ListBoxRow>>(&self, row: &P); 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_property_activate_on_single_click_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_selection_mode_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId;
}

Required Methods§

Source

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

Source

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

Source

fn drag_unhighlight_row(&self)

Source

fn get_activate_on_single_click(&self) -> bool

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn get_selection_mode(&self) -> SelectionMode

Source

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

Source

fn invalidate_filter(&self)

Source

fn invalidate_headers(&self)

Source

fn invalidate_sort(&self)

Source

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

Source

fn select_all(&self)

Source

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

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<P: IsA<Adjustment>>(&self, adjustment: Option<&P>)

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<P: IsA<Widget>>(&self, placeholder: Option<&P>)

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<P: IsA<ListBoxRow>>(&self, row: &P)

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_property_activate_on_single_click_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

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

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§