NAME
TkGetJoinStyle, TkNameOfJoinStyle - translate between strings and
join stylesSYNOPSIS
##iinncclluuddee <
int TTkkGGeettJJooiinnSSttyyllee((interp, string, joinPtr)) CONST char * TTkkNNaammeeOOffJJooiinnSSttyyllee((join)) AARRGGUUMMEENNTTSS> TclInterp *interp (in) Interpreter to use for error report-
ing. CONST char *string (in) String containing name of join style: one of ``bevel'', ``miter'', or ``round''. int *joinPtr (out) Pointer to location in which to store X join style corresponding to string.int join (in) Join style: one of JJooiinnBBeevveell, JJooiinn-
MMiitteerr, JJooiinnRRoouunndd.DESCRIPTION
TTkkGGeettJJooiinnSSttyyllee places in *joinPtr the X join style corresponding to string, which will be one of JJooiinnBBeevveell, JJooiinnMMiitteerr, or JJooiinnRRoouunndd. Joinstyles are typically used in X graphics contexts to indicate how adja-
cent line segments should be joined together. See the X documentation for information on what each style implies. Under normal circumstances the return value is TTCCLLOOKK and interp isunused. If string doesn't contain a valid join style or an abbrevia-
tion of one of these names, then an error message is stored ininterp->result, TTCCLLEERRRROORR is returned, and *joinPtr is unmodified.
TTkkNNaammeeOOffJJooiinnSSttyyllee is the logical inverse of TTkkGGeettJJooiinnSSttyyllee. Given ajoin style such as JJooiinnBBeevveell it returns a statically-allocated string
corresponding to join. If join isn't a legal join style, then ``unknown join style'' is returned. KKEEYYWWOORRDDSS bevel, join style, miter, round Tk TkGetJoinStyle(3)