FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    InputScope

    struct · ferroui-base · v0.5.0

    struct InputScope
    

    An ordered, shared collection of input-method hints. A newly constructed scope has no names, as in WinUI; that falls back to the host's normal policy.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<InputScope>
    

    Returns a strong reference to this object.

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    with_name_value

    fn with_name_value(value: InputScopeNameValue) -> Ref<Self>
    

    Source

    parse

    fn parse(value: &str) -> Result<Ref<Self>, FormatError>
    

    Converts one name, matching WinUI CInputScope::Create. The legacy FerroUI shortcut names remain accepted on this object converter.

    Source

    names

    fn names(self: &Self) -> FerroList<Ref<InputScopeName>>
    

    Source

    snapshot

    fn snapshot(self: &Self) -> Rc<[InputScopeNameValue]>
    

    Captures values, never live objects, across the platform boundary.

    Source

    changed

    fn changed(self: &Self, handler: impl Fn() -> () + 'static) -> Subscription
    

    Raised when the names of the scope, or the value of one of them, change. Dropping the returned guard removes the handler; Subscription::detach keeps it for the life of the scope.

    Source

    as_add_child

    fn as_add_child(this: Ref<Self>) -> Rc<dyn IAddChild<Ref<InputScopeName>>>
    

    Source

    Trait implementations

    Availability

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