diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/gio/gamove.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/gio/gamove.x')
-rw-r--r-- | sys/gio/gamove.x | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sys/gio/gamove.x b/sys/gio/gamove.x new file mode 100644 index 00000000..7c40d1b7 --- /dev/null +++ b/sys/gio/gamove.x @@ -0,0 +1,27 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <gki.h> +include <gio.h> + +# GAMOVE -- Absolute move. Move the pen to the indicated position in +# preparation for a draw. + +procedure gamove (gp, x, y) + +pointer gp # graphics descriptor +real x, y # new position of pen +include "gpl.com" + +begin + if (op > 1) + call gpl_flush() + + if (IS_INDEF(x) || IS_INDEF(y)) { + # Set current position to indefinite. + cx = INDEF + cy = INDEF + } else { + # Set current position to (x,y) in GKI coordinates. + call gpl_wcstogki (gp, x, y, cx, cy) + } +end |