Trait relm4::factory::FactoryListView
source · [−]pub trait FactoryListView<Widget> where
Self: FactoryView<Widget>, {
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
fn 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.
fn 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
sourceimpl<Widget> FactoryListView<Widget> for Box where
Self: FactoryView<Widget, Root = Widget>,
Widget: IsA<Widget>,
impl<Widget> FactoryListView<Widget> for Box where
Self: FactoryView<Widget, Root = Widget>,
Widget: IsA<Widget>,
fn insert_after(&self, widget: &Widget, other: &Widget) -> Widget
fn push_front(&self, widget: &Widget) -> Widget
sourceimpl<Widget> FactoryListView<Widget> for ListBox where
Self: FactoryView<Widget, Root = Widget>,
Widget: ListBoxRowExt + IsA<Widget> + Clone,
impl<Widget> FactoryListView<Widget> for ListBox where
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
sourceimpl<Widget> FactoryListView<Widget> for FlowBox where
Self: FactoryView<Widget, Root = Widget>,
Widget: FlowBoxChildExt + IsA<Widget> + Clone,
impl<Widget> FactoryListView<Widget> for FlowBox where
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
sourceimpl<Widget> FactoryListView<Widget> for TabView where
Widget: IsA<Widget>,
This is supported on crate feature libadwaita
only.
impl<Widget> FactoryListView<Widget> for TabView where
Widget: IsA<Widget>,
This is supported on crate feature
libadwaita
only.fn insert_after(&self, widget: &Widget, other: &TabPage) -> TabPage
fn push_front(&self, widget: &Widget) -> TabPage
sourceimpl<Widget> FactoryListView<Widget> for Leaflet where
Widget: IsA<Widget>,
This is supported on crate feature libadwaita
only.
impl<Widget> FactoryListView<Widget> for Leaflet where
Widget: IsA<Widget>,
This is supported on crate feature
libadwaita
only.fn insert_after(&self, widget: &Widget, other: &LeafletPage) -> LeafletPage
fn push_front(&self, widget: &Widget) -> LeafletPage
sourceimpl<Widget> FactoryListView<Widget> for Paned where
Widget: IsA<Widget>,
This is supported on crate feature libpanel
only.
impl<Widget> FactoryListView<Widget> for Paned where
Widget: IsA<Widget>,
This is supported on crate feature
libpanel
only.