FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MaskedTextBox

    struct · ferroui-controls · v0.5.0

    struct MaskedTextBox
    

    A text box that restricts its input with a mask.

    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<MaskedTextBox>
    

    Returns a strong reference to this object.

    Source

    ascii_only_property

    fn ascii_only_property() -> &'static StyledProperty<bool>
    

    Defines the AsciiOnly property.

    Source

    culture_property

    fn culture_property() -> &'static StyledProperty<Option<CultureInfo>>
    

    Defines the Culture property.

    Source

    hide_prompt_on_leave_property

    fn hide_prompt_on_leave_property() -> &'static StyledProperty<bool>
    

    Defines the HidePromptOnLeave property.

    Source

    mask_completed_property

    fn mask_completed_property() -> &'static DirectProperty<MaskedTextBox, Option<bool>>
    

    Defines the MaskCompleted property.

    Source

    mask_full_property

    fn mask_full_property() -> &'static DirectProperty<MaskedTextBox, Option<bool>>
    

    Defines the MaskFull property.

    Source

    mask_property

    fn mask_property() -> &'static StyledProperty<Option<String>>
    

    Defines the Mask property.

    Source

    prompt_char_property

    fn prompt_char_property() -> &'static StyledProperty<char>
    

    Defines the PromptChar property.

    Source

    reset_on_prompt_property

    fn reset_on_prompt_property() -> &'static StyledProperty<bool>
    

    Defines the ResetOnPrompt property.

    Source

    reset_on_space_property

    fn reset_on_space_property() -> &'static StyledProperty<bool>
    

    Defines the ResetOnSpace property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Initializes a new instance of the MaskedTextBox class.

    Source

    with_provider

    fn with_provider(masked_text_provider: &MaskedTextProvider) -> Ref<Self>
    

    Constructs the masked text box with the settings of the specified provider.

    Source

    ascii_only

    fn ascii_only(self: &Self) -> bool
    

    Whether the masked text box is restricted to accept only ASCII characters. Default value is false.

    Source

    set_ascii_only

    fn set_ascii_only(self: &Self, value: bool)
    

    Source

    culture

    fn culture(self: &Self) -> Option<CultureInfo>
    

    The culture information associated with the masked text box.

    Source

    set_culture

    fn set_culture(self: &Self, value: Option<CultureInfo>)
    

    Source

    hide_prompt_on_leave

    fn hide_prompt_on_leave(self: &Self) -> bool
    

    Whether the prompt character is hidden when the masked text box loses focus.

    Source

    set_hide_prompt_on_leave

    fn set_hide_prompt_on_leave(self: &Self, value: bool)
    

    Source

    mask

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

    The mask to apply to the text box.

    Source

    set_mask

    fn set_mask(self: &Self, value: Option<&str>)
    

    Source

    mask_completed

    fn mask_completed(self: &Self) -> Option<bool>
    

    Specifies whether the test string required input positions, as specified by the mask, have all been assigned.

    Source

    mask_full

    fn mask_full(self: &Self) -> Option<bool>
    

    Specifies whether all inputs (required and optional) have been provided into the mask successfully.

    Source

    mask_provider

    fn mask_provider(self: &Self) -> Option<Rc<RefCell<MaskedTextProvider>>>
    

    The mask provider for the specified mask.

    Source

    prompt_char

    fn prompt_char(self: &Self) -> char
    

    The character used to represent the absence of user input in the masked text box.

    Source

    set_prompt_char

    fn set_prompt_char(self: &Self, value: char)
    

    Source

    reset_on_prompt

    fn reset_on_prompt(self: &Self) -> bool
    

    Whether selected characters should be reset when the prompt character is pressed.

    Source

    set_reset_on_prompt

    fn set_reset_on_prompt(self: &Self, value: bool)
    

    Source

    reset_on_space

    fn reset_on_space(self: &Self) -> bool
    

    Whether selected characters should be reset when the space character is pressed.

    Source

    set_reset_on_space

    fn set_reset_on_space(self: &Self, value: bool)
    

    Source

    Trait implementations

    Availability

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