*--------------------------------------------------------------
*/
-int
-Tk_ScrollbarCmd(clientData, interp, argc, argv)
- ClientData clientData; /* Main window associated with
+int
+Tk_ScrollbarCmd (
+ ClientData clientData, /* Main window associated with
* interpreter. */
- Tcl_Interp *interp; /* Current interpreter. */
- int argc; /* Number of arguments. */
- char **argv; /* Argument strings. */
+ Tcl_Interp *interp, /* Current interpreter. */
+ int argc, /* Number of arguments. */
+ char **argv /* Argument strings. */
+)
{
Tk_Window tkwin = (Tk_Window) clientData;
register Scrollbar *scrollPtr;
|PointerMotionMask|ButtonPressMask|ButtonReleaseMask,
ScrollbarMouseProc, (ClientData) scrollPtr);
Tcl_CreateCommand(interp, Tk_PathName(scrollPtr->tkwin), ScrollbarWidgetCmd,
- (ClientData) scrollPtr, (void (*)()) NULL);
+ (ClientData) scrollPtr, (void (*)(int *)) NULL);
if (ConfigureScrollbar(interp, scrollPtr, argc-2, argv+2, 0) != TCL_OK) {
goto error;
}
*--------------------------------------------------------------
*/
-static int
-ScrollbarWidgetCmd(clientData, interp, argc, argv)
- ClientData clientData; /* Information about scrollbar
+static int
+ScrollbarWidgetCmd (
+ ClientData clientData, /* Information about scrollbar
* widget. */
- Tcl_Interp *interp; /* Current interpreter. */
- int argc; /* Number of arguments. */
- char **argv; /* Argument strings. */
+ Tcl_Interp *interp, /* Current interpreter. */
+ int argc, /* Number of arguments. */
+ char **argv /* Argument strings. */
+)
{
register Scrollbar *scrollPtr = (Scrollbar *) clientData;
int result = TCL_OK;
*----------------------------------------------------------------------
*/
-static void
-DestroyScrollbar(clientData)
- ClientData clientData; /* Info about scrollbar widget. */
+static void
+DestroyScrollbar (
+ ClientData clientData /* Info about scrollbar widget. */
+)
{
register Scrollbar *scrollPtr = (Scrollbar *) clientData;
*----------------------------------------------------------------------
*/
-static int
-ConfigureScrollbar(interp, scrollPtr, argc, argv, flags)
- Tcl_Interp *interp; /* Used for error reporting. */
- register Scrollbar *scrollPtr; /* Information about widget; may or
+static int
+ConfigureScrollbar (
+ Tcl_Interp *interp, /* Used for error reporting. */
+ register Scrollbar *scrollPtr, /* Information about widget; may or
* may not already have values for
* some fields. */
- int argc; /* Number of valid entries in argv. */
- char **argv; /* Arguments. */
- int flags; /* Flags to pass to
+ int argc, /* Number of valid entries in argv. */
+ char **argv, /* Arguments. */
+ int flags /* Flags to pass to
* Tk_ConfigureWidget. */
+)
{
int length;
XGCValues gcValues;
*--------------------------------------------------------------
*/
-static void
-DisplayScrollbar(clientData)
- ClientData clientData; /* Information about window. */
+static void
+DisplayScrollbar (
+ ClientData clientData /* Information about window. */
+)
{
register Scrollbar *scrollPtr = (Scrollbar *) clientData;
register Tk_Window tkwin = scrollPtr->tkwin;
*--------------------------------------------------------------
*/
-static void
-ScrollbarEventProc(clientData, eventPtr)
- ClientData clientData; /* Information about window. */
- XEvent *eventPtr; /* Information about event. */
+static void
+ScrollbarEventProc (
+ ClientData clientData, /* Information about window. */
+ XEvent *eventPtr /* Information about event. */
+)
{
Scrollbar *scrollPtr = (Scrollbar *) clientData;
*----------------------------------------------------------------------
*/
-static void
-ComputeScrollbarGeometry(scrollPtr)
- register Scrollbar *scrollPtr; /* Scrollbar whose geometry may
+static void
+ComputeScrollbarGeometry (
+ register Scrollbar *scrollPtr /* Scrollbar whose geometry may
* have changed. */
+)
{
int width, fieldLength;
*--------------------------------------------------------------
*/
-static int
-ScrollbarPosition(scrollPtr, x, y)
- register Scrollbar *scrollPtr; /* Scrollbar widget record. */
- int x, y; /* Coordinates within scrollPtr's
+static int
+ScrollbarPosition (
+ register Scrollbar *scrollPtr, /* Scrollbar widget record. */
+ int x,
+ int y /* Coordinates within scrollPtr's
* window. */
+)
{
int length, width, tmp;
*--------------------------------------------------------------
*/
-static void
-ScrollbarMouseProc(clientData, eventPtr)
- ClientData clientData; /* Information about window. */
- register XEvent *eventPtr; /* Information about event. */
+static void
+ScrollbarMouseProc (
+ ClientData clientData, /* Information about window. */
+ register XEvent *eventPtr /* Information about event. */
+)
{
register Scrollbar *scrollPtr = (Scrollbar *) clientData;
*--------------------------------------------------------------
*/
-static void
-ScrollCmd(scrollPtr, unit)
- register Scrollbar *scrollPtr; /* Scrollbar from which to issue
+static void
+ScrollCmd (
+ register Scrollbar *scrollPtr, /* Scrollbar from which to issue
* command. */
- int unit; /* Unit position within thing being
+ int unit /* Unit position within thing being
* being displayed that should appear
* at top or right of screen. */
+)
{
char string[20];
int result;
*--------------------------------------------------------------
*/
-static void
-EventuallyRedraw(scrollPtr)
- register Scrollbar *scrollPtr; /* Information about widget. */
+static void
+EventuallyRedraw (
+ register Scrollbar *scrollPtr /* Information about widget. */
+)
{
if ((scrollPtr->tkwin == NULL) || (!Tk_IsMapped(scrollPtr->tkwin))) {
return;
*--------------------------------------------------------------
*/
-static void
-ScrollbarNewField(scrollPtr, field)
- register Scrollbar *scrollPtr; /* Information about widget. */
- int field; /* Identifies field under mouse,
+static void
+ScrollbarNewField (
+ register Scrollbar *scrollPtr, /* Information about widget. */
+ int field /* Identifies field under mouse,
* e.g. TOP_ARROW. */
+)
{
if (field == scrollPtr->mouseField) {
return;
*--------------------------------------------------------------
*/
-static void
-ScrollbarTimerProc(clientData)
- ClientData clientData; /* Information about widget. */
+static void
+ScrollbarTimerProc (
+ ClientData clientData /* Information about widget. */
+)
{
register Scrollbar *scrollPtr = (Scrollbar *) clientData;