DRAFT

SDL_TextEditingEvent

A structure that contains keyboard text editing event information.

Data Fields

Uint32

type

SDL_TEXTEDITING

Uint32

windowID

the window with keyboard focus, if any

char

text

the editing text; * at most SDL_TEXTEDITINGEVENT_TEXT_SIZE - 1 characters *

int

start

the start cursor of selected editing text the location to begin editing from

int

length

the length of selected editing text the number of characters to edit from the start point

The text field includes SDL_TEXTEDITINGEVENT_TEXT_SIZE per the header but that would be highly irregular for the formatting of this wiki. Where should it go? There is also a #define SDL_TEXTEDITINGEVENT_TEXT_SIZE (32). Should that info be included anywhere?

Code Examples

You can add your code example here

Remarks

SDL_TextEditingEvent is a member of the SDL_Event union and is used when an event of type SDL_TEXTEDITING is reported. You would access it through the event's edit field.


CategoryStruct, CategoryEvents

SDL_TextEditingEvent (last edited 2011-10-05 22:09:17 by SheenaSmith)

Feedback
Please include your contact information if you'd like to receive a reply.
Submit