Manual Pages for UNIX Darwin command on man Tk_GetJoinStyle
MyWebUniversity

Manual Pages for UNIX Darwin command on man Tk_GetJoinStyle

TkGetJoinStyle(3) Tk Library Procedures TkGetJoinStyle(3)

NAME

TkGetJoinStyle, TkNameOfJoinStyle - translate between strings and

join styles

SYNOPSIS

##iinncclluuddee <>

int TTkkGGeettJJooiinnSSttyyllee((interp, string, joinPtr)) CONST char * TTkkNNaammeeOOffJJooiinnSSttyyllee((join)) AARRGGUUMMEENNTTSS

TclInterp *interp (in) Interpreter to use for error report-

ing. CONST char *string (in) String containing name of join style: one of ``bevel'', ``miter'', or ``round''. int *joinPtr (out) Pointer to location in which to store X join style corresponding to string.

int join (in) Join style: one of JJooiinnBBeevveell, JJooiinn-

MMiitteerr, JJooiinnRRoouunndd.

DESCRIPTION

TTkkGGeettJJooiinnSSttyyllee places in *joinPtr the X join style corresponding to string, which will be one of JJooiinnBBeevveell, JJooiinnMMiitteerr, or JJooiinnRRoouunndd. Join

styles are typically used in 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 TTCCLLOOKK and interp is

unused. If string doesn't contain a valid join style or an abbrevia-

tion of one of these names, then an error message is stored in

interp->result, TTCCLLEERRRROORR is returned, and *joinPtr is unmodified.

TTkkNNaammeeOOffJJooiinnSSttyyllee is the logical inverse of TTkkGGeettJJooiinnSSttyyllee. Given a

join style such as JJooiinnBBeevveell it returns a statically-allocated string

corresponding to join. If join isn't a legal join style, then ``unknown join style'' is returned. KKEEYYWWOORRDDSS bevel, join style, miter, round Tk TkGetJoinStyle(3)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™