Sun Microsystems 800-1256-04 — Sun Microsystems 800-1256-04 SunCGI Reference Manual PDF

88 SunCGI Reference Manual which are already on the event queue are not rescaled. These events must be o dequeued with either the selective_flush_of_event_queue function orflush_event_queue. Errors ENOTVSAC [4] CGI not in proper state: CGI shall be in state VSAC. EINDNOEX [80] Input device does not exist EINDINIT [81] Input device not initialized.

Track On Cerror track_on(devclass, devnwn, tracktype, trackregion, value) Cdevoff devclass; /* device type*/ Cint devnwn; /* device number*/ Cint tracktype; /* track number*/ Ccoorpair *trackregion; /* window for tracking*/ Cinrep *value; /* device value*/ Tracking functions determine how the measure of an input device is displayed on the view surface. Each class of devices has its own set of possible tracks (given in Table 5-3). Although SunCGI allows certain classes of devices to track simultaneously, all types of input devices are not allowed to track at once. Tracking is not provided in the NO_ EVENTS state unless the track type is PRINTERS_FIST.

track on initiates track (or echo) for a specific device. The trac/aype argu- O· ment specifies the type of track to be used. The trackregion argument is not used; the device tracks in all areas of the view surface. The argument value is used to initialize tracking. The track is initially displayed on the first view sur- face opened. The xypt element of the Cinrep structure must be set to the address of an appli- cation allocated Ccoor and the Ccoor's x and y fields are set to position the cursor. The reference point for IC_ STROKE echos 2 through 5 is the first point in the Sl'ROKE array.

The reference point for STRING_TRACK echo is the append_text concatenation point, and can be changed by calling text or append_text. Errors ENOTVSAC [4] CGI not in proper state: CGI shall be in state VSAC. EINECHON [88] Track already on. EINETNSU [91] Track type not supported. EBADDATA [95] Contents of input data record are invalid. ESTRSIZE [96] Length of initial string is greater than the implementation defined maximum Version C of 17 March 1986 0