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: PaneScaffoldDirectiveThe pane sizes and partitions.
value: ThreePaneScaffoldValueThe panes shown.
pane_order: ThreePaneScaffoldHorizontalOrderThe panes’ order from start to end.
primary_pane: PaneThe primary pane’s content.
secondary_pane: PaneThe secondary pane’s content.
tertiary_pane: Option<Pane>The tertiary pane’s content, when the scaffold has one.
Implementations§
Source§impl ThreePaneScaffold
impl ThreePaneScaffold
Sourcepub fn new(
directive: PaneScaffoldDirective,
value: ThreePaneScaffoldValue,
pane_order: ThreePaneScaffoldHorizontalOrder,
primary_pane: impl Into<Pane>,
secondary_pane: impl Into<Pane>,
) -> ThreePaneScaffold
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.
Sourcepub fn list_detail(
directive: PaneScaffoldDirective,
value: ThreePaneScaffoldValue,
list_pane: impl Into<Pane>,
detail_pane: impl Into<Pane>,
) -> ThreePaneScaffold
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.
Sourcepub fn supporting(
directive: PaneScaffoldDirective,
value: ThreePaneScaffoldValue,
main_pane: impl Into<Pane>,
supporting_pane: impl Into<Pane>,
) -> ThreePaneScaffold
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.
Sourcepub fn tertiary_pane(self, tertiary_pane: impl Into<Pane>) -> ThreePaneScaffold
pub fn tertiary_pane(self, tertiary_pane: impl Into<Pane>) -> ThreePaneScaffold
Adds the tertiary pane.
Sourcepub fn key(self, key: KeyRef) -> ThreePaneScaffold
pub fn key(self, key: KeyRef) -> ThreePaneScaffold
Sets the scaffold’s key.
Trait Implementations§
Source§impl Debug for ThreePaneScaffold
impl Debug for ThreePaneScaffold
Source§impl StatefulWidget for ThreePaneScaffold
impl StatefulWidget for ThreePaneScaffold
Source§type State = ThreePaneScaffoldState
type State = ThreePaneScaffoldState
Source§fn create_state(&self) -> ThreePaneScaffoldState
fn create_state(&self) -> ThreePaneScaffoldState
Source§fn debug_fill_properties(
&self,
_app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( &self, _app: &App, properties: &mut DiagnosticPropertiesBuilder, )
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 as_preferred_size_widget(
&self,
) -> Option<&(dyn PreferredSizeWidget + 'static)>
fn as_preferred_size_widget( &self, ) -> Option<&(dyn PreferredSizeWidget + 'static)>
Source§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
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 ThreePaneScaffoldwhere
*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
impl UnsafeUnpin for ThreePaneScaffoldwhere
*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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<W> IntoWidget<StatefulKind> for Wwhere
W: StatefulWidget,
impl<W> IntoWidget<StatefulKind> for Wwhere
W: StatefulWidget,
Source§fn into_widget(self) -> Rc<dyn Widget>
fn into_widget(self) -> Rc<dyn Widget>
creation_location.