Functions | |
void | Show_Location (float *x, float *y) |
void Show_Location | ( | float * | x, | |
float * | y | |||
) |
Returns the raw 2-D position that was indicated by the user.
x | - The 2-D location indicated by the user using a previously- enabled locater device. The lower-left extreme of the locater device will be returned as (-1, -1); the upper-right will be as (+1, +1). Passed by reference always. Returned to caller. | |
y | - |
Use Location events and Show_Location() when you're only interested in raw position information. Use Selection events and Show_Selection() when you're interested in that position as it relates to your picture.
If the current event is not actually a location-type event, or if there is no current event, the system will complain upon a call to Show_Location() .
Show_Location() is not the same function as Show_Selection_Position() . Show Selection Position goes with "selection" events, not location events, and selection events differ in that the position information has been digested and related to a picture on a screen.