Re: Is there a function to move the cursor to a specific x, y ?



On Fri, 2002-01-11 at 07:27, Jim Parker wrote:
G'Day !

I looked thru the obvious gdk header files and the gdk reference manual,
but nothing seemed to do the job.

I am trying to move the cursor to a specific x, y location on a gtkglarea.

Looking for something like:

      gdk_move_cursor(GtkWidget *widget, gfloat x, gfloat y);

Does such a function exist ?

You'll have to use XWarpPointer() from xlib.  If you use C++, the SDPGTK
library, http://www.k-3d.com, includes several portable methods for
doing this and simulating user input.

Tim Shead





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]