Seth Woolley's Man Viewer

Tk_GetJoinStyle(3) - Tk_GetJoinStyle, Tk_NameOfJoinStyle - translate between strings and join styles - man 3 Tk_GetJoinStyle

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

Tk_GetJoinStyle(3)           Tk Library Procedures          Tk_GetJoinStyle(3)



______________________________________________________________________________

NAME
       Tk_GetJoinStyle,  Tk_NameOfJoinStyle  -  translate  between strings and
       join(1,n) styles

SYNOPSIS
       #include <tk.h>

       int
       Tk_GetJoinStyle(interp, string(3,n), joinPtr)

       CONST char *
       Tk_NameOfJoinStyle(join(1,n))

ARGUMENTS
       Tcl_Interp   *interp    (in(1,8))      Interpreter to use for error(8,n)  report-
                                         ing.

       CONST char   *string(3,n)    (in(1,8))      String containing name of join(1,n) style:
                                         one  of  ``bevel'',   ``miter'',   or
                                         ``round''.

       int          *joinPtr   (out)     Pointer to location in(1,8) which to store
                                         X join(1,n) style corresponding to string(3,n).

       int          join(1,n)       (in(1,8))      Join  style:  one of JoinBevel, Join-
                                         Miter, JoinRound.
_________________________________________________________________


DESCRIPTION
       Tk_GetJoinStyle places in(1,8) *joinPtr the X join(1,n)  style  corresponding  to
       string(3,n),  which will be one of JoinBevel, JoinMiter, or JoinRound.  Join
       styles are typically used in(1,8) X graphics contexts to indicate how  adja-
       cent  line segments should be joined together.  See the X documentation
       for information on what each style implies.

       Under normal circumstances the return value is  TCL_OK  and  interp  is
       unused.   If  string(3,n) doesn't contain a valid join(1,n) style or an abbrevia-
       tion of one of  these  names,  then  an  error(8,n)  message  is  stored  in(1,8)
       interp->result, TCL_ERROR is returned, and *joinPtr is unmodified.

       Tk_NameOfJoinStyle  is the logical inverse of Tk_GetJoinStyle.  Given a
       join(1,n) style such as JoinBevel it returns a  statically-allocated  string(3,n)
       corresponding  to  join(1,n).   If  join(1,n)  isn't  a  legal  join(1,n)  style, then
       ``unknown join(1,n) style'' is returned.


KEYWORDS
       bevel, join(1,n) style, miter, round



Tk                                                          Tk_GetJoinStyle(3)

References for this manual (incoming links)