Home
last modified time | relevance | path

Searched refs:textRect (Results 1 – 3 of 3) sorted by relevance

/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/xy/
DXYGraphWidget.java686 RectF textRect = new RectF(FontUtils.getStringDimensions(text, in drawMarkerText() local
688 textRect.offsetTo(x, y - textRect.height()); in drawMarkerText()
690 if (textRect.right > paddedGridRect.right) { in drawMarkerText()
691 textRect.offset(-(textRect.right - paddedGridRect.right), 0); in drawMarkerText()
694 if (textRect.top < paddedGridRect.top) { in drawMarkerText()
695 textRect.offset(0, paddedGridRect.top - textRect.top); in drawMarkerText()
698 canvas.drawText(text, textRect.left, textRect.bottom, in drawMarkerText()
/external/skqp/gm/
Dwacky_yuv_formats.cpp629 SkRect textRect; in draw_col_label() local
633 font.measureText(colLabel.c_str(), colLabel.size(), kUTF8_SkTextEncoding, &textRect); in draw_col_label()
634 int y = textRect.height(); in draw_col_label()
640 font.measureText(colLabel.c_str(), colLabel.size(), kUTF8_SkTextEncoding, &textRect); in draw_col_label()
641 y += textRect.height(); in draw_col_label()
654 SkRect textRect; in draw_row_label() local
658 font.measureText(rowLabel.c_str(), rowLabel.size(), kUTF8_SkTextEncoding, &textRect); in draw_row_label()
659 y += kTileWidthHeight/2 + textRect.height()/2; in draw_row_label()
/external/skia/gm/
Dwacky_yuv_formats.cpp637 SkRect textRect; in draw_col_label() local
641 font.measureText(colLabel.c_str(), colLabel.size(), kUTF8_SkTextEncoding, &textRect); in draw_col_label()
642 int y = textRect.height(); in draw_col_label()
648 font.measureText(colLabel.c_str(), colLabel.size(), kUTF8_SkTextEncoding, &textRect); in draw_col_label()
649 y += textRect.height(); in draw_col_label()
662 SkRect textRect; in draw_row_label() local
666 font.measureText(rowLabel.c_str(), rowLabel.size(), kUTF8_SkTextEncoding, &textRect); in draw_row_label()
667 y += kTileWidthHeight/2 + textRect.height()/2; in draw_row_label()