[−][src]Struct embedded_layout::layout::linear::Vertical
Vertical layout direction
Implementations
impl<Secondary, Spacing> Vertical<Secondary, Spacing> where
Secondary: SecondaryAlignment + HorizontalAlignment,
Spacing: ElementSpacing, [src]
Secondary: SecondaryAlignment + HorizontalAlignment,
Spacing: ElementSpacing,
pub fn with_secondary_alignment<Sec: SecondaryAlignment + HorizontalAlignment>(
self,
secondary: Sec
) -> Vertical<Sec, Spacing>[src]
self,
secondary: Sec
) -> Vertical<Sec, Spacing>
Change secondary alignment
pub fn with_spacing<ElSpacing: ElementSpacing>(
self,
spacing: ElSpacing
) -> Vertical<Secondary, ElSpacing>[src]
self,
spacing: ElSpacing
) -> Vertical<Secondary, ElSpacing>
Change element spacing
Trait Implementations
impl<Secondary: Clone, Spacing: Clone> Clone for Vertical<Secondary, Spacing> where
Secondary: SecondaryAlignment + HorizontalAlignment,
Spacing: ElementSpacing, [src]
Secondary: SecondaryAlignment + HorizontalAlignment,
Spacing: ElementSpacing,
fn clone(&self) -> Vertical<Secondary, Spacing>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<Secondary: Copy, Spacing: Copy> Copy for Vertical<Secondary, Spacing> where
Secondary: SecondaryAlignment + HorizontalAlignment,
Spacing: ElementSpacing, [src]
Secondary: SecondaryAlignment + HorizontalAlignment,
Spacing: ElementSpacing,
impl Default for Vertical<Left, Tight>[src]
impl<Secondary, Spacing> Orientation for Vertical<Secondary, Spacing> where
Secondary: SecondaryAlignment + HorizontalAlignment,
Spacing: ElementSpacing, [src]
Secondary: SecondaryAlignment + HorizontalAlignment,
Spacing: ElementSpacing,
type Secondary = Secondary
Secondary alignment that will be applied to all the views
fn destructure_size(size: Size) -> (u32, u32)[src]
fn create_size(primary: u32, secondary: u32) -> Size[src]
fn place_first(&self, view: &mut impl View, bounds: Rectangle, count: u32)[src]
fn place_nth(
&self,
view: &mut impl View,
size: Size,
previous: Rectangle,
n: u32,
count: u32
)[src]
&self,
view: &mut impl View,
size: Size,
previous: Rectangle,
n: u32,
count: u32
)
fn adjust_size(self, size: Size, objects: u32) -> Size[src]
Auto Trait Implementations
impl<Secondary, Spacing> RefUnwindSafe for Vertical<Secondary, Spacing> where
Secondary: RefUnwindSafe,
Spacing: RefUnwindSafe,
Secondary: RefUnwindSafe,
Spacing: RefUnwindSafe,
impl<Secondary, Spacing> Send for Vertical<Secondary, Spacing> where
Secondary: Send,
Spacing: Send,
Secondary: Send,
Spacing: Send,
impl<Secondary, Spacing> Sync for Vertical<Secondary, Spacing> where
Secondary: Sync,
Spacing: Sync,
Secondary: Sync,
Spacing: Sync,
impl<Secondary, Spacing> Unpin for Vertical<Secondary, Spacing> where
Secondary: Unpin,
Spacing: Unpin,
Secondary: Unpin,
Spacing: Unpin,
impl<Secondary, Spacing> UnwindSafe for Vertical<Secondary, Spacing> where
Secondary: UnwindSafe,
Spacing: UnwindSafe,
Secondary: UnwindSafe,
Spacing: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,