XieCreateTmp(3X) — Subroutines
Digital
NAME
XieCreateTmp − This routine creates an IDC of type TMP.
C Format
tmp = XieCreateTmp(dpy, x, y, count, tmp_list)
C Argument Information
XieTmp tmp;
Display ∗dpy;
long x;
long y;
unsigned long count;
XieTemplate tmp_list;
RETURN VALUES
The routine returns the identifier of the newly created TMP in the tmp argument. You can free the TMP using the XieFreeResource routine.
PARAMETERS
dpyThe dpy argument specifies the X11 display identifier returned by the XOpenDisplay routine.
xThe x argument specifies the x-coordinate of the template center.
yThe y argument specifies the y-coordinate of the template center.
countThe count argument specifies the number of template records contained in the tmp_list argument.
tmp_listThe tmp_list argument specifies the address of an array of template records of type XieTemplateRec, which are defined to be:
typedef struct {
long x; /∗ x-coordinate of template entry ∗/
long y; /∗ y-coordinate of template entry ∗/
double value; /∗ value of template entry ∗/
} XieTemplateRec, ∗XieTemplate;
DESCRIPTION
This routine creates an IDC of type TMP.
XIE Events and Error Messages
Protocol Messages: X_ieCreateByValue
XIE event returned: None
XieLib errors: None
XieServer errors: BadAlloc -- Insufficient server resources
BadIDChoice -- Invalid identifier
BadValue -- The count is less than or equal to 0