Lines Matching defs:textRect
204 void Text::ReMeasureTextSize(const Rect& textRect, const Style& style)
209 int16_t maxWidth = (expandWidth_ ? COORD_MAX : textRect.GetWidth());
223 void Text::ReMeasureTextWidthInEllipsisMode(const Rect& textRect, const Style& style, uint16_t ellipsisIndex)
226 int16_t lineMaxWidth = expandWidth_ ? textSize_.x : textRect.GetWidth();
247 const Rect& textRect,
258 if (mask.Intersect(mask, textRect)) {
259 Draw(gfxDstBuffer, mask, textRect, style, offsetX, ellipsisIndex, opaScale);
384 int16_t Text::TextPositionY(const Rect& textRect, int16_t textHeight)
387 if (!expandHeight_ && (verticalAlign_ != TEXT_ALIGNMENT_TOP) && (textRect.GetHeight() > textHeight)) {
389 yOffset = (textRect.GetHeight() - textHeight) >> 1;
391 yOffset = textRect.GetHeight() - textHeight;
394 return textRect.GetY() + yOffset;
397 int16_t Text::LineStartPos(const Rect& textRect, uint16_t lineWidth)
400 int16_t rectWidth = textRect.GetWidth();
408 return textRect.GetX() + xOffset;
487 uint16_t Text::GetEllipsisIndex(const Rect& textRect, const Style& style)
489 if (textSize_.y <= textRect.GetHeight()) {
495 p.x = textRect.GetWidth() - letterWidth;
496 p.y = textRect.GetHeight();
507 return GetLetterIndexByPosition(textRect, style, p);
526 uint16_t Text::GetPosXByLetterIndex(const Rect &textRect, const Style &style,
533 int16_t maxWidth = (expandWidth_ ? COORD_MAX : textRect.GetWidth());
541 uint16_t Text::GetLetterIndexByPosition(const Rect& textRect, const Style& style, const Point& pos)
564 width = textRect.GetWidth();
659 uint16_t Text::GetNextCharacterFullDispalyOffset(const Rect& textRect,
662 return GetPosXByLetterIndex(textRect, style, beginIndex, num);