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 un‐
43       used.  If string does not contain a valid join style or an abbreviation
44       of  one  of these names, then an error message is stored in interpreter
45       interp's result, TCL_ERROR is returned, and *joinPtr is unmodified.
46
47       Tk_NameOfJoinStyle is the logical inverse of Tk_GetJoinStyle.  Given  a
48       join  style  such as JoinBevel it returns a statically-allocated string
49       corresponding to join.  If join is not a legal join  style,  then  “un‐
50       known join style” is returned.
51

KEYWORDS

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