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
26                                         ``round''.
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
35

DESCRIPTION

37       Tk_GetJoinStyle  places  in  *joinPtr the X join style corresponding to
38       string, which will be one of JoinBevel, JoinMiter, or JoinRound.   Join
39       styles  are typically used in X graphics contexts to indicate how adja‐
40       cent line segments should be joined together.  See the X  documentation
41       for information on what each style implies.
42
43       Under  normal  circumstances  the  return value is TCL_OK and interp is
44       unused.  If string doesn't contain a valid join style or  an  abbrevia‐
45       tion  of  one  of  these  names,  then  an  error  message is stored in
46       interp->result, TCL_ERROR is returned, and *joinPtr is unmodified.
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  isn't  a  legal  join  style,  then
51       ``unknown join style'' is returned.
52
53

KEYWORDS

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