Trait relm4::factory::FactoryListView
source · pub trait FactoryListView<Widget>where
Self: FactoryView<Widget>,{
// Required methods
fn insert_after(&self, widget: &Widget, other: &Self::Root) -> Self::Root;
fn push_front(&self, widget: &Widget) -> Self::Root;
}
Expand description
Extends FactoryView
for containers that work similar to lists.
This means that the container can insert widgets before and after other
widgets.
Required Methods§
sourcefn insert_after(&self, widget: &Widget, other: &Self::Root) -> Self::Root
fn insert_after(&self, widget: &Widget, other: &Self::Root) -> Self::Root
Insert a widget after another widget.
sourcefn push_front(&self, widget: &Widget) -> Self::Root
fn push_front(&self, widget: &Widget) -> Self::Root
Add an widget to the front.
Implementations on Foreign Types§
source§impl<Widget> FactoryListView<Widget> for Panedwhere
Widget: IsA<Widget>,
Available on crate feature libpanel
only.
impl<Widget> FactoryListView<Widget> for Panedwhere Widget: IsA<Widget>,
Available on crate feature
libpanel
only.fn insert_after(&self, widget: &Widget, other: &Widget) -> Widget
fn push_front(&self, widget: &Widget) -> Widget
source§impl<Widget> FactoryListView<Widget> for Boxwhere
Self: FactoryView<Widget, Root = Widget>,
Widget: IsA<Widget>,
impl<Widget> FactoryListView<Widget> for Boxwhere Self: FactoryView<Widget, Root = Widget>, Widget: IsA<Widget>,
fn insert_after(&self, widget: &Widget, other: &Widget) -> Widget
fn push_front(&self, widget: &Widget) -> Widget
source§impl<Widget> FactoryListView<Widget> for FlowBoxwhere
Self: FactoryView<Widget, Root = Widget>,
Widget: FlowBoxChildExt + IsA<Widget> + Clone,
impl<Widget> FactoryListView<Widget> for FlowBoxwhere Self: FactoryView<Widget, Root = Widget>, Widget: FlowBoxChildExt + IsA<Widget> + Clone,
fn insert_after(&self, widget: &Widget, other: &Widget) -> Widget
fn push_front(&self, widget: &Widget) -> Widget
source§impl<Widget> FactoryListView<Widget> for ListBoxwhere
Self: FactoryView<Widget, Root = Widget>,
Widget: ListBoxRowExt + IsA<Widget> + Clone,
impl<Widget> FactoryListView<Widget> for ListBoxwhere Self: FactoryView<Widget, Root = Widget>, Widget: ListBoxRowExt + IsA<Widget> + Clone,
fn insert_after(&self, widget: &Widget, other: &Widget) -> Widget
fn push_front(&self, widget: &Widget) -> Widget
source§impl<Widget> FactoryListView<Widget> for Leafletwhere
Widget: IsA<Widget>,
Available on crate feature libadwaita
only.
impl<Widget> FactoryListView<Widget> for Leafletwhere Widget: IsA<Widget>,
Available on crate feature
libadwaita
only.fn insert_after(&self, widget: &Widget, other: &LeafletPage) -> LeafletPage
fn push_front(&self, widget: &Widget) -> LeafletPage
source§impl<Widget> FactoryListView<Widget> for TabViewwhere
Widget: IsA<Widget>,
Available on crate feature libadwaita
only.
impl<Widget> FactoryListView<Widget> for TabViewwhere Widget: IsA<Widget>,
Available on crate feature
libadwaita
only.