Home
last modified time | relevance | path

Searched refs:alignmentFactor (Results 1 - 5 of 5) sorted by relevance

/third_party/skia/modules/skparagraph/src/
H A DTextLineBaseImpl.cpp128 double TextLineBaseImpl::getAlignmentOffset(double alignmentFactor, double alignmentWidth) const in getAlignmentOffset() argument
134 return fVisitorTextLine->getAlignmentOffset(alignmentFactor, alignmentWidth); in getAlignmentOffset()
H A DTextLineBaseImpl.h45 double getAlignmentOffset(double alignmentFactor, double alignmentWidth) const override;
H A DTextLine.h214 double getAlignmentOffset(double alignmentFactor, double alignmentWidth) const;
H A DTextLine.cpp2520 double TextLine::getAlignmentOffset(double alignmentFactor, double alignmentWidth) const argument
2529 if (alignmentFactor <= 0) {
2534 } else if (alignmentFactor < 1) {
2535 // Align according to the alignmentFactor.
2537 offset = (alignmentWidth - lineWidth) * alignmentFactor;
2539 offset = (lineWidth - alignmentWidth) * (1 - alignmentFactor);
/third_party/skia/modules/skparagraph/include/
H A DTextLineBase.h44 virtual double getAlignmentOffset(double alignmentFactor, double alignmentWidth) const = 0;

Completed in 7 milliseconds