Trait objc2_ui_kit::UITextInputTraits
source · pub unsafe trait UITextInputTraits: NSObjectProtocol + IsMainThreadOnly {
Show 28 methods
// Provided methods
unsafe fn autocapitalizationType(&self) -> UITextAutocapitalizationType
where Self: Sized + Message { ... }
unsafe fn setAutocapitalizationType(
&self,
autocapitalization_type: UITextAutocapitalizationType
)
where Self: Sized + Message { ... }
unsafe fn autocorrectionType(&self) -> UITextAutocorrectionType
where Self: Sized + Message { ... }
unsafe fn setAutocorrectionType(
&self,
autocorrection_type: UITextAutocorrectionType
)
where Self: Sized + Message { ... }
unsafe fn spellCheckingType(&self) -> UITextSpellCheckingType
where Self: Sized + Message { ... }
unsafe fn setSpellCheckingType(
&self,
spell_checking_type: UITextSpellCheckingType
)
where Self: Sized + Message { ... }
unsafe fn smartQuotesType(&self) -> UITextSmartQuotesType
where Self: Sized + Message { ... }
unsafe fn setSmartQuotesType(
&self,
smart_quotes_type: UITextSmartQuotesType
)
where Self: Sized + Message { ... }
unsafe fn smartDashesType(&self) -> UITextSmartDashesType
where Self: Sized + Message { ... }
unsafe fn setSmartDashesType(
&self,
smart_dashes_type: UITextSmartDashesType
)
where Self: Sized + Message { ... }
unsafe fn smartInsertDeleteType(&self) -> UITextSmartInsertDeleteType
where Self: Sized + Message { ... }
unsafe fn setSmartInsertDeleteType(
&self,
smart_insert_delete_type: UITextSmartInsertDeleteType
)
where Self: Sized + Message { ... }
unsafe fn inlinePredictionType(&self) -> UITextInlinePredictionType
where Self: Sized + Message { ... }
unsafe fn setInlinePredictionType(
&self,
inline_prediction_type: UITextInlinePredictionType
)
where Self: Sized + Message { ... }
unsafe fn keyboardType(&self) -> UIKeyboardType
where Self: Sized + Message { ... }
unsafe fn setKeyboardType(&self, keyboard_type: UIKeyboardType)
where Self: Sized + Message { ... }
unsafe fn keyboardAppearance(&self) -> UIKeyboardAppearance
where Self: Sized + Message { ... }
unsafe fn setKeyboardAppearance(
&self,
keyboard_appearance: UIKeyboardAppearance
)
where Self: Sized + Message { ... }
unsafe fn returnKeyType(&self) -> UIReturnKeyType
where Self: Sized + Message { ... }
unsafe fn setReturnKeyType(&self, return_key_type: UIReturnKeyType)
where Self: Sized + Message { ... }
unsafe fn enablesReturnKeyAutomatically(&self) -> bool
where Self: Sized + Message { ... }
unsafe fn setEnablesReturnKeyAutomatically(
&self,
enables_return_key_automatically: bool
)
where Self: Sized + Message { ... }
unsafe fn isSecureTextEntry(&self) -> bool
where Self: Sized + Message { ... }
unsafe fn setSecureTextEntry(&self, secure_text_entry: bool)
where Self: Sized + Message { ... }
unsafe fn textContentType(&self) -> Retained<UITextContentType>
where Self: Sized + Message { ... }
unsafe fn setTextContentType(
&self,
text_content_type: Option<&UITextContentType>
)
where Self: Sized + Message { ... }
unsafe fn passwordRules(&self) -> Option<Retained<UITextInputPasswordRules>>
where Self: Sized + Message { ... }
unsafe fn setPasswordRules(
&self,
password_rules: Option<&UITextInputPasswordRules>
)
where Self: Sized + Message { ... }
}
Available on crate feature
UITextInputTraits
only.Provided Methods§
unsafe fn autocapitalizationType(&self) -> UITextAutocapitalizationType
unsafe fn setAutocapitalizationType( &self, autocapitalization_type: UITextAutocapitalizationType )
unsafe fn autocorrectionType(&self) -> UITextAutocorrectionType
unsafe fn setAutocorrectionType( &self, autocorrection_type: UITextAutocorrectionType )
unsafe fn spellCheckingType(&self) -> UITextSpellCheckingType
unsafe fn setSpellCheckingType( &self, spell_checking_type: UITextSpellCheckingType )
unsafe fn smartQuotesType(&self) -> UITextSmartQuotesType
unsafe fn setSmartQuotesType(&self, smart_quotes_type: UITextSmartQuotesType)
unsafe fn smartDashesType(&self) -> UITextSmartDashesType
unsafe fn setSmartDashesType(&self, smart_dashes_type: UITextSmartDashesType)
unsafe fn smartInsertDeleteType(&self) -> UITextSmartInsertDeleteType
unsafe fn setSmartInsertDeleteType( &self, smart_insert_delete_type: UITextSmartInsertDeleteType )
unsafe fn inlinePredictionType(&self) -> UITextInlinePredictionType
unsafe fn setInlinePredictionType( &self, inline_prediction_type: UITextInlinePredictionType )
unsafe fn keyboardType(&self) -> UIKeyboardType
unsafe fn setKeyboardType(&self, keyboard_type: UIKeyboardType)
unsafe fn keyboardAppearance(&self) -> UIKeyboardAppearance
unsafe fn setKeyboardAppearance( &self, keyboard_appearance: UIKeyboardAppearance )
unsafe fn returnKeyType(&self) -> UIReturnKeyType
unsafe fn setReturnKeyType(&self, return_key_type: UIReturnKeyType)
unsafe fn enablesReturnKeyAutomatically(&self) -> bool
unsafe fn setEnablesReturnKeyAutomatically( &self, enables_return_key_automatically: bool )
unsafe fn isSecureTextEntry(&self) -> bool
unsafe fn setSecureTextEntry(&self, secure_text_entry: bool)
unsafe fn textContentType(&self) -> Retained<UITextContentType>
unsafe fn setTextContentType( &self, text_content_type: Option<&UITextContentType> )
unsafe fn passwordRules(&self) -> Option<Retained<UITextInputPasswordRules>>
unsafe fn setPasswordRules( &self, password_rules: Option<&UITextInputPasswordRules> )
Trait Implementations§
source§impl ProtocolType for dyn UITextInputTraits
impl ProtocolType for dyn UITextInputTraits
impl<T> ImplementedBy<T> for dyn UITextInputTraits
Implementations on Foreign Types§
impl<T> UITextInputTraits for ProtocolObject<T>where
T: ?Sized + UITextInputTraits,
Implementors§
impl UITextInputTraits for UISearchBar
Available on crate features
UIResponder
and UIView
and UISearchBar
only.impl UITextInputTraits for UISearchTextField
Available on crate features
UIControl
and UIResponder
and UITextField
and UIView
and UISearchTextField
only.impl UITextInputTraits for UITextField
Available on crate features
UIControl
and UIResponder
and UIView
and UITextField
only.impl UITextInputTraits for UITextView
Available on crate features
UIResponder
and UIScrollView
and UIView
and UITextView
only.