Trait relm4::factory::FactoryView  
source · pub trait FactoryView<Widget> {
    type Root: Debug;
    type Position;
    // Required methods
    fn add(&self, widget: &Widget, position: &Self::Position) -> Self::Root;
    fn remove(&self, widget: &Self::Root);
}Expand description
A trait implemented for GTK4 widgets that allows a factory to create and remove widgets.
Required Associated Types§
sourcetype Position
 
type Position
Position type used by this widget.
For example GridPosition for gtk::Grid or () for gtk::Box
Required Methods§
Implementations on Foreign Types§
source§impl<Widget> FactoryView<Widget> for Carouselwhere
    Widget: IsA<Widget>,
Available on crate feature libadwaita only. 
impl<Widget> FactoryView<Widget> for Carouselwhere Widget: IsA<Widget>,
Available on crate feature 
libadwaita only.source§impl<Widget> FactoryView<Widget> for ViewStackwhere
    Widget: IsA<Widget>,
Available on crate feature libadwaita only. 
impl<Widget> FactoryView<Widget> for ViewStackwhere Widget: IsA<Widget>,
Available on crate feature 
libadwaita only.source§impl FactoryView<TreeViewColumn> for TreeView
 
impl FactoryView<TreeViewColumn> for TreeView
type Position = ()
type Root = TreeViewColumn
fn add(&self, widget: &TreeViewColumn, _position: &()) -> TreeViewColumn
fn remove(&self, widget: &TreeViewColumn)
source§impl<Widget> FactoryView<Widget> for Leafletwhere
    Widget: IsA<Widget>,
Available on crate feature libadwaita only. 
impl<Widget> FactoryView<Widget> for Leafletwhere Widget: IsA<Widget>,
Available on crate feature 
libadwaita only.source§impl<Widget> FactoryView<Widget> for Panedwhere
    Widget: IsA<Widget>,
Available on crate feature libpanel only. 
impl<Widget> FactoryView<Widget> for Panedwhere Widget: IsA<Widget>,
Available on crate feature 
libpanel only.source§impl<Widget> FactoryView<Widget> for TabViewwhere
    Widget: IsA<Widget>,
Available on crate feature libadwaita only. 
impl<Widget> FactoryView<Widget> for TabViewwhere Widget: IsA<Widget>,
Available on crate feature 
libadwaita only.