Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Starbase Device Drivers Manual - Vol2: HP 9000 Series 700 Computers > Chapter 5 Computer Graphics Metafile

Parameters for gescape

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

The hpcgm driver recognizes a number of gescape functions. Following are the supported functions and definition of when they may be invoked.

After gopen, but before any other graphical activity:

  • CGMESC_ENCODING — Selects CGM encoding.

  • CGMESC_MET_NAME — Defines metafile name.

  • CGMESC_TOP_MODE — Selects TOP mode for metafile generation.

  • CGMESC_VDC_PREC — Selects VDC integer precision.

Anytime after gopen:

  • CGMESC_APPL_DATA — Generates CGM application data element.

  • CGMESC_ESCAPE_ELT — Generates CGM escape element.

  • CGMESC_FONT_IX — Allows application to select fonts.

  • CGMESC_MESSAGE — Generates CGM message element.

  • CGMESC_PIC_NAME — Defines picture name.

For information on CGM elements, read the section “CGM Elements Produced by the HP CGM Driver ” in Appendix A of this manual.

The gescape function allows the application program to input or output to a device in a device dependent manner. The syntax for the gescape function is:

/* gescape_arg is typedef defined in starbase.c.h */
.
.
.
gescape_arg arg1, arg2;
.
.
.
gescape (fildes, ESCAPE_OP_CODE, &arg1, &arg2);

A fildes is the file descriptor of the device to be accessed (returned by the Starbase call gopen).

The 〈op〉 is the opcode that specifies the action to be performed.

The arg1 and arg2 parameters provide information needed by a gescape.

A detailed discussion on each of the gescape functions can be found in Appendix A of this manual.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.