⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getanchor.3

📁 linux系统下的音频通信
💻 3
字号:
'\"'\" 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.'\" '\" SCCS: @(#) GetAnchor.3 1.9 96/03/26 18:08:45'\" .so man.macros.TH Tk_GetAnchor 3 "" Tk "Tk Library Procedures".BS.SH NAMETk_GetAnchor, Tk_NameOfAnchor \- translate between strings and anchor positions.SH SYNOPSIS.nf\fB#include <tk.h>\fR.spint\fBTk_GetAnchor(\fIinterp, string, anchorPtr\fB)\fR.spchar *\fBTk_NameOfAnchor(\fIanchor\fB)\fR.SH ARGUMENTS.AS "Tk_Anchor" *anchorPtr.AP Tcl_Interp *interp inInterpreter to use for error reporting..AP char *string inString containing name of anchor point: one of ``n'', ``ne'', ``e'', ``se'',``s'', ``sw'', ``w'', ``nw'', or ``center''..AP int *anchorPtr outPointer to location in which to store anchor position corresponding to\fIstring\fR..AP Tk_Anchor anchor inAnchor position, e.g. \fBTCL_ANCHOR_CENTER\fR..BE.SH DESCRIPTION.PP\fBTk_GetAnchor\fR places in \fI*anchorPtr\fR an anchor position(enumerated type \fBTk_Anchor\fR)corresponding to \fIstring\fR,  which will be one of\fBTK_ANCHOR_N\fR, \fBTK_ANCHOR_NE\fR, \fBTK_ANCHOR_E\fR, \fBTK_ANCHOR_SE\fR,\fBTK_ANCHOR_S\fR, \fBTK_ANCHOR_SW\fR, \fBTK_ANCHOR_W\fR, \fBTK_ANCHOR_NW\fR,or \fBTK_ANCHOR_CENTER\fR.Anchor positions are typically used for indicating a point on an objectthat will be used to position that object, e.g. \fBTK_ANCHOR_N\fR meansposition the top center point of the object at a particular place..PPUnder normal circumstances the return value is \fBTCL_OK\fR and\fIinterp\fR is unused.If \fIstring\fR doesn't contain a valid anchor positionor an abbreviation of one of these names, then an error message isstored in \fIinterp->result\fR, \fBTCL_ERROR\fR is returned, and\fI*anchorPtr\fR is unmodified..PP\fBTk_NameOfAnchor\fR is the logical inverse of \fBTk_GetAnchor\fR.Given an anchor position such as \fBTK_ANCHOR_N\fR it returns astatically-allocated string corresponding to \fIanchor\fR.If \fIanchor\fR isn't a legal anchor value, then``unknown anchor position'' is returned..SH KEYWORDSanchor position

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -