added set_cursor and get_cursor to show/hide the mouse cursor.