Lines Matching refs:grip
62 #define HasGrip(w) (PaneInfo(w)->grip != NULL)
407 * above the grip we want to choose a pane below the grip to lose,
640 register Widget grip = pane->grip; /* may be NULL. */
649 grip->core.width - grip->core.border_width*2;
651 grip->core.height/2 - grip->core.border_width +
663 grip->core.width/2 - grip->core.border_width +
666 grip->core.height - grip->core.border_width*2;
672 * grip is Raised in the same request.
676 grip->core.x = changes.x;
677 grip->core.y = changes.y;
679 if (XtIsRealized(pane->grip))
680 XConfigureWindow( XtDisplay(pane->grip), XtWindow(pane->grip),
869 * Description: Starts the grip adjustment proceedure.
871 * grip - the grip widget selected.
877 StartGripAdjustment(pw, grip, dir)
879 Widget grip;
888 pw->paned.whichadd = pw->composite.children[PaneIndex(grip)];
890 pw->paned.whichsub = pw->composite.children[PaneIndex(grip) + 1];
896 if (XtIsRealized(grip)) {
922 XDefineCursor(XtDisplay(grip), XtWindow(grip), cursor);
931 * Description: This routine moves all panes around when a grip is moved.
933 * grip - the grip that we are moving.
935 * grip.
941 MoveGripAdjustment(pw, grip, dir, loc)
943 Widget grip;
980 RefigureLocations(pw, PaneIndex(grip), dir);
985 * Description: Commits the grip adjustment.
1012 * Description: Handles the grip manipulations.
1013 * Arguments: grip - the grip widget that has been moved.
1015 * call_data - data passed to us from the grip widget.
1021 HandleGrip(grip, junk, callData)
1022 Widget grip;
1026 PanedWidget pw = (PanedWidget) XtParent(grip);
1054 StartGripAdjustment(pw, grip, direction);
1059 MoveGripAdjustment(pw, grip, direction, loc);
1064 XtGetValues(grip, arglist, (Cardinal) 1);
1065 XDefineCursor(XtDisplay(grip), XtWindow(grip), cursor);
1113 * the managed state of each grip matches that of its pane.
1133 *managedP++ = PaneInfo(*childP)->grip;
1135 *unmanagedP++ = PaneInfo(*childP)->grip;
1138 *unmanagedP++ = *--managedP; /* Last grip is never managed */
1151 * Description: Creates a grip widget.
1152 * Arguments: child - the child that wants a grip to be created for it.
1175 PaneInfo(child)->grip = XtCreateWidget("grip", gripWidgetClass, (Widget)pw,
1178 XtAddCallback(PaneInfo(child)->grip, XtNcallback,
1268 * Description: Changes all the grip cursors.
1291 XtSetValues(PaneInfo(*childP)->grip, arglist, (Cardinal) 1);
1556 XtRealizeWidget( PaneInfo(*childP)->grip );
1589 pane->min = PaneSize(pane->grip, IsVert((PanedWidget) XtParent(w)));
1594 pane->grip = NULL;
1605 /* remove the subwidget info and destroy the grip */
1607 if ( IsPane(w) && HasGrip(w) ) XtDestroyWidget(PaneInfo(w)->grip);
1646 PaneInfo(pane->grip)->position = pw->paned.num_panes;
1775 XtManageChild(PaneInfo(new)->grip); /* manage the grip. */
1776 XtRealizeWidget(PaneInfo(new)->grip); /* realize the grip. */
1781 XtDestroyWidget( old_pane->grip );
1782 new_pane->grip = NULL;