SDL_TextEditingEvent

Name

SDL_TextEditingEvent -- Text editing event structure

Structure Definition

#define SDL_TEXTEDITINGEVENT_TEXT_SIZE (32)
typedef struct SDL_TextEditingEvent
{
    Uint8 type;
    char text[SDL_TEXTEDITINGEVENT_TEXT_SIZE];
    int start;
    int length;
} SDL_TextEditingEvent;

Structure Data

type

SDL_SDL_TEXTEDITING

text

The input text, at most SDL_TEXTEDITINGEVENT_TEXT_SIZE - 1 characters

start

The start cursor of selected editing text

length

The length of selected editing text

Description

SDL_TextEditingEvent is a member of the SDL_Event union and is used when an event of type SDL_TEXTEDITING is reported.

See Also

SDL_Event, SDL_StartTextInput, SDL_StopTextInput, SDL_TextInputEvent

SDL_TextEditingEvent (last edited 2009-08-05 14:07:11 by 221)