Skip to main content

ThreePaneScaffold

Struct ThreePaneScaffold 

Source
pub struct ThreePaneScaffold {
    pub key: Option<KeyRef>,
    pub directive: PaneScaffoldDirective,
    pub value: ThreePaneScaffoldValue,
    pub pane_order: ThreePaneScaffoldHorizontalOrder,
    pub primary_pane: Pane,
    pub secondary_pane: Pane,
    pub tertiary_pane: Option<Pane>,
}
Expand description

Up to three panes laid out from a directive and a value.

list_detail and supporting differ only in pane order and slot names. When the value changes, the panes move as Compose’s do: shown panes move to their new bounds, and panes that appear or disappear slide in or out from the free side. A hidden pane stays mounted offstage, so a list keeps its scroll position while the detail covers it.

Fields§

§key: Option<KeyRef>

The scaffold’s key.

§directive: PaneScaffoldDirective

The pane sizes and partitions.

§value: ThreePaneScaffoldValue

The panes shown.

§pane_order: ThreePaneScaffoldHorizontalOrder

The panes’ order from start to end.

§primary_pane: Pane

The primary pane’s content.

§secondary_pane: Pane

The secondary pane’s content.

§tertiary_pane: Option<Pane>

The tertiary pane’s content, when the scaffold has one.

Implementations§

Source§

impl ThreePaneScaffold

Source

pub fn new( directive: PaneScaffoldDirective, value: ThreePaneScaffoldValue, pane_order: ThreePaneScaffoldHorizontalOrder, primary_pane: impl Into<Pane>, secondary_pane: impl Into<Pane>, ) -> ThreePaneScaffold

Creates a pane scaffold with the panes in pane_order.

Source

pub fn list_detail( directive: PaneScaffoldDirective, value: ThreePaneScaffoldValue, list_pane: impl Into<Pane>, detail_pane: impl Into<Pane>, ) -> ThreePaneScaffold

A list-detail scaffold: list, detail, extra.

Source

pub fn supporting( directive: PaneScaffoldDirective, value: ThreePaneScaffoldValue, main_pane: impl Into<Pane>, supporting_pane: impl Into<Pane>, ) -> ThreePaneScaffold

A supporting-pane scaffold: main, supporting, extra.

Source

pub fn tertiary_pane(self, tertiary_pane: impl Into<Pane>) -> ThreePaneScaffold

Adds the tertiary pane.

Source

pub fn key(self, key: KeyRef) -> ThreePaneScaffold

Sets the scaffold’s key.

Trait Implementations§

Source§

impl Debug for ThreePaneScaffold

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl StatefulWidget for ThreePaneScaffold

Source§

type State = ThreePaneScaffoldState

The state this widget creates.
Source§

fn key(&self) -> Option<&KeyRef>

Source§

fn create_state(&self) -> ThreePaneScaffoldState

Creates the mutable state for this widget at a given location in the tree. Read more
Source§

fn debug_fill_properties( &self, _app: &App, properties: &mut DiagnosticPropertiesBuilder, )

Dart’s debugFillProperties: the properties a dump shows for this widget, in Dart’s order. Dart’s Widget base only sets the dense tree style, which the framework does.
Source§

fn debug_check_constructor(&self)

Source§

fn as_preferred_size_widget( &self, ) -> Option<&(dyn PreferredSizeWidget + 'static)>

Source§

fn type_name(&self) -> &'static str

See Widget::type_name. A stateful form another widget kind becomes (an animated or status transition widget) names the widget it wraps.

Auto Trait Implementations§

§

impl !RefUnwindSafe for ThreePaneScaffold

§

impl !Send for ThreePaneScaffold

§

impl !Sync for ThreePaneScaffold

§

impl !UnwindSafe for ThreePaneScaffold

§

impl Forget for ThreePaneScaffold

§

impl Freeze for ThreePaneScaffold
where *const RcInner<dyn Key> is !null: Freeze, PhantomData<RcInner<dyn Key>>: Freeze, *const RcInner<dyn Widget> is !null: Freeze, PhantomData<RcInner<dyn Widget>>: Freeze, *const RcInner<dyn ShapeBorder> is !null: Freeze, PhantomData<RcInner<dyn ShapeBorder>>: Freeze,

§

impl Move for ThreePaneScaffold

§

impl Unpin for ThreePaneScaffold
where Rc<dyn Key>: Unpin, Rc<dyn Widget>: Unpin, Rc<dyn ShapeBorder>: Unpin,

§

impl UnsafeUnpin for ThreePaneScaffold
where *const RcInner<dyn Key> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Key>>: UnsafeUnpin, *const RcInner<dyn Widget> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Widget>>: UnsafeUnpin, *const RcInner<dyn ShapeBorder> is !null: UnsafeUnpin, PhantomData<RcInner<dyn ShapeBorder>>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<W> IntoWidget<StatefulKind> for W
where W: StatefulWidget,

Source§

fn into_widget(self) -> Rc<dyn Widget>

The widget as a tree node, made where this is called: its creation_location.
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>