setting pointer position?



I'm writing a GTK app in which the user can drag icons (buttons)
around in a window.  When an icon hits the window edge or another
button, I stop it's motion in the direction of the obstruction.  I'd
really like to be able to stop the pointer motion in that direction as
well, but I haven't been able to find a way to do it so far.

Does anyone know how this might be done?

*******************************************************
* Gary Scavone                                        *
* Center for Computer Research in Music & Acoustics   *
* Stanford University                                 *
* gary@ccrma.stanford.edu                             *
* http://www-ccrma.stanford.edu/~gary/                *
*******************************************************






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