Lines Matching refs:grip
84 #define HasGrip(w) (PaneInfo(w)->grip != NULL)
614 * above the grip we want to choose a pane below the grip to lose,
803 Widget grip = pane->grip; /* may be NULL */
811 XtWidth(grip) - (XtBorderWidth(grip) << 1);
813 (XtHeight(grip) >> 1) - XtBorderWidth(grip) +
823 (XtWidth(grip) >> 1) - XtBorderWidth(grip) +
826 XtHeight(grip) - (XtBorderWidth(grip) << 1);
832 * grip is Raised in the same request
836 XtX(grip) = (Position)changes.x;
837 XtY(grip) = (Position)changes.y;
839 if (XtIsRealized(pane->grip))
840 XConfigureWindow(XtDisplay(pane->grip), XtWindow(pane->grip),
1036 * grip - grip widget selected
1040 * Starts the grip adjustment procedure.
1043 StartGripAdjustment(PanedWidget pw, Widget grip, Direction dir)
1050 pw->paned.whichadd = pw->composite.children[PaneIndex(grip)];
1052 pw->paned.whichsub = pw->composite.children[PaneIndex(grip) + 1];
1057 if (XtIsRealized(grip)) {
1085 XDefineCursor(XtDisplay(grip), XtWindow(grip), cursor);
1101 * grip - grip that we are moving
1102 * dir - direction the pane we are interested is w.r.t the grip
1106 * This routine moves all panes around when a grip is moved.
1109 MoveGripAdjustment(PanedWidget pw, Widget grip, Direction dir, int loc)
1150 RefigureLocations(pw, PaneIndex(grip), dir);
1162 * Commits the grip adjustment.
1191 * grip - grip widget that has been moved
1193 * call_data - data passed to us from the grip widget
1196 * Handles the grip manipulations.
1200 HandleGrip(Widget grip, XtPointer temp _X_UNUSED, XtPointer callData)
1203 PanedWidget pw = (PanedWidget) XtParent(grip);
1216 XtAppError(XtWidgetToApplicationContext(grip),
1228 StartGripAdjustment(pw, grip, (Direction)direction[0]);
1232 MoveGripAdjustment(pw, grip, (Direction)direction[0], loc);
1236 XtGetValues(grip, arglist, 1);
1237 XDefineCursor(XtDisplay(grip), XtWindow(grip), cursor);
1241 XtAppError(XtWidgetToApplicationContext(grip),
1296 * the managed state of each grip matches that of its pane.
1312 *managedP++ = PaneInfo(*childP)->grip;
1314 *unmanagedP++ = PaneInfo(*childP)->grip;
1318 *unmanagedP++ = *--managedP; /* Last grip is never managed */
1334 * child - child that wants a grip to be created for it
1337 * Creates a grip widget.
1358 PaneInfo(child)->grip = XtCreateWidget("grip", gripWidgetClass, (Widget)pw,
1361 XtAddCallback(PaneInfo(child)->grip, XtNcallback,
1456 * Changes all the grip cursors.
1477 XtSetValues(PaneInfo(*childP)->grip, arglist, 1);
1737 XtRealizeWidget(PaneInfo(*childP)->grip);
1776 pane->min = PaneSize(pane->grip, IsVert((PanedWidget)XtParent(w)));
1781 pane->grip = NULL;
1791 /* remove the subwidget info and destroy the grip */
1793 XtDestroyWidget(PaneInfo(w)->grip);
1834 PaneInfo(pane->grip)->position = pw->paned.num_panes;
1948 XtManageChild(PaneInfo(cnew)->grip); /* manage the grip */
1949 XtRealizeWidget(PaneInfo(cnew)->grip); /* realize the grip */
1954 XtDestroyWidget(old_pane->grip);
1955 new_pane->grip = NULL;