FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    OrientationBasedMeasures

    struct · ferroui-controls-repeater · v0.5.0

    struct OrientationBasedMeasures
    

    Major is the scrolling axis; minor is the axis along a line.

    View source

    Members

    orientation

    orientation: ScrollOrientation
    

    Source

    new

    fn new(orientation: ScrollOrientation) -> Self
    

    Source

    major

    fn major(self: &Self, size: Size) -> f64
    

    Source

    minor

    fn minor(self: &Self, size: Size) -> f64
    

    Source

    major_point

    fn major_point(self: &Self, point: Point) -> f64
    

    Source

    minor_point

    fn minor_point(self: &Self, point: Point) -> f64
    

    Source

    major_size

    fn major_size(self: &Self, rect: Rect) -> f64
    

    Source

    minor_size

    fn minor_size(self: &Self, rect: Rect) -> f64
    

    Source

    major_start

    fn major_start(self: &Self, rect: Rect) -> f64
    

    Source

    minor_start

    fn minor_start(self: &Self, rect: Rect) -> f64
    

    Source

    major_end

    fn major_end(self: &Self, rect: Rect) -> f64
    

    Source

    minor_end

    fn minor_end(self: &Self, rect: Rect) -> f64
    

    Source

    rect

    fn rect(self: &Self, minor: f64, major: f64, minor_size: f64, major_size: f64) -> Rect
    

    Source

    point

    fn point(self: &Self, minor: f64, major: f64) -> Point
    

    Source

    size

    fn size(self: &Self, minor: f64, major: f64) -> Size
    

    Source

    with_major_start

    fn with_major_start(self: &Self, rect: Rect, value: f64) -> Rect
    

    Source

    with_minor_start

    fn with_minor_start(self: &Self, rect: Rect, value: f64) -> Rect
    

    Source

    with_major_size

    fn with_major_size(self: &Self, rect: Rect, value: f64) -> Rect
    

    Source

    with_minor_size

    fn with_minor_size(self: &Self, rect: Rect, value: f64) -> Rect
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • Default

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.