Sun Microsystems 800-1256-04 — Sun Microsystems 800-1256-04 SunCGI Reference Manual PDF (EN)

Appendix F - Using SunCGI and Pixwins 145 0 the y dimension. Most cgipw functions do not print error messages even if the error warning mask is INTERRUPT or POU. They all return error codes which may be tested. The application program should not use both SunCGI and window system input functions, since both SunCGI and the window system share a common event queue. For example, events handled by a SunCGI function will not be handled by a window system call after the SunCGI call. A list of the cgipw functions and their corresponding SunCGI functions is given in Table F-1 below. !fa function is not included in this table, then use the normal SunCGI function except as described below in Table F-2.

Most of the functions listed below are output and attribute functions; however, the tracking functions are listed so that you can control which surfaces input devices echo on. The arguments of the cgipw functions are the same as those of the SunCGI functions except that the first argument is always a desc argument of type Ccgiwin. desc is a pointer to a pixwin descriptor filled in by the open_cgi_pw function. F.3. cgipw Functions Table F-1 contains a list of functions available in cgipw mode. SunCGI func- tions incompatible with cgipw mode are given in Table F-2.

partial_polygon may be used with cgipw _polygon, but the global polygon list is freed after use by cgipw _polygon, so calls to partial_polygon must be repeated prior to use of cgipw_polygon on another view surface.

0 Table F-1 List of cgipw Functions SunCGI Function Name I cgipw Function Name append_text(flag, tstring) cell_array(p, q, r, dx, dy, colorind) character_expansion_factor(sfac) character_height(height) character_orientation(xup, yup, xbase, ybase) character_path(path) character_set_index(index) character_spacing(spcratio) circle(cl, rad) circular_arc_3pt(cl, c2, c3) circular_arc_3pt_close(cl, c2, c3, close) circuiar_arc_center(cl, c2x, c2y, c3x, c3y, rad) circular_arc_center_close(cl, c2x, c2y, c3x, c3y, rad, close) color_table(istart, clist) define_bundle_index(index) disjoint_polyline(polycoors) ellipse(cl, majx, miny} cgipw_append_text(desc, flag, tstring) cgipw_cell_array(desc, p, q, r, dx, dy, colorind) cgipw_character_expanaion_factor(desc, sfac) cgipw_character_height(desc, height) cgipw_character_orientation(desc, xup, ~p, xbase, ybase) cgipw_character_path(desc, path) cgipw_character_eet_index(desc, index) cgipw_character_spacing(desc, spcratio) cgipw_circle(desc, cl, rad) cgipw_circular_arc_3pt(desc, cl, c2, c3) cgipw_circular_arc_3pt_close(desc, cl, c2, c3, close) cgipw_circular_arc_center(deac:, cl, c2x, c2y, c3x, c3y, rad) cgipw_circular_arc_center_close(deac, cl, c2x, c2y, c3x, c3y, rad, close) cgipw_color_table(desc, iatart, clist) cgipw_define_bundle_index(desc, index) cgipw_disjoint_polyline(desc, polycoors) cgipw ellipse(desc, cl, majx, miny) 0 Version C of 17 March 1986