diff options
Diffstat (limited to 'tk/doc/GetScroll.3')
-rw-r--r-- | tk/doc/GetScroll.3 | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/tk/doc/GetScroll.3 b/tk/doc/GetScroll.3 index 0a8a0e4dcbc..576f1905d52 100644 --- a/tk/doc/GetScroll.3 +++ b/tk/doc/GetScroll.3 @@ -8,16 +8,19 @@ '\" RCS: @(#) $Id$ '\" .so man.macros -.TH Tk_GetScrollInfo 3 4.0 Tk "Tk Library Procedures" +.TH Tk_GetScrollInfo 3 8.0 Tk "Tk Library Procedures" .BS .SH NAME -Tk_GetScrollInfo \- parse arguments for scrolling commands +Tk_GetScrollInfo, Tk_GetScrollInfoObj \- parse arguments for scrolling commands .SH SYNOPSIS .nf \fB#include <tk.h>\fR .sp int \fBTk_GetScrollInfo(\fIinterp, argc, argv, dblPtr, intPtr\fB)\fR +.sp +int +\fBTk_GetScrollInfoObj(\fIinterp, objc, objv, dblPtr, intPtr\fB)\fR .SH ARGUMENTS .AS "Tcl_Interp" *dblPtr .AP Tcl_Interp *interp in @@ -27,8 +30,13 @@ Number of strings in \fIargv\fR array. .AP char *argv[] in Argument strings. These represent the entire widget command, of which the first word is typically the widget name and the second -word is typically \fBxview\fR or \fByview\fR. This procedure parses -arguments starting with \fIargv\fR[2]. +word is typically \fBxview\fR or \fByview\fR. +.AP int objc in +Number of Tcl_Obj's in \fIobjv\fR array. +.AP "Tcl_Obj *CONST" objv[] in +Argument objects. These represent the entire widget command, of +which the first word is typically the widget name and the second +word is typically \fBxview\fR or \fByview\fR. .AP double *dblPtr out Filled in with fraction from \fBmoveto\fR option, if any. .AP int *intPtr out @@ -60,6 +68,13 @@ or \fBTK_SCROLL_PAGES\fR is returned and \fI*intPtr\fR is filled in with the \fInumber\fR value, which must be a proper integer. If an error occurs in parsing the arguments, \fBTK_SCROLL_ERROR\fR is returned and an error message is left in \fIinterp->result\fR. +.PP +\fBTk_GetScrollInfoObj\fR is identical in function to +\fBTk_GetScrollInfo\fR. However, \fBTk_GetScrollInfoObj\fR accepts +Tcl_Obj style arguments, making it more appropriate for use with new +development. .SH KEYWORDS parse, scrollbar, scrolling command, xview, yview + + |