Lines Matching defs:pane

251  *	Description: Adjusts the size of the pane.
319 * Description: returns the width or height of the pane depending
322 * vertical - TRUE if this is vertically oriented pane.
355 * Description: This function chooses a pane to resize.
362 * The user has not resized this pane.
372 * index - the index of the current pane.
374 * shrink - TRUE if we need to shrink a pane, FALSE otherwise.
375 * Returns: pane to resize or NULL.
392 _index = pw->paned.num_panes - 1; /* Start the last pane, and work
397 register Pane pane = PaneInfo(*childP);
399 if ( (rules < 3 || SatisfiesRule3(pane, shrink)) &&
400 (rules < 2 || SatisfiesRule2(pane)) &&
401 (SatisfiesRule1(pane, shrink)) &&
403 return(pane);
406 * This is counter-intiutive, but if we are resizing the pane
407 * above the grip we want to choose a pane below the grip to lose,
428 * Description: check for to see if this pane satisfies rule 1.
429 * Arguments: pane - the pane to check.
430 * shrink -TRUE if we want to shrink this pane, FALSE otherwise
435 SatisfiesRule1(pane, shrink)
436 Pane pane;
439 return( (shrink && (pane->size != pane->min)) ||
440 (!shrink && (pane->size != pane->max)) );
444 * Description: check for to see if this pane satisfies rule 2.
445 * Arguments: pane - the pane to check.
450 SatisfiesRule2(pane)
451 Pane pane;
453 return(!pane->skip_adjust || pane->paned_adjusted_me);
457 * Description: check for to see if this pane satisfies rule 3.
458 * Arguments: pane - the pane to check.
459 * shrink -TRUE if we want to shrink this pane, FALSE otherwise
464 SatisfiesRule3(pane, shrink)
465 Pane pane;
468 return ( pane->paned_adjusted_me &&
469 ( (shrink && (pane->wp_size <= pane->size)) ||
470 (!shrink && (pane->wp_size >= pane->size))) );
478 * index - the number of the pane border we are moving.
479 * dir - the pane to move (either UpLeftPane or LowRightPane).
498 * Choose a pane to resize.
500 * If we fail to find a pane to resize then give up.
502 Pane pane;
507 GetPaneStack(pw, shrink, &pane, &start_size);
508 if (pane == NULL) {
509 pane = ChoosePaneToResize(pw, index, dir, shrink);
510 if (pane == NULL)
513 rule3_ok = SatisfiesRule3(pane, shrink);
515 PushPaneStack(pw, pane);
520 * Try to resize this pane so that all panes will fit, take min and max
523 old = pane->size;
524 pane->size += pane_size - *sizeused;
528 AssignMax(pane->size, start_size);
531 AssignMin(pane->size, start_size);
533 if (pane->size == start_size) (void) PopPaneStack(pw);
537 AssignMax(pane->size, (int) pane->wp_size);
540 AssignMin(pane->size, (int) pane->wp_size);
543 pane->paned_adjusted_me = (pane->size != pane->wp_size);
544 AssignMax(pane->size, (int) pane->min);
545 AssignMin(pane->size, (int) pane->max);
546 *sizeused += (pane->size - old);
584 register Pane pane = PaneInfo(*childP);
585 AssignMax(pane->size, (int) pane->min);
586 AssignMin(pane->size, (int) pane->max);
587 sizeused += (int) pane->size + (int) pw->paned.internal_bw;
595 * If we still are not the right size, then tell the pane that
601 Pane pane = PaneInfo(*(pw->composite.children + index));
602 Dimension old = pane->size;
604 pane->size += pane_size - sizeused;
605 AssignMax(pane->size, (int) pane->min);
606 AssignMin(pane->size, (int) pane->max);
607 sizeused += pane->size - old;
614 * Assign each pane a location.
639 register Pane pane = PaneInfo(*childP);
640 register Widget grip = pane->grip; /* may be NULL. */
643 XtMoveWidget(*childP, (Position) 0, pane->delta);
644 XtResizeWidget(*childP, pw->core.width, (Dimension) pane->size,
656 XtMoveWidget(*childP, pane->delta, (Position) 0);
657 XtResizeWidget(*childP, (Dimension) pane->size, pw->core.height,
679 if (XtIsRealized(pane->grip))
680 XConfigureWindow( XtDisplay(pane->grip), XtWindow(pane->grip),
781 * Description: Draws the lines that animate the pane borders when the
795 Pane pane;
803 pane = PaneInfo(*childP);
804 if ( erase || (pane->olddelta != pane->delta) ) {
818 pane->olddelta = pane->delta;
834 * Returns: if this is a vertical pane then (y) else (x).
934 * dir - the direction the pane we are interested is w.r.t the
1002 Pane pane = PaneInfo(pw->paned.whichadd);
1003 pane->wp_size = pane->size;
1006 Pane pane = PaneInfo(pw->paned.whichsub);
1007 pane->wp_size = pane->size;
1091 * We only keep track of the first unmanaged pane.
1096 else { /* must be a managed pane */
1098 * If an earlier widget was not a managed pane, then swap
1113 * the managed state of each grip matches that of its pane.
1197 * Draw pane borders in internal border color.
1205 * Erase pane borders with background color.
1213 * Draw Track lines (animate pane borders) in internal border color ^ bg color.
1303 * Description: Pushes a value onto the pane stack.
1305 * pane - the pane that we are pushing.
1310 PushPaneStack(pw, pane)
1312 Pane pane;
1317 stack->pane = pane;
1318 stack->start_size = pane->size;
1324 * Description: Gets the top value from the pane stack.
1326 * shrink - TRUE if we want to shrink this pane,
1328 * ** RETURNED ** pane - the pane that we are popping.
1329 * ** RETURNED ** start_size - the size that this pane started at.
1334 GetPaneStack(pw, shrink, pane, start_size)
1337 Pane * pane;
1341 *pane = NULL;
1345 *pane = pw->paned.stack->pane;
1348 if (shrink != ((*pane)->size > *start_size)) *pane = NULL;
1352 * Description: Pops the top item off the pane stack.
1373 * Description: removes all entries from the pane stack.
1426 Pane pane = PaneInfo(w);
1435 * o The paned widget is realized and allow_resize is false for the pane.
1441 if ( (XtIsRealized((Widget)pw) && !pane->allow_resize) ||
1449 old_wpsize = pane->wp_size;
1450 old_size = pane->size;
1452 pane->wp_size = pane->size = GetRequestInfo(request, vert);
1476 reply->height = pane->size;
1482 reply->width = pane->size;
1507 pane->wp_size = old_wpsize;
1508 pane->size = old_size;
1576 Pane pane = PaneInfo(w);
1586 if ( pane->show_grip == TRUE ) {
1588 if (pane->min == PANED_GRIP_SIZE)
1589 pane->min = PaneSize(pane->grip, IsVert((PanedWidget) XtParent(w)));
1592 if (pane->min == PANED_GRIP_SIZE)
1593 pane->min = 1;
1594 pane->grip = NULL;
1597 pane->size = 0;
1598 pane->paned_adjusted_me = FALSE;
1626 * If the size is zero then set it to the size of the widest or tallest pane.
1644 Pane pane = PaneInfo(*childP);
1646 PaneInfo(pane->grip)->position = pw->paned.num_panes;
1647 pane->position = pw->paned.num_panes; /*TEMPORY -CDP 3/89 */
1798 * Description: Sets the min and max size for a pane.
1800 * min, max - the new min and max size for the pane.
1809 Pane pane = PaneInfo(widget);
1811 pane->min = min;
1812 pane->max = max;
1817 * Description: Gets the min and max size for a pane.
1819 ** RETURNED ** min, max - the current min and max size for the pane.
1828 Pane pane = PaneInfo(widget);
1830 *min = pane->min;
1831 *max = pane->max;