Next: datamap.c
Up: Files
Previous: Files
Go to:
SmartForest Home Printer-friendly:
sf-impl.pdf
This file contains the graphics callbacks for the X Windows environment.
Most events in the map window and the forest window that require a
callback from X Windows have their handler in this file. Examples of events
would include: clicking on a new location in the map window, dragging
with the left mouse button in the forest window to change the elevation,
dragging with the middle mouse button in the forest window to move the
current location, dragging with the right mouse button to rotate the view,
etc. Note that menu selections are not handled by functions in this file
even though they are considered callbacks. Menu selections are handled in
menu.c.
According to the comment in this file, the main purpose of the
functions in this file are to maintain the proper
aspect ratio and cross hair location in the map window. The comment
continues saying the file also tries to
keep the map centered in the window. The comment is erroneous.
These abilities are really implemented in map.c.
Matthew S. Davis
2002-08-07