v2026.11.0
All Bundles
Bundle

SDL2 multimedia library for 2D graphics, input handling, audio playback, and window management. Core types: Window, Renderer, Texture, Surface, Event, and Mixer. Compile with -lib sdl2.

TextEditingEvent

Text editing (IME composition) event

Operations

GetLength #

Number of characters to edit from the start

method : public : GetLength() ~ Int

Return

TypeDescription
Intselection length

GetStart #

Where to begin editing within the composition

method : public : GetStart() ~ Int

Return

TypeDescription
Intcursor start

GetText #

The text being composed

method : public : GetText() ~ String

Return

TypeDescription
Stringcomposition text

GetTimestamp #

Timestamp of the event

method : public : GetTimestamp() ~ Int

Return

TypeDescription
Intevent timestamp

GetType #

Event type

method : public : GetType() ~ Int

Return

TypeDescription
IntEventType->SDL_TEXTEDITING

GetWindowID #

The window with keyboard focus, if any

method : public : GetWindowID() ~ Int

Return

TypeDescription
Intwindow ID