SDL_TextInputType(3type)
π SDL_TextInputType β text input type, but make it make sense π
okay bestie, pull up a chair, we're reading the SDL_TextInputType(3type) page from the SDL3 DATATYPES set and honestly? it's short, it's cute, it slays. let's go π«Ά
β¨ NAME β¨
SDL_TextInputType β literally just the text input type. that's it. that's the whole name. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_keyboard.h>
typedef enum SDL_TextInputType
{
SDL_TEXTINPUT_TYPE_TEXT, /**< The input is text */
SDL_TEXTINPUT_TYPE_TEXT_NAME, /**< The input is a person's name */
SDL_TEXTINPUT_TYPE_TEXT_EMAIL, /**< The input is an e-mail address */
SDL_TEXTINPUT_TYPE_TEXT_USERNAME, /**< The input is a username */
SDL_TEXTINPUT_TYPE_TEXT_PASSWORD_HIDDEN, /**< The input is a secure password that is hidden */
SDL_TEXTINPUT_TYPE_TEXT_PASSWORD_VISIBLE, /**< The input is a secure password that is visible */
SDL_TEXTINPUT_TYPE_NUMBER, /**< The input is a number */
SDL_TEXTINPUT_TYPE_NUMBER_PASSWORD_HIDDEN, /**< The input is a secure PIN that is hidden */
SDL_TEXTINPUT_TYPE_NUMBER_PASSWORD_VISIBLE /**< The input is a secure PIN that is visible */
} SDL_TextInputType;
not me reading through all nine of these like a lil menu π and yes, they're all here, none skipped, we don't gatekeep on this account.
π¦ DESCRIPTION π¦
so these? these are the valid values for SDL_PROP_TEXTINPUT_TYPE_NUMBER. that's the whole vibe. π
here's the tea though β not every value is valid on every platform. but where a value isn't supported, a reasonable fallback will be used. so like... you're not gonna crash and burn, the system just picks something sensible instead. no cap. πβ¨
π AVAILABILITY π
this enum is available since SDL 3.2.0. so if you're on anything older, bestie... it's giving nonexistent. π
π SEE ALSO π
SDL_StartTextInputWithProperties(3)β go read that one next, iykyk π
mwah π this page came from Simple Directmedia Layer, version SDL 3.4.18, and it's the SDL_TextInputType(3type) page β if you're checking a date column, that's where the timestamp lives. take care of her, she's iconic. ππ
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms