void preq_stroke3(
Pint ws_id, /* workstation identifier */ Pint stroke_dev, /* stroke device number */ Pin_status *status, /* (out) input status */ Pint *view_index, /* (out) view index */ Ppoint_list3 *stroke /* (out) stroke positions */
)
typedef enum {
PIN_STATUS_NONE,
PIN_STATUS_OK,
PIN_STATUS_NO_IN
} Pin_status;
typedef struct {
Pint num_points; /* number of Ppoint3s in the list */
Ppoint3 *points; /* list of points */
} Ppoint_list3;
typedef struct {
Pfloat x; /* x coordinate */
Pfloat y; /* y coordinate */
Pfloat z; /* z coordinate */
} Ppoint3;
Example:
/* Request stroke on workstation number 1 using device number 1 */ Pint ws_id,stroke_dev;view_index; Pin_status status; Ppoint points[10]; Ppoint_list stroke_pos; ..... ws_id = 1; stroke_dev = 1; stroke_pos.points = points; preq_stroke(ws_id,stroke_dev,&status,&view_index,&stroke_pos); ......