|
Author |
Topic: Detecting mouse clicks to particular objects. (Read 1547 times) |
|
stendahl
|
Detecting mouse clicks to particular objects.
« on: Oct 22nd, 2004, 11:17am » |
|
There should be a way to name or identify a group of drawing commands and later detect clicks and other mouse events on those groups. That is, a way to implement buttons, etc. One idea would be to wrap a series of function call with a beginGroup(String)/endGroup() pair. Then one could call getGroup(int x, int y) to get the name of the group with particular screen coordinates. This is crucial for any program that wants to use GUI elements in their application. We have a lot of people separately implementing pieces of this functionality for their first quarter projects here at Ivrea.
|
|
|
|
|