| 1 | package SDL2::TextEditingEvent { | ||
| 2 | use SDL2::Utils; | ||
| 3 | |||
| 4 | # Defined in https://github.com/libsdl-org/SDL/blob/main/include/SDL_events.h | ||
| 5 | sub SDL_TEXTEDITINGEVENT_TEXT_SIZE() {32} | ||
| 6 | has | ||
| 7 | type => 'uint32', | ||
| 8 | timestamp => 'uint32', | ||
| 9 | windowId => 'uint32', | ||
| 10 | text => 'char[' . SDL_TEXTEDITINGEVENT_TEXT_SIZE() . ']', | ||
| 11 | start => 'sint32', | ||
| 12 | length => 'sint32'; | ||
| 13 | |||
| 14 | =encoding utf-8 | ||
| 15 | |||
| 16 | =head1 NAME | ||
| 17 | |||
| 18 | SDL2::TextEditingEvent - Keyboard text editing event structure | ||
| 19 | |||
| 20 | =head1 SYNOPSIS | ||
| 21 | |||
| 22 | use SDL2 qw[:all]; | ||
| 23 | # TODO: I need to whip up a quick example | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | |||
| 28 | =head1 Fields | ||
| 29 | |||
| 30 | =over | ||
| 31 | |||
| 32 | =item C<type> - C<SDL_TEXTEDITING> | ||
| 33 | |||
| 34 | =item C<timestamp> - In milliseconds, populated using L<< C<SDL_GetTicks( )>|SDL2::FFI/C<SDL_GetTicks( )> >> | ||
| 35 | |||
| 36 | =item C<windowID> - The window with keyboard focus, if any | ||
| 37 | |||
| 38 | =item C<text> - The editing text | ||
| 39 | |||
| 40 | =item C<start> - The start cursor of selected editing text | ||
| 41 | |||
| 42 | =item C<length> - The length of selected editing text | ||
| 43 | |||
| 44 | =back | ||
| 45 | |||
| 46 | =head1 AUTHOR | ||
| 47 | |||
| 48 | Sanko Robinson E<lt>sanko@cpan.orgE<gt> | ||
| 49 | |||
| 50 | =begin stopwords | ||
| 51 | |||
| 52 | |||
| 53 | =end stopwords | ||
| 54 | |||
| 55 | =cut | ||
| 56 | |||
| 57 | }; | ||
| 58 | 1; |