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§

source

unsafe fn autocapitalizationType(&self) -> UITextAutocapitalizationType
where Self: Sized + Message,

source

unsafe fn setAutocapitalizationType( &self, autocapitalization_type: UITextAutocapitalizationType )
where Self: Sized + Message,

source

unsafe fn autocorrectionType(&self) -> UITextAutocorrectionType
where Self: Sized + Message,

source

unsafe fn setAutocorrectionType( &self, autocorrection_type: UITextAutocorrectionType )
where Self: Sized + Message,

source

unsafe fn spellCheckingType(&self) -> UITextSpellCheckingType
where Self: Sized + Message,

source

unsafe fn setSpellCheckingType( &self, spell_checking_type: UITextSpellCheckingType )
where Self: Sized + Message,

source

unsafe fn smartQuotesType(&self) -> UITextSmartQuotesType
where Self: Sized + Message,

source

unsafe fn setSmartQuotesType(&self, smart_quotes_type: UITextSmartQuotesType)
where Self: Sized + Message,

source

unsafe fn smartDashesType(&self) -> UITextSmartDashesType
where Self: Sized + Message,

source

unsafe fn setSmartDashesType(&self, smart_dashes_type: UITextSmartDashesType)
where Self: Sized + Message,

source

unsafe fn smartInsertDeleteType(&self) -> UITextSmartInsertDeleteType
where Self: Sized + Message,

source

unsafe fn setSmartInsertDeleteType( &self, smart_insert_delete_type: UITextSmartInsertDeleteType )
where Self: Sized + Message,

source

unsafe fn inlinePredictionType(&self) -> UITextInlinePredictionType
where Self: Sized + Message,

source

unsafe fn setInlinePredictionType( &self, inline_prediction_type: UITextInlinePredictionType )
where Self: Sized + Message,

source

unsafe fn keyboardType(&self) -> UIKeyboardType
where Self: Sized + Message,

source

unsafe fn setKeyboardType(&self, keyboard_type: UIKeyboardType)
where Self: Sized + Message,

source

unsafe fn keyboardAppearance(&self) -> UIKeyboardAppearance
where Self: Sized + Message,

source

unsafe fn setKeyboardAppearance( &self, keyboard_appearance: UIKeyboardAppearance )
where Self: Sized + Message,

source

unsafe fn returnKeyType(&self) -> UIReturnKeyType
where Self: Sized + Message,

source

unsafe fn setReturnKeyType(&self, return_key_type: UIReturnKeyType)
where Self: Sized + Message,

source

unsafe fn enablesReturnKeyAutomatically(&self) -> bool
where Self: Sized + Message,

source

unsafe fn setEnablesReturnKeyAutomatically( &self, enables_return_key_automatically: bool )
where Self: Sized + Message,

source

unsafe fn isSecureTextEntry(&self) -> bool
where Self: Sized + Message,

source

unsafe fn setSecureTextEntry(&self, secure_text_entry: bool)
where Self: Sized + Message,

source

unsafe fn textContentType(&self) -> Retained<UITextContentType>
where Self: Sized + Message,

source

unsafe fn setTextContentType( &self, text_content_type: Option<&UITextContentType> )
where Self: Sized + Message,

source

unsafe fn passwordRules(&self) -> Option<Retained<UITextInputPasswordRules>>
where Self: Sized + Message,

source

unsafe fn setPasswordRules( &self, password_rules: Option<&UITextInputPasswordRules> )
where Self: Sized + Message,

Trait Implementations§

source§

impl ProtocolType for dyn UITextInputTraits

source§

const NAME: &'static str = "UITextInputTraits"

The name of the Objective-C protocol that this type represents.
source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
source§

impl<T> ImplementedBy<T> for dyn UITextInputTraits

Implementations on Foreign Types§

source§

impl<T> UITextInputTraits for ProtocolObject<T>

Implementors§

source§

impl UITextInputTraits for UISearchBar

Available on crate features UIResponder and UIView and UISearchBar only.
source§

impl UITextInputTraits for UISearchTextField

Available on crate features UIControl and UIResponder and UITextField and UIView and UISearchTextField only.
source§

impl UITextInputTraits for UITextField

Available on crate features UIControl and UIResponder and UIView and UITextField only.
source§

impl UITextInputTraits for UITextView

Available on crate features UIResponder and UIScrollView and UIView and UITextView only.