FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextInputContentType

    enum · ferroui-base · v0.5.0

    enum TextInputContentType
    

    The kind of content a text input expects, which lets the platform show an appropriate (on-screen) keyboard.

    View source

    Members

    Normal

    Normal = 0
    

    Default keyboard for the user's selected input method.

    Source

    Alpha

    Alpha = 1
    

    Display a keyboard that only has alphabetic characters.

    Source

    Digits

    Digits = 2
    

    Display a numeric keypad only capable of numbers, i.e. phone number.

    Source

    Pin

    Pin = 3
    

    Display a numeric keypad for inputting a PIN.

    Source

    Number

    Number = 4
    

    Display a numeric keypad capable of inputting numbers including decimal separator and sign.

    Source

    Email

    Email = 5
    

    Display a keyboard for entering an email address.

    Source

    Url

    Url = 6
    

    Display a keyboard for entering a URL.

    Source

    Name

    Name = 7
    

    Display a keyboard for entering a person's name.

    Source

    Password

    Password = 8
    

    Display a keyboard for entering sensitive data.

    Source

    Social

    Social = 9
    

    Display a keyboard suitable for #tag and @mentions. Not available on every platform, will fallback to a suitable keyboard when not available.

    Source

    Search = 10
    

    Display a keyboard for entering a search keyword.

    Source

    Trait implementations

    Availability

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