/* call-seq: * window.cursorPosition=( vector2 ) * * Change the position of the mouse cursor. */ static VALUE Window_SetCursorPosition2( VALUE self, VALUE anArgument ) { VALUE argument = Vector2_ForceType( anArgument ); sf::Window *object = NULL; Data_Get_Struct( self, sf::Window, object ); VALUE argumentX = rb_funcall( argument, rb_intern( "x" ), 0 ); VALUE argumentY = rb_funcall( argument, rb_intern( "y" ), 0 ); object->SetCursorPosition( FIX2UINT( argumentX ), FIX2UINT( argumentY ) ); return Qnil; }