Lines Matching refs:rRect
105 SmRect::SmRect(const SmRect &rRect) in SmRect() argument
106 : aTopLeft(rRect.aTopLeft), in SmRect()
107 aSize(rRect.aSize) in SmRect()
109 bHasBaseline = rRect.bHasBaseline; in SmRect()
110 nBaseline = rRect.nBaseline; in SmRect()
111 nAlignT = rRect.nAlignT; in SmRect()
112 nAlignM = rRect.nAlignM; in SmRect()
113 nAlignB = rRect.nAlignB; in SmRect()
114 nGlyphTop = rRect.nGlyphTop; in SmRect()
115 nGlyphBottom = rRect.nGlyphBottom; in SmRect()
116 nHiAttrFence = rRect.nHiAttrFence; in SmRect()
117 nLoAttrFence = rRect.nLoAttrFence; in SmRect()
118 bHasAlignInfo = rRect.bHasAlignInfo; in SmRect()
119 nItalicLeftSpace = rRect.nItalicLeftSpace; in SmRect()
120 nItalicRightSpace = rRect.nItalicRightSpace; in SmRect()
121 nBorderWidth = rRect.nBorderWidth; in SmRect()
125 void SmRect::CopyAlignInfo(const SmRect &rRect) in CopyAlignInfo() argument
127 nBaseline = rRect.nBaseline; in CopyAlignInfo()
128 bHasBaseline = rRect.bHasBaseline; in CopyAlignInfo()
129 nAlignT = rRect.nAlignT; in CopyAlignInfo()
130 nAlignM = rRect.nAlignM; in CopyAlignInfo()
131 nAlignB = rRect.nAlignB; in CopyAlignInfo()
132 bHasAlignInfo = rRect.bHasAlignInfo; in CopyAlignInfo()
133 nLoAttrFence = rRect.nLoAttrFence; in CopyAlignInfo()
134 nHiAttrFence = rRect.nHiAttrFence; in CopyAlignInfo()
322 const Point SmRect::AlignTo(const SmRect &rRect, RectPos ePos, in AlignTo() argument
331 aPos.X() = rRect.GetItalicLeft() - GetItalicRightSpace() in AlignTo()
335 aPos.X() = rRect.GetItalicRight() + 1 + GetItalicLeftSpace(); in AlignTo()
338 aPos.Y() = rRect.GetTop() - GetHeight(); in AlignTo()
341 aPos.Y() = rRect.GetBottom() + 1; in AlignTo()
344 aPos.X() = rRect.GetItalicCenterX() - GetItalicWidth() / 2 in AlignTo()
356 aPos.Y() += rRect.GetAlignT() - GetAlignT(); in AlignTo()
359 aPos.Y() += rRect.GetAlignM() - GetAlignM(); in AlignTo()
363 if (HasBaseline() && rRect.HasBaseline()) in AlignTo()
364 aPos.Y() += rRect.GetBaseline() - GetBaseline(); in AlignTo()
366 aPos.Y() += rRect.GetAlignM() - GetAlignM(); in AlignTo()
369 aPos.Y() += rRect.GetAlignB() - GetAlignB(); in AlignTo()
372 aPos.Y() += rRect.GetCenterY() - GetCenterY(); in AlignTo()
375 aPos.Y() += rRect.GetHiAttrFence() - GetBottom(); in AlignTo()
378 aPos.Y() += SmFromTo(rRect.GetAlignB(), rRect.GetAlignT(), 0.4) in AlignTo()
382 aPos.Y() += rRect.GetLoAttrFence() - GetTop(); in AlignTo()
393 aPos.X() += rRect.GetItalicLeft() - GetItalicLeft(); in AlignTo()
396 aPos.X() += rRect.GetItalicCenterX() - GetItalicCenterX(); in AlignTo()
399 aPos.X() += rRect.GetItalicRight() - GetItalicRight(); in AlignTo()
409 SmRect & SmRect::Union(const SmRect &rRect) in Union() argument
415 if (rRect.IsEmpty()) in Union()
418 long nL = rRect.GetLeft(), in Union()
419 nR = rRect.GetRight(), in Union()
420 nT = rRect.GetTop(), in Union()
421 nB = rRect.GetBottom(), in Union()
422 nGT = rRect.nGlyphTop, in Union()
423 nGB = rRect.nGlyphBottom; in Union()
452 SmRect & SmRect::ExtendBy(const SmRect &rRect, RectCopyMBL eCopyMode) in ExtendBy() argument
461 long nL = Min(GetItalicLeft(), rRect.GetItalicLeft()), in ExtendBy()
462 nR = Max(GetItalicRight(), rRect.GetItalicRight()); in ExtendBy()
464 Union(rRect); in ExtendBy()
469 CopyAlignInfo(rRect); in ExtendBy()
470 else if (rRect.HasAlignInfo()) in ExtendBy()
471 { nAlignT = Min(GetAlignT(), rRect.GetAlignT()); in ExtendBy()
472 nAlignB = Max(GetAlignB(), rRect.GetAlignB()); in ExtendBy()
473 nHiAttrFence = Min(GetHiAttrFence(), rRect.GetHiAttrFence()); in ExtendBy()
474 nLoAttrFence = Max(GetLoAttrFence(), rRect.GetLoAttrFence()); in ExtendBy()
482 CopyMBL(rRect); in ExtendBy()
490 CopyMBL(rRect); in ExtendBy()
501 SmRect & SmRect::ExtendBy(const SmRect &rRect, RectCopyMBL eCopyMode, in ExtendBy() argument
510 ExtendBy(rRect, eCopyMode); in ExtendBy()
517 SmRect & SmRect::ExtendBy(const SmRect &rRect, RectCopyMBL eCopyMode, in ExtendBy() argument
530 ExtendBy(rRect, eCopyMode); in ExtendBy()
695 const XubString &rText, Rectangle &rRect) in SmGetGlyphBoundRect() argument
702 { rRect.SetEmpty(); in SmGetGlyphBoundRect()
768 rRect = aResult; in SmGetGlyphBoundRect()