Lines Matching refs:pane
275 * Description: Adjusts the size of the pane.
344 * Description: returns the width or height of the pane depending
347 * vertical - TRUE if this is vertically oriented pane.
380 * Description: This function chooses a pane to resize.
387 * The user has not resized this pane.
397 * paneindex - the index of the current pane.
399 * shrink - TRUE if we need to shrink a pane, FALSE otherwise.
400 * Returns: pane to resize or NULL.
417 _index = pw->paned.num_panes - 1; /* Start the last pane, and work
424 Pane pane = PaneInfo(*childP);
426 if ( (rules < 3 || SatisfiesRule3(pane, shrink)) &&
427 (rules < 2 || SatisfiesRule2(pane)) &&
428 (SatisfiesRule1(pane, shrink)) &&
430 return(pane);
433 * This is counter-intuitive, but if we are resizing the pane
434 * above the grip we want to choose a pane below the grip to lose,
455 * Description: check for to see if this pane satisfies rule 1.
456 * Arguments: pane - the pane to check.
457 * shrink -TRUE if we want to shrink this pane, FALSE otherwise
462 SatisfiesRule1(pane, shrink)
463 Pane pane;
466 return( (shrink && (pane->size != pane->min)) ||
467 (!shrink && (pane->size != pane->max)) );
471 * Description: check for to see if this pane satisfies rule 2.
472 * Arguments: pane - the pane to check.
477 SatisfiesRule2(pane)
478 Pane pane;
480 return(!pane->skip_adjust || pane->paned_adjusted_me);
484 * Description: check for to see if this pane satisfies rule 3.
485 * Arguments: pane - the pane to check.
486 * shrink -TRUE if we want to shrink this pane, FALSE otherwise
491 SatisfiesRule3(pane, shrink)
492 Pane pane;
495 return ( pane->paned_adjusted_me &&
496 ( (shrink && ((int)pane->wp_size <= pane->size)) ||
497 (!shrink && ((int)pane->wp_size >= pane->size))) );
505 * paneindex - the number of the pane border we are moving.
506 * dir - the pane to move (either UpLeftPane or LowRightPane).
525 * Choose a pane to resize.
527 * If we fail to find a pane to resize then give up.
529 Pane pane;
534 GetPaneStack(pw, shrink, &pane, &start_size);
535 if (pane == NULL) {
536 pane = ChoosePaneToResize(pw, paneindex, dir, shrink);
537 if (pane == NULL)
540 rule3_ok = SatisfiesRule3(pane, shrink);
542 PushPaneStack(pw, pane);
547 * Try to resize this pane so that all panes will fit, take min and max
550 old = pane->size;
551 pane->size += pane_size - *sizeused;
555 AssignMax(pane->size, start_size);
558 AssignMin(pane->size, start_size);
560 if (pane->size == start_size) (void) PopPaneStack(pw);
564 AssignMax(pane->size, (int) pane->wp_size);
567 AssignMin(pane->size, (int) pane->wp_size);
570 pane->paned_adjusted_me = (pane->size != pane->wp_size);
571 AssignMax(pane->size, (int) pane->min);
572 AssignMin(pane->size, (int) pane->max);
573 *sizeused += (pane->size - old);
611 Pane pane = PaneInfo(*childP);
612 AssignMax(pane->size, (int) pane->min);
613 AssignMin(pane->size, (int) pane->max);
614 sizeused += (int) pane->size + (int) pw->paned.internal_bw;
622 * If we still are not the right size, then tell the pane that
628 Pane pane = PaneInfo(*(pw->composite.children + paneindex));
629 Dimension old = pane->size;
631 pane->size += pane_size - sizeused;
632 AssignMax(pane->size, (int) pane->min);
633 AssignMin(pane->size, (int) pane->max);
634 sizeused += pane->size - old;
641 * Assign each pane a location.
666 Pane pane = PaneInfo(*childP);
667 Widget grip = pane->grip; /* may be NULL. */
670 XtMoveWidget(*childP, (Position) 0, pane->delta);
671 XtResizeWidget(*childP, pw->core.width, (Dimension) pane->size,
683 XtMoveWidget(*childP, pane->delta, (Position) 0);
684 XtResizeWidget(*childP, (Dimension) pane->size, pw->core.height,
706 if (XtIsRealized(pane->grip))
707 XConfigureWindow( XtDisplay(pane->grip), XtWindow(pane->grip),
808 * Description: Draws the lines that animate the pane borders when the
822 Pane pane;
830 pane = PaneInfo(*childP);
831 if ( erase || (pane->olddelta != pane->delta) ) {
845 pane->olddelta = pane->delta;
861 * Returns: if this is a vertical pane then (y) else (x).
961 * dir - the direction the pane we are interested is w.r.t the
1030 Pane pane = PaneInfo(pw->paned.whichadd);
1031 pane->wp_size = pane->size;
1034 Pane pane = PaneInfo(pw->paned.whichsub);
1035 pane->wp_size = pane->size;
1119 * We only keep track of the first unmanaged pane.
1124 else { /* must be a managed pane */
1126 * If an earlier widget was not a managed pane, then swap
1141 * the managed state of each grip matches that of its pane.
1225 * Draw pane borders in internal border color.
1233 * Erase pane borders with background color.
1241 * Draw Track lines (animate pane borders) in internal border color ^ bg color.
1331 * Description: Pushes a value onto the pane stack.
1333 * pane - the pane that we are pushing.
1338 PushPaneStack(pw, pane)
1340 Pane pane;
1345 stack->pane = pane;
1346 stack->start_size = pane->size;
1352 * Description: Gets the top value from the pane stack.
1354 * shrink - TRUE if we want to shrink this pane,
1356 * ** RETURNED ** pane - the pane that we are popping.
1357 * ** RETURNED ** start_size - the size that this pane started at.
1362 GetPaneStack(pw, shrink, pane, start_size)
1365 Pane * pane;
1369 *pane = NULL;
1373 *pane = pw->paned.stack->pane;
1376 if (shrink != ((*pane)->size > *start_size)) *pane = NULL;
1380 * Description: Pops the top item off the pane stack.
1401 * Description: removes all entries from the pane stack.
1454 Pane pane = PaneInfo(w);
1463 * o The paned widget is realized and allow_resize is false for the pane.
1469 if ( (XtIsRealized((Widget)pw) && !pane->allow_resize) ||
1477 old_wpsize = pane->wp_size;
1478 old_size = pane->size;
1480 pane->wp_size = pane->size = GetRequestInfo(request, vert);
1504 reply->height = pane->size;
1510 reply->width = pane->size;
1535 pane->wp_size = old_wpsize;
1536 pane->size = old_size;
1609 Pane pane = PaneInfo(w);
1619 if ( pane->show_grip == TRUE ) {
1621 if (pane->min == PANED_GRIP_SIZE)
1622 pane->min = PaneSize(pane->grip, IsVert((PanedWidget) XtParent(w)));
1625 if (pane->min == PANED_GRIP_SIZE)
1626 pane->min = 1;
1627 pane->grip = NULL;
1630 pane->size = 0;
1631 pane->paned_adjusted_me = FALSE;
1659 * If the size is zero then set it to the size of the widest or tallest pane.
1677 Pane pane = PaneInfo(*childP);
1679 PaneInfo(pane->grip)->position = pw->paned.num_panes;
1680 pane->position = pw->paned.num_panes; /*TEMPORY -CDP 3/89 */
1836 * Description: Sets the min and max size for a pane.
1838 * min, max - the new min and max size for the pane.
1851 Pane pane = PaneInfo(widget);
1853 pane->min = min;
1854 pane->max = max;
1859 * Description: Gets the min and max size for a pane.
1861 ** RETURNED ** min, max - the current min and max size for the pane.
1874 Pane pane = PaneInfo(widget);
1876 *min = pane->min;
1877 *max = pane->max;