pub struct AdaptivePaneState { /* private fields */ }Expand description
Retained presentation, expansion and navigation state for a single adaptive layout.
Implementations§
Source§impl AdaptivePaneState
impl AdaptivePaneState
pub fn new(initial: PaneDestination) -> AdaptivePaneState
pub fn current_destination(&self) -> &PaneDestination
pub fn history(&self) -> &[PaneDestination]
pub fn set_history_aware( &mut self, aware: bool, cx: &mut Context<'_, AdaptivePaneState>, )
pub fn previous_value( &self, behavior: PaneBackBehavior, ) -> Option<PaneLayoutValue>
Sourcepub fn seek_back(
&mut self,
behavior: PaneBackBehavior,
progress: f32,
cx: &mut Context<'_, AdaptivePaneState>,
) -> bool
pub fn seek_back( &mut self, behavior: PaneBackBehavior, progress: f32, cx: &mut Context<'_, AdaptivePaneState>, ) -> bool
Previews a back transition without modifying history.
pub fn current_value(&self) -> PaneLayoutValue
pub fn target_value(&self) -> PaneLayoutValue
pub fn snap_to( &mut self, value: PaneLayoutValue, cx: &mut Context<'_, AdaptivePaneState>, )
pub fn animate_to( &mut self, value: PaneLayoutValue, cx: &mut Context<'_, AdaptivePaneState>, )
pub fn seek_to( &mut self, value: PaneLayoutValue, progress: f32, cx: &mut Context<'_, AdaptivePaneState>, )
pub fn expansion( &self, start: PaneRole, end: PaneRole, ) -> Option<PaneExpansionAnchor>
Sourcepub fn set_expansion(
&mut self,
start: PaneRole,
end: PaneRole,
anchor: PaneExpansionAnchor,
cx: &mut Context<'_, AdaptivePaneState>,
)
pub fn set_expansion( &mut self, start: PaneRole, end: PaneRole, anchor: PaneExpansionAnchor, cx: &mut Context<'_, AdaptivePaneState>, )
Retains a logical boundary specification, applied when this pair shares a band.
pub fn clear_expansion( &mut self, start: PaneRole, end: PaneRole, cx: &mut Context<'_, AdaptivePaneState>, )
Auto Trait Implementations§
impl Forget for AdaptivePaneState
impl Freeze for AdaptivePaneState
impl Move for AdaptivePaneState
impl RefUnwindSafe for AdaptivePaneState
impl Send for AdaptivePaneState
impl Sync for AdaptivePaneState
impl Unpin for AdaptivePaneState
impl UnsafeUnpin for AdaptivePaneState
impl UnwindSafe for AdaptivePaneState
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more