Lines Matching refs:startIndex
35 void SpannableString::SetTextStyle(TextStyle inputTextStyle, uint16_t startIndex, uint16_t endIndex)
37 StyleSpan* style = new StyleSpan(inputTextStyle, startIndex, endIndex);
39 SetSpannable(true, startIndex, endIndex);
166 bool SpannableString::SetSpannable(bool value, uint16_t startIndex, uint16_t endIndex)
177 for (uint16_t i = startIndex; ((i < endIndex) && (i < isSpannableLen_)); i++) {
197 void SpannableString::SetFontSize(uint8_t inputFontSize, uint16_t startIndex, uint16_t endIndex)
201 inputSpan.start = startIndex;
205 SetSpannable(true, startIndex, endIndex);
215 needAddNode = EqualInsert<FontSizeSpan>(startIndex, endIndex, tempStart, tempEnd, &tempSpan, sizeList_);
219 tempLeft.end = startIndex;
225 needAddNode = UnequalInsert<FontSizeSpan>(startIndex, endIndex, tempStart, tempEnd, &tempSpan,
230 inputSpan.start = startIndex;
234 SetSpannable(true, startIndex, endIndex);
256 void SpannableString::SetFontId(uint16_t inputFontId, uint16_t startIndex, uint16_t endIndex)
260 inputSpan.start = startIndex;
264 SetSpannable(true, startIndex, endIndex);
274 needAddNode = EqualInsert<FontIdSpan>(startIndex, endIndex, tempStart, tempEnd, &tempSpan, fontIdList_);
278 tempLeft.end = startIndex;
284 needAddNode = UnequalInsert<FontIdSpan>(startIndex, endIndex, tempStart, tempEnd, &tempSpan, fontIdList_,
289 inputSpan.start = startIndex;
293 SetSpannable(true, startIndex, endIndex);
314 void SpannableString::SetFontHeight(int16_t inputHeight, uint16_t startIndex, uint16_t endIndex)
318 inputSpan.start = startIndex;
322 SetSpannable(true, startIndex, endIndex);
333 EqualInsert<LetterHeightSpan>(startIndex, endIndex, tempStart, tempEnd, &tempSpan, heightList_);
337 tempLeft.end = startIndex;
343 needAddNode = UnequalInsert<LetterHeightSpan>(startIndex, endIndex, tempStart, tempEnd, &tempSpan,
348 inputSpan.start = startIndex;
352 SetSpannable(true, startIndex, endIndex);
383 void SpannableString::SetBackgroundColor(ColorType inputBackgroundColor, uint16_t startIndex, uint16_t endIndex)
387 inputSpan.start = startIndex;
391 SetSpannable(true, startIndex, endIndex);
403 startIndex, endIndex, tempStart, tempEnd, &tempSpan,
408 tempLeft.end = startIndex;
415 startIndex, endIndex, tempStart, tempEnd, &tempSpan,
420 inputSpan.start = startIndex;
424 SetSpannable(true, startIndex, endIndex);
446 void SpannableString::SetForegroundColor(ColorType inputForegroundColor, uint16_t startIndex, uint16_t endIndex)
450 inputSpan.start = startIndex;
454 SetSpannable(true, startIndex, endIndex);
466 startIndex, endIndex, tempStart, tempEnd, &tempSpan,
471 tempLeft.end = startIndex;
477 needAddNode = UnequalInsert<ForegroundColorSpan>(startIndex, endIndex, tempStart, tempEnd, &tempSpan,
482 inputSpan.start = startIndex;
486 SetSpannable(true, startIndex, endIndex);
508 void SpannableString::SetLineBackgroundColor(ColorType inputLineBackgroundColor, uint16_t startIndex, uint16_t endIndex)
512 inputSpan.start = startIndex;
516 SetSpannable(true, startIndex, endIndex);
528 startIndex, endIndex, tempStart, tempEnd, &tempSpan,
533 tempLeft.end = startIndex;
540 startIndex, endIndex, tempStart, tempEnd, &tempSpan,
545 inputSpan.start = startIndex;
549 SetSpannable(true, startIndex, endIndex);