X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=sdlgit%2FSDL_perl.git;a=blobdiff_plain;f=lib%2Fdocs%2FCursor.pod;fp=lib%2Fdocs%2FCursor.pod;h=79511ad8dc724db621957466cb21eca4e5def309;hp=0528766a0845ef2f20766623f7e2c31c65ada29f;hb=472bc0a169396340021b2413bacd40027c274f76;hpb=062699fa850a73730e1c410c3beb6e4c98f3456f diff --git a/lib/docs/Cursor.pod b/lib/docs/Cursor.pod index 0528766..79511ad 100644 --- a/lib/docs/Cursor.pod +++ b/lib/docs/Cursor.pod @@ -1,7 +1,5 @@ =pod - - =head1 NAME SDL::Cursor - a SDL perl extension @@ -26,13 +24,16 @@ white. Creates a new cursor. The -data and -mask parameters should be both black and white pictures. The height and width of these surfaces should be a multiple of 8. The -x and -y are the coordinates of the cursor 'hot spot'. -=head2 warp($x, $y) +=head2 warp(cursor,x, y) -Set the position of the cursor at the $x, $y coordinates in the application window. +Set the position of the SDL::Cursor given as first parameter . +the new postion is set to x, y coordinates in the application window. +SDL::warp trigger a new mouse motion event. +It doesn't returns anything. -=head2 use() +=head2 use(cursor) -Set the cursor as the active cursor. +Set the SDL::Cursor given as first parameter to the active cursor. =head2 get()