FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ControlImpl

    trait · ferroui-controls · v0.5.0

    trait ControlImpl: InputElementImpl + $crate::Upcast<Control>
    

    The overridable members introduced by the class.

    View source

    Members

    get_template_focus_target

    fn get_template_focus_target(this: &Self) -> Option<Ref<Control>>
    

    Gets the element that receives the focus adorner.

    Source

    on_loaded

    fn on_loaded(this: &Self, e: &RoutedEventArgs)
    

    Raises the Loaded event.

    Source

    on_unloaded

    fn on_unloaded(this: &Self, e: &RoutedEventArgs)
    

    Raises the Unloaded event.

    Source

    on_size_changed

    fn on_size_changed(this: &Self, e: &SizeChangedEventArgs)
    

    Raises the SizeChanged event.

    Source

    on_create_automation_peer

    fn on_create_automation_peer(this: &Self) -> Ref<AutomationPeer>
    

    Returns a new, type-specific automation peer implementation for the control.

    Source

    effective_context_flyout

    fn effective_context_flyout(this: &Self, for_request: bool) -> Option<Ref<FlyoutBase>>
    

    The flyout a context request on the control shows (for_request), or that its keys and cancellation dismiss: ContextFlyout by default. A control whose context flyout belongs to another element (a linked text container) resolves it here, and may show none for a request. An addition (docs/porting/DEVIATIONS.md, Popup).

    Source

    context_request_generation

    fn context_request_generation(this: &Self) -> Option<u64>
    

    A counter the control advances when it raises a newer context request of its own while an older one is being handled; None by default. The context menu and flyout drop the older request when it changed. An addition (docs/porting/DEVIATIONS.md, Popup).

    Source

    Trait implementations

    Availability

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