blib/lib/SDL2/MouseButtonEvent.pm untested

filter: Statementstmt 0.0% 0 / 4 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 5 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 package SDL2::MouseButtonEvent {
2 use SDL2::Utils;
3 has
4 type => 'uint32',
5 timestamp => 'uint32',
6 windowID => 'uint32',
7 which => 'uint32',
8 button => 'uint8',
9 state => 'uint8',
10 clicks => 'uint8',
11 padding1 => 'uint8',
12 x => 'sint32',
13 y => 'sint32';
14  
15 =encoding utf-8
16  
17 =head1 NAME
18  
19 SDL2::MouseButtonEvent - Mouse button event structure
20  
21 =head1 SYNOPSIS
22  
23 use SDL2 qw[:all];
24 # TODO: I need to whip up a quick example
25  
26 =head1 DESCRIPTION
27
28  
29 =head1 Fields
30  
31 =over
32  
33 =item C<type> - C<SDL_MOUSEBUTTONDOWN> or C<SDL_MOUSEBUTTONUP>
34  
35 =item C<timestamp> - In milliseconds, populated using L<< C<SDL_GetTicks( )>|SDL2::FFI/C<SDL_GetTicks( )> >>
36  
37 =item C<windowID> - The window with mouse focus, if any
38  
39 =item C<which> - The mouse instance id, or C<SDL_TOUCH_MOUSEID>
40  
41 =item C<button> - The mouse button index
42  
43 =item C<state> - C<SDL_PRESSED> or C<SDL_RELEASED>
44  
45 =item C<clicks> - C<1> for single-click, C<2> for double-click, etc.
46  
47 =item C<padding1>
48  
49 =item C<x> - X coordinate, relative to window
50  
51 =item C<y> - Y coordinate, relative to window
52  
53 =back
54  
55 =head1 AUTHOR
56  
57 Sanko Robinson E<lt>sanko@cpan.orgE<gt>
58  
59 =begin stopwords
60  
61  
62 =end stopwords
63  
64 =cut
65  
66 };
67 1;