GetJoinStl.3
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:2k
- '"
- '" Copyright (c) 1990 The Regents of the University of California.
- '" Copyright (c) 1994-1996 Sun Microsystems, Inc.
- '"
- '" See the file "license.terms" for information on usage and redistribution
- '" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
- '"
- '" RCS: @(#) $Id: GetJoinStl.3,v 1.3 2002/08/05 04:30:38 dgp Exp $
- '"
- .so man.macros
- .TH Tk_GetJoinStyle 3 "" Tk "Tk Library Procedures"
- .BS
- .SH NAME
- Tk_GetJoinStyle, Tk_NameOfJoinStyle - translate between strings and join styles
- .SH SYNOPSIS
- .nf
- fB#include <tk.h>fR
- .sp
- int
- fBTk_GetJoinStyle(fIinterp, string, joinPtrfB)fR
- .sp
- CONST char *
- fBTk_NameOfJoinStyle(fIjoinfB)fR
- .SH ARGUMENTS
- .AS "Tcl_Interp" *joinPtr
- .AP Tcl_Interp *interp in
- Interpreter to use for error reporting.
- .AP "CONST char" *string in
- String containing name of join style: one of ``bevel'', ``miter'',
- or ``round''.
- .AP int *joinPtr out
- Pointer to location in which to store X join style corresponding to
- fIstringfR.
- .AP int join in
- Join style: one of fBJoinBevelfR, fBJoinMiterfR, fBJoinRoundfR.
- .BE
- .SH DESCRIPTION
- .PP
- fBTk_GetJoinStylefR places in fI*joinPtrfR the X join style
- corresponding to fIstringfR, which will be one of
- fBJoinBevelfR, fBJoinMiterfR, or fBJoinRoundfR.
- Join styles are typically used in X graphics contexts to indicate
- how adjacent line segments should be joined together.
- See the X documentation for information on what each style
- implies.
- .PP
- Under normal circumstances the return value is fBTCL_OKfR and
- fIinterpfR is unused.
- If fIstringfR doesn't contain a valid join style
- or an abbreviation of one of these names, then an error message is
- stored in fIinterp->resultfR, fBTCL_ERRORfR is returned, and
- fI*joinPtrfR is unmodified.
- .PP
- fBTk_NameOfJoinStylefR is the logical inverse of fBTk_GetJoinStylefR.
- Given a join style such as fBJoinBevelfR it returns a
- statically-allocated string corresponding to fIjoinfR.
- If fIjoinfR isn't a legal join style, then
- ``unknown join style'' is returned.
- .SH KEYWORDS
- bevel, join style, miter, round