09.03.2015 Views

Unicon Language Reference Clinton L. Jeffery Shamim Mohamed ...

Unicon Language Reference Clinton L. Jeffery Shamim Mohamed ...

Unicon Language Reference Clinton L. Jeffery Shamim Mohamed ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

&pick : string*<br />

pick 3D objects<br />

&pick generates the object IDs selected at point (&x,&y) at the most recent Event(), if the event<br />

was read from a 3D window with the attribute pick=on.<br />

&rdrag : integer<br />

right mouse button drag<br />

&rdrag produces the integer that indicates a right button drag event.<br />

&resize : integer<br />

&resize produces the integer that indicates a window resize event.<br />

window resize event<br />

&row : integer<br />

mouse location, text row<br />

&row is the mouse location in text rows during the most recent Event(). If &row is assigned, &y<br />

gets a corresponding pixel location in the current font on &window.<br />

&rpress : integer<br />

right mouse button press<br />

&rpress produces the integer that indicates a right button press event.<br />

&rrelease : integer<br />

right mouse button release<br />

&rrelease produces the integer that indicates a right button release event.<br />

&shift : integer<br />

shift modifier flag<br />

&shift produces the null value if the shift key was pressed at the time of the most recently processed<br />

event, otherwise &shift fails.<br />

&window : window<br />

default window<br />

&window is the default window argument for all window functions. &window may be assigned<br />

any value of type window.<br />

&x : integer<br />

mouse location, horizontal<br />

&x is the horizontal mouse location in pixels during the most recent Event(). If &x is assigned,<br />

&col gets a corresponding text coordinate in the current font on &window.<br />

&y : integer<br />

mouse location, vertical<br />

&y is the vertical mouse location in pixels during the most recent Event(). If &y is assigned,<br />

&row gets a corresponding text coordinate in the current font on &window.<br />

6 Control Structures and Reserved Words<br />

<strong>Unicon</strong> has many reserved words. Some are used in declarations, but most are used in control<br />

structures. This section summarizes the syntax and semantics introduced by all the reserved words<br />

of the language. The reserved word under discussion is written in a bold font. The surrounding<br />

syntax uses square brackets for optional items and an asterisk for items that may repeat.<br />

break expr<br />

exit loop<br />

The break expression exits the nearest enclosing loop. expr is evaluated and treated as the result<br />

of the entire loop expression. If expr is another break expression, multiple loops will be exited.<br />

9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!