SDL_Capitalization(3type)
π SDL_Capitalization(3type) π
okay bestie, so you know how sometimes your phone just knows to capitalize the first letter of a sentence and you're like "how did it do that π"? yeah. this is the enum behind that whole vibe. it's called SDL_Capitalization, it lives in the SDL3 datatypes corner of the manual, and it's literally the list of ways autocapitalization can happen. no cap.
β¨ NAME β¨
SDL_Capitalization β the auto capitalization type π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_keyboard.h>
typedef enum SDL_Capitalization
{
SDL_CAPITALIZE_NONE, /**< No auto-capitalization will be done */
SDL_CAPITALIZE_SENTENCES, /**< The first letter of sentences will be capitalized */
SDL_CAPITALIZE_WORDS, /**< The first letter of words will be capitalized */
SDL_CAPITALIZE_LETTERS /**< All letters will be capitalized */
} SDL_Capitalization;
π¦ DESCRIPTION π¦
so these are the valid values for SDL_PROP_TEXTINPUT_CAPITALIZATION_NUMBER. that's the whole point of this enum, she exists to feed that property π«Ά
and here's the tea: not every value is valid on every platform. some platforms just don't support some of these modes. but don't spiral β where a value isn't supported, a reasonable fallback will be used. so it's giving "we got you" energy, not "your app is broken" energy β¨
the lineup, one by one:
SDL_CAPITALIZE_NONEβ no auto-capitalization will be done. the keyboard keeps its hands to itself πSDL_CAPITALIZE_SENTENCESβ the first letter of sentences will be capitalized. classic main character move, every new sentence gets its little crown πSDL_CAPITALIZE_WORDSβ the first letter of words will be capitalized. every single word gets the glow-up, very Title Case of it πSDL_CAPITALIZE_LETTERSβ all letters will be capitalized. ALL OF THEM. it's giving SCREAMING, but make it a documented feature π₯
π AVAILABILITY π
this enum is available since SDL 3.2.0. so if you're on anything older, she has not been born yet, sorry babe π
π SEE ALSO π
and that's the whole page, bestie, you ate it π go forth and capitalize responsibly β¨
Simple Directmedia Layer Β· SDL 3.4.18 Β· SDL_Capitalization(3type) β mwah, love u, bye π
π¦ 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