Tk_GetScrollInfo
NAMESYNOPSIS
ARGUMENTS
DESCRIPTION
KEYWORDS
___________________________
NAME
Tk_GetScrollInfo, Tk_GetScrollInfoObj − parse arguments for scrolling commands
SYNOPSIS
#include <tk.h>
int
Tk_GetScrollInfo(interp, argc, argv, dblPtr,
intPtr)
int
Tk_GetScrollInfoObj(interp, objc, objv, dblPtr,
intPtr)
ARGUMENTS
Tcl_Interp *interp (in) |
Interpreter to use for error reporting. | ||
int argc (in) |
Number of strings in argv array. | ||
const 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 xview or yview. | ||
int objc (in) |
Number of Tcl_Obj’s in objv array. | ||
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 xview or yview. | ||
double *dblPtr (out) |
Filled in with fraction from moveto option, if any. | ||
int *intPtr (out) |
Filled in with line or page count from scroll option, if any. The value may be negative. |
______________
DESCRIPTION
Tk_GetScrollInfo parses the arguments expected by widget scrolling commands such as xview and yview. It receives the entire list of words that make up a widget command and parses the words starting with argv[2]. The words starting with argv[2] must have one of the following forms:
moveto fraction
scroll number units
scroll number pages
Any of the moveto, scroll, units, and pages keywords may be abbreviated. If argv has the moveto form, TK_SCROLL_MOVETO is returned as result and *dblPtr is filled in with the fraction argument to the command, which must be a proper real value. If argv has the scroll form, TK_SCROLL_UNITS or TK_SCROLL_PAGES is returned and *intPtr is filled in with the number value, which must be a proper integer. If an error occurs in parsing the arguments, TK_SCROLL_ERROR is returned and an error message is left in interp->result.
Tk_GetScrollInfoObj is identical in function to Tk_GetScrollInfo. However, Tk_GetScrollInfoObj accepts Tcl_Obj style arguments, making it more appropriate for use with new development.
KEYWORDS
parse, scrollbar, scrolling command, xview, yview
More Linux Commands
manpages/Tcl_FSEvalFileEx.3.html
Tcl_FSEvalFileEx(3) - procedures to interact with any filesy
There are several reasons for calling the Tcl_FS API functions (e.g. Tcl_FSAccess and Tcl_FSStat) rather than calling system level functions like access and sta
manpages/keyctl.1.html
keyctl(1) - Key management facility control - Linux man page
This program is used to control the key management facility in various ways using a variety of subcommands. KEY IDENTIFIERS The key identifiers passed to or ret
manpages/XkbSARedirectVMods.3.html
XkbSARedirectVMods(3) - Returns the vmods0 and vmods1 fields
XkbSARedirectVMods.3 - Actions associated with the XkbRedirectKeyAction structure generate KeyPress and KeyRelease events containing a keycode different from th
manpages/motd.news.5.html
motd.news(5) - Message of the day information for readers...
This file, found in pathetc/motd.news, contains local information for news readers in a free-form format. The entire file is returned verbatim to any client tha
manpages/log10.3.html
log10(3) - base-10 logarithmic function - Linux manual page
The log10() function returns the base 10 logarithm of x. RETURN VALUE On success, these functions return the base 10 logarithm of x. For special cases, includin
manpages/outb.2.html
outb(2) - port I/O (System calls - Linux man page)..........
outb.2 - This family of functions is used to do low-level port input and output. The out* functions do port output, the in* functions do port input; the b-suffi
manpages/localedef.1.html
localedef(1) - compile locale definition files (Man Page)...
The localedef program reads the indicated charmap and input files, compiles them to a binary form quickly usable by the locale functions in the C library (setlo
manpages/dracut.bootup.7.html
dracut.bootup(7) boot ordering in the initramfs (Man Page)
This flow chart illustrates the ordering of the services, if systemd is used in the dracut initramfs. systemd-journal.socket | v dracut-cmdline.service | v drac
manpages/Tk_SetClassProcs.3.html
Tk_SetClassProcs(3) - register widget specific procedures...
Tk_SetClassProcs is called to register a set of procedures that are used as callbacks in different places. The structure pointed to by procs contains the follow
manpages/io_submit.2.html
io_submit(2) - submit asynchronous I/O blocks for processing
The io_submit() system call queues nr I/O request blocks for processing in the AIO context ctx_id. The iocbpp argument should be an array of nr AIO control bloc
manpages/curl_easy_reset.3.html
curl_easy_reset(3) - reset all options of a libcurl session
Re-initializes all options previously set on a specified CURL handle to the default values. This puts back the handle to the same state as it was in when it was
manpages/ldap.3.html
ldap(3) - OpenLDAP Lightweight Directory Access Protocol API
The Lightweight Directory Access Protocol (LDAP) (RFC 4510) provides access to X.500 directory services. These services may be stand-alone or part of a distribu
