#[repr(i32)]pub enum InputScopeNameValue {
Show 43 variants
Default = 0,
Url = 1,
EmailSmtpAddress = 5,
PersonalFullName = 7,
CurrencyAmountAndSymbol = 20,
CurrencyAmount = 21,
DateMonthNumber = 23,
DateDayNumber = 24,
DateYear = 25,
Digits = 28,
Number = 29,
Password = 31,
TelephoneNumber = 32,
TelephoneCountryCode = 33,
TelephoneAreaCode = 34,
TelephoneLocalNumber = 35,
TimeHour = 37,
TimeMinutesOrSeconds = 38,
NumberFullWidth = 39,
AlphanumericHalfWidth = 40,
AlphanumericFullWidth = 41,
Hiragana = 44,
KatakanaHalfWidth = 45,
KatakanaFullWidth = 46,
Hanja = 47,
HangulHalfWidth = 48,
HangulFullWidth = 49,
Search = 50,
Formula = 51,
SearchIncremental = 52,
ChineseHalfWidth = 53,
ChineseFullWidth = 54,
NativeScript = 55,
Text = 57,
Chat = 58,
NameOrPhoneNumber = 59,
EmailNameOrAddress = 60,
Maps = 62,
NumericPassword = 63,
NumericPin = 64,
AlphanumericPin = 65,
FormulaNumber = 67,
ChatWithoutEmoji = 68,
}Expand description
A virtual keyboard and input-method hint. Values match the WinUI public ABI; they do not restrict, validate, or obscure the editor’s document contents.
Variants§
Default = 0
Url = 1
EmailSmtpAddress = 5
PersonalFullName = 7
CurrencyAmountAndSymbol = 20
CurrencyAmount = 21
DateMonthNumber = 23
DateDayNumber = 24
DateYear = 25
Digits = 28
Number = 29
Password = 31
TelephoneNumber = 32
TelephoneCountryCode = 33
TelephoneAreaCode = 34
TelephoneLocalNumber = 35
TimeHour = 37
TimeMinutesOrSeconds = 38
NumberFullWidth = 39
AlphanumericHalfWidth = 40
AlphanumericFullWidth = 41
Hiragana = 44
KatakanaHalfWidth = 45
KatakanaFullWidth = 46
Hanja = 47
HangulHalfWidth = 48
HangulFullWidth = 49
Search = 50
Formula = 51
SearchIncremental = 52
ChineseHalfWidth = 53
ChineseFullWidth = 54
NativeScript = 55
Text = 57
Chat = 58
NameOrPhoneNumber = 59
EmailNameOrAddress = 60
Maps = 62
NumericPassword = 63
NumericPin = 64
AlphanumericPin = 65
FormulaNumber = 67
ChatWithoutEmoji = 68
Implementations§
Source§impl InputScopeNameValue
impl InputScopeNameValue
Sourcepub const ALL: [Self; 43]
pub const ALL: [Self; 43]
Every public value in the pinned WinUI InputScopeNameValue enumeration.
Sourcepub fn from_raw(value: i32) -> Option<Self>
pub fn from_raw(value: i32) -> Option<Self>
Converts only defined WinUI values, never manufacturing an invalid enum.
Sourcepub fn parse(value: &str) -> Result<Self, FormatError>
pub fn parse(value: &str) -> Result<Self, FormatError>
Parses a public symbolic name or a defined numeric value.
Sourcepub fn content_type(self) -> TextInputContentType
pub fn content_type(self) -> TextInputContentType
Best matching existing FerroUI content type for hosts without this exact scope. The original scope remains in TextInputOptions for richer hosts.
Trait Implementations§
Source§impl Clone for InputScopeNameValue
impl Clone for InputScopeNameValue
impl Copy for InputScopeNameValue
Source§impl Debug for InputScopeNameValue
impl Debug for InputScopeNameValue
Source§impl Default for InputScopeNameValue
impl Default for InputScopeNameValue
impl Eq for InputScopeNameValue
Source§impl From<InputScopeNameValue> for Option<Ref<InputScope>>
impl From<InputScopeNameValue> for Option<Ref<InputScope>>
Source§fn from(value: InputScopeNameValue) -> Self
fn from(value: InputScopeNameValue) -> Self
Converts to this type from the input type.
Source§impl From<TextInputContentType> for InputScopeNameValue
impl From<TextInputContentType> for InputScopeNameValue
Source§fn from(value: TextInputContentType) -> Self
fn from(value: TextInputContentType) -> Self
Converts to this type from the input type.
Source§impl Hash for InputScopeNameValue
impl Hash for InputScopeNameValue
Source§impl MarkupTyped for InputScopeNameValue
impl MarkupTyped for InputScopeNameValue
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Source§impl PartialEq for InputScopeNameValue
impl PartialEq for InputScopeNameValue
impl StructuralPartialEq for InputScopeNameValue
Auto Trait Implementations§
impl Freeze for InputScopeNameValue
impl RefUnwindSafe for InputScopeNameValue
impl Send for InputScopeNameValue
impl Sync for InputScopeNameValue
impl Unpin for InputScopeNameValue
impl UnsafeUnpin for InputScopeNameValue
impl UnwindSafe for InputScopeNameValue
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more