Zoom the window to the rectangle given upper left corner and lower right corner.
| 763 | // Zoom the window to the rectangle given upper left corner and |
| 764 | // lower right corner. |
| 765 | void ScrollView::ZoomToRectangle(int x1, int y1, int x2, int y2) { |
| 766 | y1 = TranslateYCoordinate(y1); |
| 767 | y2 = TranslateYCoordinate(y2); |
| 768 | SendMsg("zoomRectangle(%d,%d,%d,%d)", |
| 769 | MIN(x1, x2), MIN(y1, y2), MAX(x1, x2), MAX(y1, y2)); |
| 770 | } |
| 771 | |
| 772 | // Send an image of type Pix. |
| 773 | void ScrollView::Image(struct Pix* image, int x_pos, int y_pos) { |
no outgoing calls
no test coverage detected