logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_TextEditingEvent - Keyboard text editing event structure (event.edit.*)

Availability

       This struct is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                        SDL_TextEditingEvent(3type)

Description

       The start cursor is the position, in UTF-8 characters, where new typing will be inserted into the editing
       text. The length is the number of UTF-8 characters that will be replaced by new typing.

Name

       SDL_TextEditingEvent - Keyboard text editing event structure (event.edit.*)

Synopsis

#include<SDL3/SDL_events.h>typedefstructSDL_TextEditingEvent{SDL_EventTypetype;/**<SDL_EVENT_TEXT_EDITING*/Uint32reserved;Uint64timestamp;/**<Innanoseconds,populatedusingSDL_GetTicksNS()*/SDL_WindowIDwindowID;/**<Thewindowwithkeyboardfocus,ifany*/constchar*text;/**<Theeditingtext*/Sint32start;/**<Thestartcursorofselectededitingtext,or-1ifnotset*/Sint32length;/**<Thelengthofselectededitingtext,or-1ifnotset*/}SDL_TextEditingEvent;

See Also