Keywords: greg-2011

Next: Variables Up: Commands Previous: Changed Contents

### New

- `CHANGE POSITION`
  - support for `Offx[Unitx] Offy[Unity]` is added. See `CREATE WINDOW /POSITION` above for the syntax.

- `CLEAR ALL`
  - clear the content of all the top directories, which clears the content of their windows. Top windows are not destroyed.

- `CREATE WINDOW [/GEOMETRY] [/POSITION]`
  - new options `/GEOMETRY` and `/POSITION` are added:

               CREATE WINDOW [/GEOMETRY Sx[u] Sy[u]]
                             [/POSITION Offx[u] Offy[u]]

    where `Sx` and `Sy` are the window size, `Offx` and `Offy` the offset on the screen. ``u'' (unit) can be ``p'' for pixels, ``%'' for percent of the screen, or ``r'' for the aspect ratio in unit of the other dimension. Default unit is pixel.
  - if `/GEOMETRY` is omitted, the values are read from the logical `WINDOW_GEOMETRY` defined in user's `/.gag.dico` with the same syntax as above. If the logical `WINDOW_GEOMETRY` is not defined, internal defaults are used for the window size.
  - if `/POSITION` is omitted, the choice of the window position is let to the window manager. ``r'' unit is a non-sense and is forbidden for this option.

- `CREATE DIRECTORY [/GEOMETRY] [/POSITION]`
  - new options `/GEOMETRY` and `/POSITION` are added: they apply to the creation of the window of a new top-directory. See `CREATE WINDOW` above for the syntax.

- `DESTROY DIRECTORY DirName`
  - destroys the input directory and its windows attached. Destroying `<GREG` is allowed (as long as user has moved before to another directory).

- `DESTROY WINDOW [DirName [WinNum]]`
  - destroys all the windows attached to the directory `DirName`, i.e. should be all the windows named `DirName Number`. Destroys all the windows of the current working directory by default. If a window number is given, only this window is destroyed.

- `DESTROY ALL`
  - destroys all the top directories and their windows
  - since the user can not be in the root directory (`<`) and can not create segments in it, he would have to create right after a new top directory. A first top directory is thus created implicitely.
  - As a consequence of these two points, the command resets the tree and windows to the startup status.

- `HARDCOPY /DIRECTORY DirName`
  - this new option allows to plot the given GTV directory. Default remains the current working directory.

- `HARDCOPY /FITPAGE`
  - this new option allows to adjust at best the plot on the hardcopy physical size. This is suited for EPS harcopies which are not automatically rotated and scaled anymore.
  - this option is exclusive with the historical option `/EXACT` (which disables the automatic scaling).

- `LUT Name /REVERT`
  - the look-up-table `Name` is loaded and reverted on the fly.

- `REFRESH [DirName [WinNum|ZOOM]]`
  - redraw all (default) or some of the windows (identified by their directory and number/name).
  - Note that all windows are always up-to-date (drawn in real-time thanks to multi-threading). The need of this command is thus very limited. It makes sense only when using segments at different depths (e.g. images) which may be redrawn in an order different from the first drawing (first drawing is done in chronological order in order to remain efficient).

- `GREG1PEN [Ipen] /DASH 8`
  - an 8th dashing style is added. It contains regular dashes, shorter than the 2nd style dashes, and larger than the 3rd (dot) style. Execute `@ gag_demo:demo5.greg` for an overview of all the pen attributes.

Next: Variables Up: Commands Previous: Changed Contents