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 πŸ’œ


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