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