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§

source

fn insert_after(&self, widget: &Widget, other: &Self::Root) -> Self::Root

Insert a widget after another widget.

source

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.
source§

fn insert_after(&self, widget: &Widget, other: &Widget) -> Widget

source§

fn push_front(&self, widget: &Widget) -> Widget

source§

impl<Widget> FactoryListView<Widget> for Boxwhere Self: FactoryView<Widget, Root = Widget>, Widget: IsA<Widget>,

source§

fn insert_after(&self, widget: &Widget, other: &Widget) -> Widget

source§

fn push_front(&self, widget: &Widget) -> Widget

source§

impl<Widget> FactoryListView<Widget> for FlowBoxwhere Self: FactoryView<Widget, Root = Widget>, Widget: FlowBoxChildExt + IsA<Widget> + Clone,

source§

fn insert_after(&self, widget: &Widget, other: &Widget) -> Widget

source§

fn push_front(&self, widget: &Widget) -> Widget

source§

impl<Widget> FactoryListView<Widget> for ListBoxwhere Self: FactoryView<Widget, Root = Widget>, Widget: ListBoxRowExt + IsA<Widget> + Clone,

source§

fn insert_after(&self, widget: &Widget, other: &Widget) -> Widget

source§

fn push_front(&self, widget: &Widget) -> Widget

source§

impl<Widget> FactoryListView<Widget> for Leafletwhere Widget: IsA<Widget>,

Available on crate feature libadwaita only.
source§

fn insert_after(&self, widget: &Widget, other: &LeafletPage) -> LeafletPage

source§

fn push_front(&self, widget: &Widget) -> LeafletPage

source§

impl<Widget> FactoryListView<Widget> for TabViewwhere Widget: IsA<Widget>,

Available on crate feature libadwaita only.
source§

fn insert_after(&self, widget: &Widget, other: &TabPage) -> TabPage

source§

fn push_front(&self, widget: &Widget) -> TabPage

Implementors§