#[repr(transparent)]pub struct SDL_TextInputType(pub c_uint);Expand description
Text input type.
These are the valid values for SDL_PROP_TEXTINPUT_TYPE_NUMBER. Not every value is valid on every platform, but where a value isn’t supported, a reasonable fallback will be used.
Available Since: This enum is available since SDL 3.2.0.
See Also: SDL_StartTextInputWithProperties
Tuple Fields§
§0: c_uintImplementations§
Source§impl SDL_TextInputType
impl SDL_TextInputType
Sourcepub const SDL_TEXTINPUT_TYPE_TEXT: SDL_TextInputType
pub const SDL_TEXTINPUT_TYPE_TEXT: SDL_TextInputType
< The input is text
Sourcepub const SDL_TEXTINPUT_TYPE_TEXT_NAME: SDL_TextInputType
pub const SDL_TEXTINPUT_TYPE_TEXT_NAME: SDL_TextInputType
< The input is a person’s name
Sourcepub const SDL_TEXTINPUT_TYPE_TEXT_EMAIL: SDL_TextInputType
pub const SDL_TEXTINPUT_TYPE_TEXT_EMAIL: SDL_TextInputType
< The input is an e-mail address
Sourcepub const SDL_TEXTINPUT_TYPE_TEXT_USERNAME: SDL_TextInputType
pub const SDL_TEXTINPUT_TYPE_TEXT_USERNAME: SDL_TextInputType
< The input is a username
Sourcepub const SDL_TEXTINPUT_TYPE_TEXT_PASSWORD_HIDDEN: SDL_TextInputType
pub const SDL_TEXTINPUT_TYPE_TEXT_PASSWORD_HIDDEN: SDL_TextInputType
< The input is a secure password that is hidden
Sourcepub const SDL_TEXTINPUT_TYPE_TEXT_PASSWORD_VISIBLE: SDL_TextInputType
pub const SDL_TEXTINPUT_TYPE_TEXT_PASSWORD_VISIBLE: SDL_TextInputType
< The input is a secure password that is visible
Sourcepub const SDL_TEXTINPUT_TYPE_NUMBER: SDL_TextInputType
pub const SDL_TEXTINPUT_TYPE_NUMBER: SDL_TextInputType
< The input is a number
Sourcepub const SDL_TEXTINPUT_TYPE_NUMBER_PASSWORD_HIDDEN: SDL_TextInputType
pub const SDL_TEXTINPUT_TYPE_NUMBER_PASSWORD_HIDDEN: SDL_TextInputType
< The input is a secure PIN that is hidden
Sourcepub const SDL_TEXTINPUT_TYPE_NUMBER_PASSWORD_VISIBLE: SDL_TextInputType
pub const SDL_TEXTINPUT_TYPE_NUMBER_PASSWORD_VISIBLE: SDL_TextInputType
< The input is a secure PIN that is visible
Trait Implementations§
Source§impl Clone for SDL_TextInputType
impl Clone for SDL_TextInputType
Source§fn clone(&self) -> SDL_TextInputType
fn clone(&self) -> SDL_TextInputType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SDL_TextInputType
impl Debug for SDL_TextInputType
Source§impl Hash for SDL_TextInputType
impl Hash for SDL_TextInputType
Source§impl PartialEq for SDL_TextInputType
impl PartialEq for SDL_TextInputType
impl Copy for SDL_TextInputType
impl Eq for SDL_TextInputType
impl StructuralPartialEq for SDL_TextInputType
Auto Trait Implementations§
impl Freeze for SDL_TextInputType
impl RefUnwindSafe for SDL_TextInputType
impl Send for SDL_TextInputType
impl Sync for SDL_TextInputType
impl Unpin for SDL_TextInputType
impl UnsafeUnpin for SDL_TextInputType
impl UnwindSafe for SDL_TextInputType
Blanket Implementations§
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