#[repr(transparent)]pub struct SDL_TextInputType(pub c_int);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.
§Availability
This enum is available since SDL 3.2.0.
§See also
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
TEXT | SDL_TEXTINPUT_TYPE_TEXT | The input is text |
TEXT_NAME | SDL_TEXTINPUT_TYPE_TEXT_NAME | The input is a person’s name |
TEXT_EMAIL | SDL_TEXTINPUT_TYPE_TEXT_EMAIL | The input is an e-mail address |
TEXT_USERNAME | SDL_TEXTINPUT_TYPE_TEXT_USERNAME | The input is a username |
TEXT_PASSWORD_HIDDEN | SDL_TEXTINPUT_TYPE_TEXT_PASSWORD_HIDDEN | The input is a secure password that is hidden |
TEXT_PASSWORD_VISIBLE | SDL_TEXTINPUT_TYPE_TEXT_PASSWORD_VISIBLE | The input is a secure password that is visible |
NUMBER | SDL_TEXTINPUT_TYPE_NUMBER | The input is a number |
NUMBER_PASSWORD_HIDDEN | SDL_TEXTINPUT_TYPE_NUMBER_PASSWORD_HIDDEN | The input is a secure PIN that is hidden |
NUMBER_PASSWORD_VISIBLE | SDL_TEXTINPUT_TYPE_NUMBER_PASSWORD_VISIBLE | The input is a secure PIN that is visible |
Tuple Fields§
§0: c_intImplementations§
Source§impl SDL_TextInputType
impl SDL_TextInputType
Sourcepub const TEXT_EMAIL: Self
pub const TEXT_EMAIL: Self
The input is an e-mail address
Sourcepub const TEXT_USERNAME: Self
pub const TEXT_USERNAME: Self
The input is a username
Sourcepub const TEXT_PASSWORD_HIDDEN: Self
pub const TEXT_PASSWORD_HIDDEN: Self
The input is a secure password that is hidden
Sourcepub const TEXT_PASSWORD_VISIBLE: Self
pub const TEXT_PASSWORD_VISIBLE: Self
The input is a secure password that is visible
Sourcepub const NUMBER_PASSWORD_HIDDEN: Self
pub const NUMBER_PASSWORD_HIDDEN: Self
The input is a secure PIN that is hidden
Sourcepub const NUMBER_PASSWORD_VISIBLE: Self
pub const NUMBER_PASSWORD_VISIBLE: Self
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
Available on crate feature debug-impls only.
impl Debug for SDL_TextInputType
Available on crate feature
debug-impls only.Source§impl Default for SDL_TextInputType
impl Default for SDL_TextInputType
Source§fn default() -> SDL_TextInputType
fn default() -> SDL_TextInputType
Returns the “default value” for a type. Read more
Source§impl From<SDL_TextInputType> for c_int
impl From<SDL_TextInputType> for c_int
Source§fn from(value: SDL_TextInputType) -> Self
fn from(value: SDL_TextInputType) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_TextInputType
Available on crate feature metadata only.
impl GroupMetadata for SDL_TextInputType
Available on crate feature
metadata only.Source§const GROUP_METADATA: &'static Group
const GROUP_METADATA: &'static Group
Metadata for this group
Source§impl Hash for SDL_TextInputType
impl Hash for SDL_TextInputType
Source§impl Ord for SDL_TextInputType
impl Ord for SDL_TextInputType
Source§fn cmp(&self, other: &SDL_TextInputType) -> Ordering
fn cmp(&self, other: &SDL_TextInputType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<SDL_TextInputType> for c_int
impl PartialEq<SDL_TextInputType> for c_int
Source§impl PartialEq<i32> for SDL_TextInputType
impl PartialEq<i32> for SDL_TextInputType
Source§impl PartialEq for SDL_TextInputType
impl PartialEq for SDL_TextInputType
Source§impl PartialOrd for SDL_TextInputType
impl PartialOrd 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 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