File Coverage

lib/SDL2/TextEditingEvent.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package SDL2::TextEditingEvent {
2 2     2   17 use SDL2::Utils;
  2         4  
  2         23  
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 - C
33              
34             =item C - In milliseconds, populated using L<< C|SDL2::FFI/C >>
35              
36             =item C - The window with keyboard focus, if any
37              
38             =item C - The editing text
39              
40             =item C - The start cursor of selected editing text
41              
42             =item C - The length of selected editing text
43              
44             =back
45              
46             =head1 AUTHOR
47              
48             Sanko Robinson Esanko@cpan.orgE
49              
50             =begin stopwords
51              
52              
53             =end stopwords
54              
55             =cut
56              
57             };
58             1;