MaskedTextBox
struct · ferroui-controls · v0.5.0
struct MaskedTextBox
A text box that restricts its input with a mask.
Members
TYPEto_refascii_only_propertyculture_propertyhide_prompt_on_leave_propertymask_completed_propertymask_full_propertymask_propertyprompt_char_propertyreset_on_prompt_propertyreset_on_space_propertyconstructnewwith_providerascii_onlyset_ascii_onlycultureset_culturehide_prompt_on_leaveset_hide_prompt_on_leavemaskset_maskmask_completedmask_fullmask_providerprompt_charset_prompt_charreset_on_promptset_reset_on_promptreset_on_spaceset_reset_on_space
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<MaskedTextBox>
Returns a strong reference to this object.
ascii_only_property
fn ascii_only_property() -> &'static StyledProperty<bool>
Defines the AsciiOnly property.
culture_property
fn culture_property() -> &'static StyledProperty<Option<CultureInfo>>
Defines the Culture property.
hide_prompt_on_leave_property
fn hide_prompt_on_leave_property() -> &'static StyledProperty<bool>
Defines the HidePromptOnLeave property.
mask_completed_property
fn mask_completed_property() -> &'static DirectProperty<MaskedTextBox, Option<bool>>
Defines the MaskCompleted property.
mask_full_property
fn mask_full_property() -> &'static DirectProperty<MaskedTextBox, Option<bool>>
Defines the MaskFull property.
mask_property
fn mask_property() -> &'static StyledProperty<Option<String>>
Defines the Mask property.
prompt_char_property
fn prompt_char_property() -> &'static StyledProperty<char>
Defines the PromptChar property.
reset_on_prompt_property
fn reset_on_prompt_property() -> &'static StyledProperty<bool>
Defines the ResetOnPrompt property.
reset_on_space_property
fn reset_on_space_property() -> &'static StyledProperty<bool>
Defines the ResetOnSpace property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Initializes a new instance of the MaskedTextBox class.
with_provider
fn with_provider(masked_text_provider: &MaskedTextProvider) -> Ref<Self>
Constructs the masked text box with the settings of the specified provider.
ascii_only
fn ascii_only(self: &Self) -> bool
Whether the masked text box is restricted to accept only ASCII characters. Default value is false.
set_ascii_only
fn set_ascii_only(self: &Self, value: bool)
culture
fn culture(self: &Self) -> Option<CultureInfo>
The culture information associated with the masked text box.
set_culture
fn set_culture(self: &Self, value: Option<CultureInfo>)
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.
set_hide_prompt_on_leave
fn set_hide_prompt_on_leave(self: &Self, value: bool)
mask
fn mask(self: &Self) -> Option<String>
The mask to apply to the text box.
set_mask
fn set_mask(self: &Self, value: Option<&str>)
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.
mask_full
fn mask_full(self: &Self) -> Option<bool>
Specifies whether all inputs (required and optional) have been provided into the mask successfully.
mask_provider
fn mask_provider(self: &Self) -> Option<Rc<RefCell<MaskedTextProvider>>>
The mask provider for the specified mask.
prompt_char
fn prompt_char(self: &Self) -> char
The character used to represent the absence of user input in the masked text box.
set_prompt_char
fn set_prompt_char(self: &Self, value: char)
reset_on_prompt
fn reset_on_prompt(self: &Self) -> bool
Whether selected characters should be reset when the prompt character is pressed.
set_reset_on_prompt
fn set_reset_on_prompt(self: &Self, value: bool)
reset_on_space
fn reset_on_space(self: &Self) -> bool
Whether selected characters should be reset when the space character is pressed.
set_reset_on_space
fn set_reset_on_space(self: &Self, value: bool)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtControlImplExtTextBoxImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<MaskedTextBox>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleVisualImplLayoutableImplInteractiveImplControlImplTemplatedControlImplFerroObjectImplStyledElementImplInputElementImplTextBoxImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.