File Coverage

lib/SDL2/DropEvent.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::DropEvent {
2 2     2   16 use SDL2::Utils;
  2         4  
  2         18  
3             has
4             type => 'uint32',
5             timestamp => 'uint32',
6             file => 'char[1024]', # char *
7             windowID => 'uint32';
8              
9             =encoding utf-8
10              
11             =head1 NAME
12              
13             SDL2::DropEvent - File drop event structure
14              
15             =head1 SYNOPSIS
16              
17             use SDL2 qw[:all];
18             # TODO: I need to whip up a quick example
19              
20             =head1 DESCRIPTION
21            
22             A SDL2::DropEvent structure is generated to request a file open by the system.
23             This event is enabled by default, you can disable it with L<< C
24             ... )>|SDL::FFI/C >>.
25              
26             Note: if this event is enabled, you must free the filename in the event.
27              
28             =head1 Fields
29              
30             =over
31              
32             =item C - C or C or C or C
33              
34             =item C - In milliseconds, populated using L<< C|SDL2::FFI/C >>
35              
36             =item C - The file name, which should be freed with SDL_free(), is NULL on begin/complete
37              
38             =item C - The window that was dropped on, if any
39              
40             =back
41              
42             =head1 AUTHOR
43              
44             Sanko Robinson Esanko@cpan.orgE
45              
46             =begin stopwords
47              
48              
49             =end stopwords
50              
51             =cut
52              
53             };
54             1;