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

16 SunCGl Reference Manual 0 Activate View Surface (SunCGI Extension) Cerror activate_vws(name) Cint name; /* view surface name*/ activate_ vws activates the view surface specified by name. Subsequent SunCGI calls affect this view surface. Nothing is displayed on a view surface unless that view surface is active. Since a view surface is active as soon as it is opened, activate_ vws is only need to reactivate a deactivated view surface. Note that activating a view surface may reset the state of SunCGI. Errors ENOTOPOP [5] CGI not in proper state CGI shall be either in state CGOP, VSOP, or VSAC. EVSIDINV [10] Specified view surface name is invalid.

EVSNOTOP [13] Specified view surface not open. EVSISACT [14] Specified view surface is active. Deactivate View Surface (SunCGI Extension) Cerror deactivate_vws(name) Cint name; /* view surface name*/ deactivate_ vws prevents calls to SunCGI functions from having an effect on this view surface. The view surface may be reactivated by activate_vws at a later time without having to be reopened. Note that deactivating a view sur- face may reset the state of SunCGI. 0 Errors ENOTVSAC [4] CGI not in proper state: CGI shall be in state VSAC. EVSIDINV [10] Specified view surface name is invalid. EVSNOTOP [13] Specified view surface not open. EVSNTACT [15] Specified view surface is not active.

Close View Surface (SunCGI Extension) Cerror close_vws(name) Cint name; /* view surface name*/ close_ vws terminates a view surface. Future SunCGI calls have no effect on this view surface. The view surface cannot be reactivated without being reo- pened. Errors ENOTOPOP [5] CGI not in proper state CGI shall be either in state CGOP, VSOP, or VSAC. EVSIDINV [10] Specified view surface name is invalid. EVSNOTOP [13] Specified view surface not open. ENOTCCPW [112] Function or argumem not compatible with standard CGI.

Close CGI (SunCGI Extension) Cerror close_cgi() 0 close_cgi terminates all open view surfaces, and restores the state of the Sun- View to the state that it was in before SunCGI was opened. Future SunCGI calls will have no effect and will generate errors. Ver,ion C of 17 March 1986