Trait gtk::prelude::FlowBoxExt
source · [−]pub trait FlowBoxExt: 'static {
Show 48 methods
fn bind_model<P: IsA<ListModel>, Q: Fn(&Object) -> Widget + 'static>(
&self,
model: Option<&P>,
create_widget_func: Q
);
fn get_activate_on_single_click(&self) -> bool;
fn get_child_at_index(&self, idx: i32) -> Option<FlowBoxChild>;
fn get_column_spacing(&self) -> u32;
fn get_homogeneous(&self) -> bool;
fn get_max_children_per_line(&self) -> u32;
fn get_min_children_per_line(&self) -> u32;
fn get_row_spacing(&self) -> u32;
fn get_selected_children(&self) -> Vec<FlowBoxChild>;
fn get_selection_mode(&self) -> SelectionMode;
fn insert<P: IsA<Widget>>(&self, widget: &P, position: i32);
fn invalidate_filter(&self);
fn invalidate_sort(&self);
fn select_all(&self);
fn select_child<P: IsA<FlowBoxChild>>(&self, child: &P);
fn selected_foreach<P: FnMut(&FlowBox, &FlowBoxChild)>(&self, func: P);
fn set_activate_on_single_click(&self, single: bool);
fn set_column_spacing(&self, spacing: u32);
fn set_filter_func(
&self,
filter_func: Option<Box<dyn Fn(&FlowBoxChild) -> bool + 'static>>
);
fn set_hadjustment<P: IsA<Adjustment>>(&self, adjustment: &P);
fn set_homogeneous(&self, homogeneous: bool);
fn set_max_children_per_line(&self, n_children: u32);
fn set_min_children_per_line(&self, n_children: u32);
fn set_row_spacing(&self, spacing: u32);
fn set_selection_mode(&self, mode: SelectionMode);
fn set_sort_func(
&self,
sort_func: Option<Box<dyn Fn(&FlowBoxChild, &FlowBoxChild) -> i32 + 'static>>
);
fn set_vadjustment<P: IsA<Adjustment>>(&self, adjustment: &P);
fn unselect_all(&self);
fn unselect_child<P: IsA<FlowBoxChild>>(&self, child: &P);
fn connect_activate_cursor_child<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn emit_activate_cursor_child(&self);
fn connect_child_activated<F: Fn(&Self, &FlowBoxChild) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_move_cursor<F: Fn(&Self, MovementStep, i32) -> bool + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn emit_move_cursor(&self, step: MovementStep, count: i32) -> bool;
fn connect_select_all<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn emit_select_all(&self);
fn connect_selected_children_changed<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_toggle_cursor_child<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn emit_toggle_cursor_child(&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_column_spacing_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_property_homogeneous_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_property_max_children_per_line_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_property_min_children_per_line_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_property_row_spacing_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
sourcefn bind_model<P: IsA<ListModel>, Q: Fn(&Object) -> Widget + 'static>(
fn bind_model<P: IsA<ListModel>, Q: Fn(&Object) -> Widget + 'static>(
&self,
model: Option<&P>,
create_widget_func: Q
)
source
fn get_activate_on_single_click(&self) -> bool
source
fn get_child_at_index(&self, idx: i32) -> Option<FlowBoxChild>
source
fn get_column_spacing(&self) -> u32
source
fn get_homogeneous(&self) -> bool
source
fn get_max_children_per_line(&self) -> u32
source
fn get_min_children_per_line(&self) -> u32
source
fn get_row_spacing(&self) -> u32
source
fn get_selected_children(&self) -> Vec<FlowBoxChild>
source
fn get_selection_mode(&self) -> SelectionMode
source
fn invalidate_filter(&self)
source
fn invalidate_sort(&self)
source
fn select_all(&self)
source
fn select_child<P: IsA<FlowBoxChild>>(&self, child: &P)
source
fn selected_foreach<P: FnMut(&FlowBox, &FlowBoxChild)>(&self, func: P)
source
fn set_activate_on_single_click(&self, single: bool)
source
fn set_column_spacing(&self, spacing: u32)
sourcefn set_filter_func(
fn set_filter_func(
&self,
filter_func: Option<Box<dyn Fn(&FlowBoxChild) -> bool + 'static>>
)
source
fn set_hadjustment<P: IsA<Adjustment>>(&self, adjustment: &P)
source
fn set_homogeneous(&self, homogeneous: bool)
source
fn set_max_children_per_line(&self, n_children: u32)
source
fn set_min_children_per_line(&self, n_children: u32)
source
fn set_row_spacing(&self, spacing: u32)
source
fn set_selection_mode(&self, mode: SelectionMode)
sourcefn set_sort_func(
fn set_sort_func(
&self,
sort_func: Option<Box<dyn Fn(&FlowBoxChild, &FlowBoxChild) -> i32 + 'static>>
)
source
fn set_vadjustment<P: IsA<Adjustment>>(&self, adjustment: &P)
source
fn unselect_all(&self)
source
fn unselect_child<P: IsA<FlowBoxChild>>(&self, child: &P)
sourcefn connect_activate_cursor_child<F: Fn(&Self) + 'static>(
fn connect_activate_cursor_child<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
source
fn emit_activate_cursor_child(&self)
sourcefn connect_child_activated<F: Fn(&Self, &FlowBoxChild) + 'static>(
fn connect_child_activated<F: Fn(&Self, &FlowBoxChild) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_move_cursor<F: Fn(&Self, MovementStep, i32) -> bool + 'static>(
fn connect_move_cursor<F: Fn(&Self, MovementStep, i32) -> bool + 'static>(
&self,
f: F
) -> SignalHandlerId
source
fn emit_move_cursor(&self, step: MovementStep, count: i32) -> bool
source
fn connect_select_all<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
source
fn emit_select_all(&self)
sourcefn connect_selected_children_changed<F: Fn(&Self) + 'static>(
fn connect_selected_children_changed<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_toggle_cursor_child<F: Fn(&Self) + 'static>(
fn connect_toggle_cursor_child<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
source
fn emit_toggle_cursor_child(&self)
source
fn connect_unselect_all<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
source
fn emit_unselect_all(&self)
sourcefn connect_property_activate_on_single_click_notify<F: Fn(&Self) + 'static>(
fn connect_property_activate_on_single_click_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_column_spacing_notify<F: Fn(&Self) + 'static>(
fn connect_property_column_spacing_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_homogeneous_notify<F: Fn(&Self) + 'static>(
fn connect_property_homogeneous_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_max_children_per_line_notify<F: Fn(&Self) + 'static>(
fn connect_property_max_children_per_line_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_min_children_per_line_notify<F: Fn(&Self) + 'static>(
fn connect_property_min_children_per_line_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_row_spacing_notify<F: Fn(&Self) + 'static>(
fn connect_property_row_spacing_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_selection_mode_notify<F: Fn(&Self) + 'static>(