Lines Matching refs:to
214 // Set up to decode into memory
553 // data directly to the clipboard message instead of packaging it in
628 ScaleRectToFit(const BRect &from, const BRect &to)
631 // 1) Check to see if either dimension is bigger than the view's display area
633 // 3) Check to see if scaling is to be horizontal or vertical on basis of longer axis
638 if (!to.IsValid())
641 return to;
643 BRect r(to);
648 r.OffsetBy((to.Width() - r.Width()) / 2, (to.Height() - r.Height()) / 2);
656 // Scale rectangle to bounds width and center height
658 r.OffsetBy(0, (to.Height() - r.Height()) / 2);
662 // Scale rectangle to bounds height and center width
664 r.OffsetBy((to.Width() - r.Width()) / 2, 0);