FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    prelude

    module · ferroui · v0.5.0

    module prelude
    

    The types of a minimal application, for a glob import (use ferroui::prelude::*).

    • The declaration of an application class: the macros ferro_class! and ferro_impl_classes!, instantiate, Ref, the traits FerroObjectImpl, ApplicationImpl, ApplicationImplExt and NewApplication, and Application itself.
    • Starting it: AppBuilder, and with the feature desktop the trait that gives it use_platform_detect (AppBuilderDesktopExtensions).
    • The window and the common controls and panels: Window, Control, Border, Button, CheckBox, TextBlock, TextBox, StackPanel, Grid.
    • The values a layout is written with: Thickness, CornerRadius, HorizontalAlignment, VerticalAlignment, Orientation and Color.
    • The theme of the features that are on: FluentTheme (fluent), SimpleTheme (simple), WinUITheme (winui-theme), and MaterialTheme with bundled fonts (material-theme).

    Everything else is reached through the modules of the crate (crate::base, crate::controls, ...).

    View source

    Contents

    Availability

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