FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TranslateExtension

    struct · ferroui-protranslate · v0.5.0

    struct TranslateExtension
    

    {pt:Translate Key}: a native one-way binding that follows culture and service changes.

    View source

    Members

    new

    fn new() -> Rc<Self>
    

    Source

    with_key

    fn with_key(key: &str) -> Rc<Self>
    

    Source

    key

    fn key(self: &Self) -> String
    

    Source

    set_key

    fn set_key(self: &Self, value: String)
    

    Source

    fallback_value

    fn fallback_value(self: &Self) -> Option<BoxedValue>
    

    Source

    set_fallback_value

    fn set_fallback_value(self: &Self, value: Option<BoxedValue>)
    

    Source

    set_fallback_text

    fn set_fallback_text(self: &Self, value: Option<String>)
    

    Convenience setter for a textual fallback. Object fallbacks retain identity.

    Source

    string_format

    fn string_format(self: &Self) -> Option<String>
    

    Source

    set_string_format

    fn set_string_format(self: &Self, value: Option<String>)
    

    Source

    set_source

    fn set_source(self: &Self, value: Option<TranslationBindingSource>)
    

    Source

    source

    fn source(self: &Self) -> Option<TranslationBindingSource>
    

    Source

    provide_value

    fn provide_value(self: &Rc<Self>, service_provider: &Rc<dyn IServiceProvider>) -> Rc<dyn BindingBase>
    

    Source

    Trait implementations

    Availability

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