FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ViewContractObservableHelpers

    struct · ferroui-reactiveui · v0.5.0

    struct ViewContractObservableHelpers
    

    The streams of the view contract that the view hosts of the platforms share (ViewContractObservableHelpers).

    View source

    Members

    get_platform_orientation

    fn get_platform_orientation(logger: &dyn IFullLogger) -> Rc<dyn Fn() -> Option<String>>
    

    The function that gives the orientation of the platform to a view host (GetPlatformOrientation(IFullLogger)): that of the registered IPlatformOperations, or, with none registered, a function that gives None after logger reported the missing registration.

    Source

    create

    fn create(platform_getter: &dyn Fn() -> Option<String>, size_changes: Rc<dyn IObservable<Option<String>>>) -> Rc<dyn IObservable<Option<String>>>
    

    The stream of the view contract from the orientation of the platform and the changes of the size of the host (Create(Func<string?>, IObservable<string?>)): the current orientation, then the orientation after each change of size, without repeats. In a unit test runner it never notifies.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any

    Availability

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