2 '\" Copyright (c) 1990 The Regents of the University of California.
3 '\" Copyright (c) 1994-1996 Sun Microsystems, Inc.
5 '\" See the file "license.terms" for information on usage and redistribution
6 '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
8 .TH Tk_GetJoinStyle 3 "" Tk "Tk Library Procedures"
12 Tk_GetJoinStyle, Tk_NameOfJoinStyle \- translate between strings and join styles
18 \fBTk_GetJoinStyle(\fIinterp, string, joinPtr\fB)\fR
21 \fBTk_NameOfJoinStyle(\fIjoin\fB)\fR
23 .AS "Tcl_Interp" *joinPtr
24 .AP Tcl_Interp *interp in
25 Interpreter to use for error reporting.
26 .AP "const char" *string in
27 String containing name of join style \- one of
32 \- or a unique abbreviation of one.
34 Pointer to location in which to store X join style corresponding to
37 Join style: one of \fBJoinBevel\fR, \fBJoinMiter\fR, \fBJoinRound\fR.
41 \fBTk_GetJoinStyle\fR places in \fI*joinPtr\fR the X join style
42 corresponding to \fIstring\fR, which will be one of
43 \fBJoinBevel\fR, \fBJoinMiter\fR, or \fBJoinRound\fR.
44 Join styles are typically used in X graphics contexts to indicate
45 how adjacent line segments should be joined together.
46 See the X documentation for information on what each style
49 Under normal circumstances the return value is \fBTCL_OK\fR and
50 \fIinterp\fR is unused.
51 If \fIstring\fR does not contain a valid join style
52 or an abbreviation of one of these names, then an error message is
53 stored in interpreter \fIinterp\fR's result, \fBTCL_ERROR\fR is returned, and
54 \fI*joinPtr\fR is unmodified.
56 \fBTk_NameOfJoinStyle\fR is the logical inverse of \fBTk_GetJoinStyle\fR.
57 Given a join style such as \fBJoinBevel\fR it returns a
58 statically-allocated string corresponding to \fIjoin\fR.
59 If \fIjoin\fR is not a legal join style, then
60 .QW "unknown join style"
63 bevel, join style, miter, round