Trait embedded_layout::layout::linear::Orientation
source · pub trait Orientation: Copy + Clone {
type Secondary: SecondaryAlignment + Alignment;
// Required methods
fn destructure_size(size: Size) -> (u32, u32);
fn create_size(primary: u32, secondary: u32) -> Size;
fn place(
&self,
view: &mut dyn View,
size: Size,
previous: Rectangle,
n: usize,
count: usize
);
}
Expand description
Helper trait that describes a linear layout orientation.
Required Associated Types§
sourcetype Secondary: SecondaryAlignment + Alignment
type Secondary: SecondaryAlignment + Alignment
Secondary alignment that will be applied to all the views
Required Methods§
sourcefn destructure_size(size: Size) -> (u32, u32)
fn destructure_size(size: Size) -> (u32, u32)
Destructure Size
into (primary_size, secondary_size)
sourcefn create_size(primary: u32, secondary: u32) -> Size
fn create_size(primary: u32, secondary: u32) -> Size
Create a Size
from primary and secondary size values