pub struct MasterStack {
pub outer_gaps: Gaps,
pub inner_gaps: Gaps,
pub master_factor: f32,
pub master_side: MasterSide,
pub master_count: u32,
pub reversed: bool,
}
Expand description
A LayoutGenerator
that has one master area to one side and a stack of windows
next to it.
Fields§
§outer_gaps: Gaps
The gaps between the outer container and this layout.
inner_gaps: Gaps
The gaps between windows within this layout.
master_factor: f32
The proportion of the output the master area will take up.
This will be clamped between 0.1 and 0.9.
master_side: MasterSide
Which side the master area will be.
master_count: u32
How many windows will be in the master area.
reversed: bool
Reverses the direction of window insertion i.e. new windows are inserted at the top of the master stack instead of at the bottom of the side stack.
Trait Implementations§
Source§impl Clone for MasterStack
impl Clone for MasterStack
Source§fn clone(&self) -> MasterStack
fn clone(&self) -> MasterStack
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MasterStack
impl Debug for MasterStack
Source§impl Default for MasterStack
impl Default for MasterStack
Source§impl LayoutGenerator for MasterStack
impl LayoutGenerator for MasterStack
Source§fn layout(&self, window_count: u32) -> LayoutNode
fn layout(&self, window_count: u32) -> LayoutNode
Generates a tree of
LayoutNode
s.Source§impl PartialEq for MasterStack
impl PartialEq for MasterStack
impl Copy for MasterStack
impl StructuralPartialEq for MasterStack
Auto Trait Implementations§
impl Freeze for MasterStack
impl RefUnwindSafe for MasterStack
impl Send for MasterStack
impl Sync for MasterStack
impl Unpin for MasterStack
impl UnwindSafe for MasterStack
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
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>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered
].