Lines Matching refs:grip
86 #define HasGrip(w) (PaneInfo(w)->grip != NULL)
434 * above the grip we want to choose a pane below the grip to lose,
667 Widget grip = pane->grip; /* may be NULL. */
676 grip->core.width - grip->core.border_width*2;
678 grip->core.height/2 - grip->core.border_width +
690 grip->core.width/2 - grip->core.border_width +
693 grip->core.height - grip->core.border_width*2;
699 * grip is Raised in the same request.
703 grip->core.x = changes.x;
704 grip->core.y = changes.y;
706 if (XtIsRealized(pane->grip))
707 XConfigureWindow( XtDisplay(pane->grip), XtWindow(pane->grip),
896 * Description: Starts the grip adjustment procedure.
898 * grip - the grip widget selected.
904 StartGripAdjustment(pw, grip, dir)
906 Widget grip;
915 pw->paned.whichadd = pw->composite.children[PaneIndex(grip)];
917 pw->paned.whichsub = pw->composite.children[PaneIndex(grip) + 1];
923 if (XtIsRealized(grip)) {
949 XDefineCursor(XtDisplay(grip), XtWindow(grip), cursor);
958 * Description: This routine moves all panes around when a grip is moved.
960 * grip - the grip that we are moving.
962 * grip.
968 MoveGripAdjustment(pw, grip, dir, loc)
970 Widget grip;
1007 RefigureLocations(pw, PaneIndex(grip), dir);
1012 * Description: Commits the grip adjustment.
1040 * Description: Handles the grip manipulations.
1041 * Arguments: grip - the grip widget that has been moved.
1043 * call_data - data passed to us from the grip widget.
1049 HandleGrip(grip, junk, callData)
1050 Widget grip;
1054 PanedWidget pw = (PanedWidget) XtParent(grip);
1082 StartGripAdjustment(pw, grip, direction);
1087 MoveGripAdjustment(pw, grip, direction, loc);
1092 XtGetValues(grip, arglist, (Cardinal) 1);
1093 XDefineCursor(XtDisplay(grip), XtWindow(grip), cursor);
1141 * the managed state of each grip matches that of its pane.
1161 *managedP++ = PaneInfo(*childP)->grip;
1163 *unmanagedP++ = PaneInfo(*childP)->grip;
1166 *unmanagedP++ = *--managedP; /* Last grip is never managed */
1179 * Description: Creates a grip widget.
1180 * Arguments: child - the child that wants a grip to be created for it.
1203 PaneInfo(child)->grip = XtCreateWidget("grip", gripWidgetClass, (Widget)pw,
1206 XtAddCallback(PaneInfo(child)->grip, XtNcallback,
1296 * Description: Changes all the grip cursors.
1319 XtSetValues(PaneInfo(*childP)->grip, arglist, (Cardinal) 1);
1588 XtRealizeWidget( PaneInfo(*childP)->grip );
1622 pane->min = PaneSize(pane->grip, IsVert((PanedWidget) XtParent(w)));
1627 pane->grip = NULL;
1638 /* remove the subwidget info and destroy the grip */
1640 if ( IsPane(w) && HasGrip(w) ) XtDestroyWidget(PaneInfo(w)->grip);
1679 PaneInfo(pane->grip)->position = pw->paned.num_panes;
1813 XtManageChild(PaneInfo(new)->grip); /* manage the grip. */
1814 XtRealizeWidget(PaneInfo(new)->grip); /* realize the grip. */
1819 XtDestroyWidget( old_pane->grip );
1820 new_pane->grip = NULL;