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.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<InputScope>
Returns a strong reference to this object.
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
with_name_value
fn with_name_value(value: InputScopeNameValue) -> Ref<Self>
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.
names
fn names(self: &Self) -> FerroList<Ref<InputScopeName>>
snapshot
fn snapshot(self: &Self) -> Rc<[InputScopeNameValue]>
Captures values, never live objects, across the platform boundary.
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.
as_add_child
fn as_add_child(this: Ref<Self>) -> Rc<dyn IAddChild<Ref<InputScopeName>>>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<InputScope>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplDrop
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.