3 <h3 id="TOP">Index</h3>
5 <ul><li><a href="#NAME">NAME</a></li>
6 <li><a href="#SYNOPSIS">SYNOPSIS</a></li>
7 <li><a href="#DESCRIPTION">DESCRIPTION</a></li>
8 <li><a href="#METHODS">METHODS</a>
9 <ul><li><a href="#new_data_gt_surface_data_mask_gt_sur">new( -data => $surface_data, -mask => $surface_mask, x => $x, y => $y)</a></li>
12 <li><a href="#AUTHOR">AUTHOR</a></li>
13 <li><a href="#SEE_ALSO">SEE ALSO</a>
18 <h1 id="NAME">NAME</h1><p><a href="#TOP" class="toplink">Top</a></p>
19 <div id="NAME_CONTENT">
20 <p>SDL::Cursor - a SDL perl extension</p>
23 <h1 id="SYNOPSIS">SYNOPSIS</h1><p><a href="#TOP" class="toplink">Top</a></p>
24 <div id="SYNOPSIS_CONTENT">
25 <pre> $cursor = SDL::Cursor->new(
26 -data => new SDL::Surface "cursor.png",
27 -mask => new SDL::Surface "mask.png",
28 -x => 0, -y => 0 );
34 <h1 id="DESCRIPTION">DESCRIPTION</h1><p><a href="#TOP" class="toplink">Top</a></p>
35 <div id="DESCRIPTION_CONTENT">
36 <p>the SDL::Cursor module handles mouse cursors, and provide the developer to
37 use custom made cursors. Note that the cursors can only be in black and
41 <h1 id="METHODS">METHODS</h1><p><a href="#TOP" class="toplink">Top</a></p>
42 <div id="METHODS_CONTENT">
45 <h2 id="new_data_gt_surface_data_mask_gt_sur">new( -data => $surface_data, -mask => $surface_mask, x => $x, y => $y)</h2>
46 <div id="new_data_gt_surface_data_mask_gt_sur-2">
47 <p>Creates a new cursor. The <C>-data</C> and <C>-mask</C> parameters should be both black and white pictures. The height and width of these surfaces should be a multiple of 8. The <C>-x</C> and <C>-y</C> are the coordinates of the cursor 'hot spot'.</p>
50 <h1 id="AUTHOR">AUTHOR</h1><p><a href="#TOP" class="toplink">Top</a></p>
51 <div id="AUTHOR_CONTENT">
52 <p>David J. Goehrig, Tobias Leich</p>
55 <h1 id="SEE_ALSO">SEE ALSO</h1><p><a href="#TOP" class="toplink">Top</a></p>
56 <div id="SEE_ALSO_CONTENT">
57 <p><cite>perl</cite> <cite>SDL::Mouse</cite></p>