logo
pub trait FactoryView<Widget> {
    type Root: Debug;
    type Position;
    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.

Associated Types

Widget type that’s stored inside a factory data type.

Position type used by this widget.

For example GridPosition for gtk::Grid or () for gtk::Box

Required methods

Adds a new widget to self at the end.

Removes a widget from self at the end.

Implementations on Foreign Types

Implementors