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
27       int *joinPtr (out)                Pointer to location in which to store
28                                         X join style corresponding to string.
29
30       int join (in)                     Join  style:  one of JoinBevel, Join‐
31                                         Miter, JoinRound.
32_________________________________________________________________
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
45       interp->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
50       “unknown join style” is returned.
51
52

KEYWORDS

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