pub struct PaneLayoutInput<'a> {
pub width: f32,
pub height: f32,
pub directive: PaneDirective,
pub value: ThreePaneValue,
pub order: &'a [PaneRole; 3],
pub strategies: &'a AdaptStrategies,
pub present: [bool; 3],
pub preferred_widths: [Option<f32>; 3],
pub dragging_offset: Option<f32>,
pub first_pane_width: Option<f32>,
}Expand description
Everything a pane layout depends on.
Fields§
§width: f32The scaffold’s width.
height: f32The scaffold’s height.
directive: PaneDirectiveThe directive in force.
value: ThreePaneValueThe panes’ value.
order: &'a [PaneRole; 3]The panes from left to right.
strategies: &'a AdaptStrategiesThe adapt strategies in force.
present: [bool; 3]Whether each role has a pane, in PaneRole::ALL order.
preferred_widths: [Option<f32>; 3]Each role’s preferred width, where it overrides the directive’s.
dragging_offset: Option<f32>The handle’s center while it is dragged.
first_pane_width: Option<f32>The first pane’s width at a resting split.
Trait Implementations§
Source§impl<'a> Clone for PaneLayoutInput<'a>
impl<'a> Clone for PaneLayoutInput<'a>
Source§fn clone(&self) -> PaneLayoutInput<'a>
fn clone(&self) -> PaneLayoutInput<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for PaneLayoutInput<'a>
Auto Trait Implementations§
impl<'a> Freeze for PaneLayoutInput<'a>
impl<'a> RefUnwindSafe for PaneLayoutInput<'a>
impl<'a> Send for PaneLayoutInput<'a>
impl<'a> Sync for PaneLayoutInput<'a>
impl<'a> Unpin for PaneLayoutInput<'a>
impl<'a> UnsafeUnpin for PaneLayoutInput<'a>
impl<'a> UnwindSafe for PaneLayoutInput<'a>
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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