Wiki Page Content

Differences between revisions 10 and 11
Revision 10 as of 2011-01-24 04:06:40
Size: 1383
Editor: SheenaSmith
Comment: correct typo
Revision 11 as of 2011-05-11 01:23:45
Size: 1487
Editor: SheenaSmith
Comment: update content - event remarks re: union (for consistency); camelcase
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
#pragma disable-camelcase #pragma camelcase off
Line 6: Line 6:
A structure that contains keyboard text editing event ,,structure,, ^information^ (event.edit.*). A structure that contains keyboard text editing event information.
Line 13: Line 13:
||char||'''text[SDL_TEXTEDITINGEVENT_TEXT_SIZE]'''||the editing text; * at most SDL_TEXTEDITINGEVENT_TEXT_SIZE - 1 characters *||
||int||'''start'''||the start cursor of selected editing text||
||int||'''length'''||the length of selected editing text||
<<Color2(green,The '''text''' field currently shows the same info in both columns because it could go in either per the header vs *old 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; * 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^||

<<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?)>>
Line 24: Line 25:
* [[SDL_TextEditingEvent]] is a member of the [[SDL_Event]] union and is used when an event of type SDL_TEXTEDITING is reported. * [[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.

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

green

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