1Tk_GetJoinStyle(3)           Tk Library Procedures          Tk_GetJoinStyle(3)
2
3
4
5______________________________________________________________________________
6

NAME

8       Tk_GetJoinStyle,  Tk_NameOfJoinStyle  -  translate  between strings and
9       join styles
10

SYNOPSIS

12       #include <tk.h>
13
14       int
15       Tk_GetJoinStyle(interp, string, joinPtr)
16
17       const char *
18       Tk_NameOfJoinStyle(join)
19

ARGUMENTS

21       Tcl_Interp *interp (in)           Interpreter to use for error  report‐
22                                         ing.
23
24       const char *string (in)           String  containing name of join style
25                                         - one of “bevel”, “miter”, or “round
26                                         - or a unique abbreviation of one.
27
28       int *joinPtr (out)                Pointer to location in which to store
29                                         X join style corresponding to string.
30
31       int join (in)                     Join style: one of  JoinBevel,  Join‐
32                                         Miter, JoinRound.
33______________________________________________________________________________
34

DESCRIPTION

36       Tk_GetJoinStyle  places  in  *joinPtr the X join style corresponding to
37       string, which will be one of JoinBevel, JoinMiter, or JoinRound.   Join
38       styles  are typically used in X graphics contexts to indicate how adja‐
39       cent line segments should be joined together.  See the X  documentation
40       for information on what each style implies.
41
42       Under  normal  circumstances  the  return value is TCL_OK and interp is
43       unused.  If string does not contain a valid join style or an  abbrevia‐
44       tion  of  one of these names, then an error message is stored in inter‐
45       preter interp's result, TCL_ERROR is returned, and *joinPtr is  unmodi‐
46       fied.
47
48       Tk_NameOfJoinStyle  is the logical inverse of Tk_GetJoinStyle.  Given a
49       join style such as JoinBevel it returns a  statically-allocated  string
50       corresponding  to  join.   If  join  is  not  a  legal join style, then
51       “unknown join style” is returned.
52

KEYWORDS

54       bevel, join style, miter, round
55
56
57
58Tk                                                          Tk_GetJoinStyle(3)
Impressum