Wiki Page Content

Differences between revisions 13 and 14
Revision 13 as of 2013-06-16 09:22:00
Size: 1510
Comment: Updated types to match SDL_events.h.
Revision 14 as of 2013-08-08 21:22:15
Size: 1017
Editor: RyanGordon
Comment: Edited
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||
Line 13: Line 12:
||char||'''text'''||the editing text; * at most SDL_TEXTEDITINGEVENT_TEXT_SIZE - 1 characters *||
||Sint32||'''start'''||,,the start cursor of selected editing text,, ^the location to begin editing from^||
||Sint32||'''length'''||,,the length of selected editing text,, ^the number of characters to edit from the start point^||

<<Color2(green,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?)>>
||char||'''text'''||the editing text||
||Sint32||'''start'''||the location to begin editing from||
||Sint32||'''length'''||the number of characters to edit from the start point||

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

Sint32

start

the location to begin editing from

Sint32

length

the number of characters to edit from the start point

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

None: SDL_TextEditingEvent (last edited 2015-01-28 20:27:35 by PhilippWiesemann)

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