[−][src]Struct embedded_layout::layout::linear::Horizontal
Horizontal layout direction
Implementations
impl<Secondary, Spacing> Horizontal<Secondary, Spacing> where
Secondary: SecondaryAlignment + VerticalAlignment,
Spacing: ElementSpacing,
[src]
Secondary: SecondaryAlignment + VerticalAlignment,
Spacing: ElementSpacing,
pub fn with_secondary_alignment<Sec: SecondaryAlignment + VerticalAlignment>(
self,
secondary: Sec
) -> Horizontal<Sec, Spacing>
[src]
self,
secondary: Sec
) -> Horizontal<Sec, Spacing>
Change secondary alignment
pub fn with_spacing<ElSpacing: ElementSpacing>(
self,
spacing: ElSpacing
) -> Horizontal<Secondary, ElSpacing>
[src]
self,
spacing: ElSpacing
) -> Horizontal<Secondary, ElSpacing>
Change element spacing
Trait Implementations
impl<Secondary: Clone, Spacing: Clone> Clone for Horizontal<Secondary, Spacing> where
Secondary: SecondaryAlignment + VerticalAlignment,
Spacing: ElementSpacing,
[src]
Secondary: SecondaryAlignment + VerticalAlignment,
Spacing: ElementSpacing,
fn clone(&self) -> Horizontal<Secondary, Spacing>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Secondary: Copy, Spacing: Copy> Copy for Horizontal<Secondary, Spacing> where
Secondary: SecondaryAlignment + VerticalAlignment,
Spacing: ElementSpacing,
[src]
Secondary: SecondaryAlignment + VerticalAlignment,
Spacing: ElementSpacing,
impl Default for Horizontal<Bottom, Tight>
[src]
impl<Secondary, Spacing> Orientation for Horizontal<Secondary, Spacing> where
Secondary: SecondaryAlignment + VerticalAlignment,
Spacing: ElementSpacing,
[src]
Secondary: SecondaryAlignment + VerticalAlignment,
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 Horizontal<Secondary, Spacing> where
Secondary: RefUnwindSafe,
Spacing: RefUnwindSafe,
Secondary: RefUnwindSafe,
Spacing: RefUnwindSafe,
impl<Secondary, Spacing> Send for Horizontal<Secondary, Spacing> where
Secondary: Send,
Spacing: Send,
Secondary: Send,
Spacing: Send,
impl<Secondary, Spacing> Sync for Horizontal<Secondary, Spacing> where
Secondary: Sync,
Spacing: Sync,
Secondary: Sync,
Spacing: Sync,
impl<Secondary, Spacing> Unpin for Horizontal<Secondary, Spacing> where
Secondary: Unpin,
Spacing: Unpin,
Secondary: Unpin,
Spacing: Unpin,
impl<Secondary, Spacing> UnwindSafe for Horizontal<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>,