home *** CD-ROM | disk | FTP | other *** search
- /* Copyright (C) 1991 David Elworthy. All rights reserved.
- Distributed by Free Software Foundation, Inc.
-
- This file is part of Ghostscript.
-
- Ghostscript is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY. No author or distributor accepts responsibility
- to anyone for the consequences of using it or for whether it serves any
- particular purpose or works at all, unless he says so in writing. Refer
- to the Ghostscript General Public License for full details.
-
- Everyone is granted permission to copy, modify and redistribute
- Ghostscript, but only under the conditions described in the Ghostscript
- General Public License. A copy of this license is supposed to have been
- given to you along with Ghostscript so you can know your rights and
- responsibilities. It should be in a file named COPYING. Among other
- things, the copyright notice and this notice must be preserved on all
- copies. */
-
- /* gp_arc.h */
-
- /* Ghostscript for Acorn Archimedes (RISC OS): user interface header */
- /* The idea of this is that it can be used regardless of whether the
- Archimedes sprite output device is used or not.
- The menus handled here deal with all the driver independent functions.
- There is in addition a menu entry for device specific options, which
- will cause the function registered by gp_arc_device_menu to be called.
- If this function is NULL, then the menu entry is greyed out.
- */
-
- /* Global data. The device driver should look at gp_arc_fast, and if it is
- TRUE, then call wimpc_checkpoint, to allow for some multitasking.
- */
- extern BOOL gp_arc_fast; /* Are we in fast mode? */
-
-
- /* Function to register the device options menu handler. This gets called
- when there is a hit on the device options submenu. The specified handle,
- and the whole of the hit string are passed to it.
- If it returns FALSE, we assume that something awful has happened, and
- try to quit.
- */
-
- typedef BOOL (*gp_arc_menu_fn)(void *handle, char *hit);
- extern void gp_arc_device_menu(gp_arc_menu_fn f, void *handle);
-
- #if (0)
- /* Sometimes it may be necessary to disable the menus. Calling this function
- allows just that. enable = TRUE enables them.
- */
- extern void gp_arc_enable_menus(BOOL enable);
- #endif
-