Lines Matching defs:index
43 bool hasProperty(TextIndex index, CodeUnitFlags flag) const {
44 return (fCodeUnitProperties[index] & flag) == flag;
46 bool isHardLineBreak(TextIndex index) const {
47 return this->hasProperty(index, CodeUnitFlags::kHardLineBreakBefore);
49 bool isSoftLineBreak(TextIndex index) const {
50 return index != 0 && this->hasProperty(index, CodeUnitFlags::kSoftLineBreakBefore);
174 virtual void onBeginLine(size_t index, TextRange lineText, bool hardBreak, SkRect bounds) { }
175 virtual void onEndLine(size_t index, TextRange lineText, GlyphRange trailingSpaces, size_t glyphCount) { }
294 BoxLine(size_t index, TextRange text, bool hardBreak, SkRect bounds)
295 : fTextRange(text), fIndex(index), fIsHardBreak(hardBreak), fBounds(bounds) { }
342 bool hasProperty(TextIndex index, GlyphUnitFlags flag) const {
343 return (fGlyphUnitProperties[index] & flag) == flag;
346 void onBeginLine(size_t index, TextRange lineText, bool hardBreak, SkRect bounds) override;
347 void onEndLine(size_t index, TextRange lineText, GlyphRange trailingSpaces, size_t glyphCount) override;