| 1 | <HTML> |
| 2 | <HEAD> |
| 3 | <STYLE type="text/css"> |
| 4 | H1 {color: black } |
| 5 | H2 {color: maroon } |
| 6 | H3 {color: #007090 } |
| 7 | A.head:link {color: #0060a0 } |
| 8 | A.head:visited {color: #3040c0 } |
| 9 | A.head:active {color: white } |
| 10 | A.head:hover {color: yellow } |
| 11 | A.red:link {color: red } |
| 12 | A.red:visited {color: maroon } |
| 13 | A.red:active {color: yellow } |
| 14 | </STYLE> |
| 15 | </HEAD> |
| 16 | <TITLE>Magic-7.3 Command Reference</TITLE> |
| 17 | <BODY BACKGROUND=graphics/blpaper.gif> |
| 18 | <H1> <IMG SRC=graphics/magic_title2.gif ALT="Magic VLSI Layout Tool Version 7.3"> |
| 19 | <IMG SRC=graphics/magic_OGL_sm.gif ALIGN="top" ALT="*"> </H1> |
| 20 | |
| 21 | <H2>setpoint</H2> |
| 22 | <HR> |
| 23 | Set the value of the cursor reference point in a specific window. |
| 24 | <HR> |
| 25 | |
| 26 | <H3>Usage:</H3> |
| 27 | <BLOCKQUOTE> |
| 28 | <B>setpoint</B> [<I>x y</I> [<I>window_id</I>] <BR><BR> |
| 29 | <BLOCKQUOTE> |
| 30 | where <I>x</I> and <I>y</I> are screen coordinates and |
| 31 | <I>window_id</I> is the identifying number for a layout |
| 32 | window. |
| 33 | </BLOCKQUOTE> |
| 34 | </BLOCKQUOTE> |
| 35 | |
| 36 | <H3>Summary:</H3> |
| 37 | <BLOCKQUOTE> |
| 38 | The <B>setpoint</B> command forces the reference point for a specific |
| 39 | window. Each command that executes relative to a window must be able |
| 40 | to translate from the pointer position to a layout coordinate. |
| 41 | Commands that are executed from a script or from the command-line |
| 42 | may not have access to the pointer, but can set the reference point |
| 43 | with this command so that the effect of the command is predictable. <P> |
| 44 | |
| 45 | Normally, in interactive this command is not used. However, |
| 46 | scripts that open more than one window need to specify which one |
| 47 | is to take the action of the command. In the Tcl/Tk version, this |
| 48 | can be done by using the <I>tk_path_name</I> command to pass a |
| 49 | command to a specific window. The non-Tcl/Tk version, and the Tcl/Tk |
| 50 | version using the "-dnull" option on the command line (i.e., no |
| 51 | graphics package initialized) must use the <B>setpoint</B> command |
| 52 | to track windows. Although possible, it is generally a bad idea |
| 53 | for a script running in batch mode ("-dnull") to create and access |
| 54 | multiple windows, since the window structures have no useful |
| 55 | function outside of a graphics environment. Nevertheless, it is |
| 56 | important to realize that the <B>openwindow</B> command <I>will</I> |
| 57 | generate multiple virtual windows in a batch-mode environment, and |
| 58 | these can only be separately accessed using the <B>setpoint</B> |
| 59 | command. |
| 60 | </BLOCKQUOTE> |
| 61 | |
| 62 | <H3>Implementation Notes:</H3> |
| 63 | <BLOCKQUOTE> |
| 64 | <B>setpoint</B> is implemented as a built-in window command in <B>magic</B>. |
| 65 | </BLOCKQUOTE> |
| 66 | |
| 67 | <H3>Bugs:</H3> |
| 68 | <BLOCKQUOTE> |
| 69 | The use of the window ID number is unique to this command and should |
| 70 | be a window name like every other window-related command. Likewise, |
| 71 | scripts would best make use of this command if the position were in |
| 72 | layout coordinates, and <B>magic</B> translated them back to screen |
| 73 | coordinates in the indicated window to set the reference point. |
| 74 | </BLOCKQUOTE> |
| 75 | |
| 76 | <P><IMG SRC=graphics/line1.gif><P> |
| 77 | <TABLE BORDER=0> |
| 78 | <TR> |
| 79 | <TD> <A HREF=commands.html>Return to command index</A> |
| 80 | </TR> |
| 81 | </TABLE> |
| 82 | <P><I>Last updated:</I> December 4, 2005 at 9:02pm <P> |
| 83 | </BODY> |
| 84 | </HTML> |