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

Re: [Sc-devel] relative coordinates in SCUserView



Here is another option:

you can get the relative mouse position by using the view's method mousePosition, which returns a Point. Should that be a normalized Position between 0 and 1 or just pixels?


On Dec 3, 2007, at 10:52 PM, thor wrote:


On 3 Dec 2007, at 21:44, Jan Trutzschler wrote:

Hi,
how about that:
we keep the mouse-actions as they are (with absolute coordinates) and add an <>action to SCUserView, which is called with relative coordinates? Then the mouse actions would stay consistent regarding the other views and one would have the convenience of the relative values...

This would be great, but it would be nice if you had a flag for this so
older code will work as well. Didn't you do that already?

thor

_______________________________________________
Sc-devel mailing list
Sc-devel@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-devel