aboutsummaryrefslogtreecommitdiffstats
path: root/include/utils/SkTextBox.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/utils/SkTextBox.h')
-rw-r--r--include/utils/SkTextBox.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/utils/SkTextBox.h b/include/utils/SkTextBox.h
index 2c34448..3471f5b 100644
--- a/include/utils/SkTextBox.h
+++ b/include/utils/SkTextBox.h
@@ -62,10 +62,18 @@ public:
void draw(SkCanvas*, const char text[], size_t len, const SkPaint&);
+ void setText(const char text[], size_t len, const SkPaint&);
+ void draw(SkCanvas*);
+ int countLines() const;
+ SkScalar getTextHeight() const;
+
private:
SkRect fBox;
SkScalar fSpacingMul, fSpacingAdd;
uint8_t fMode, fSpacingAlign;
+ const char* fText;
+ size_t fLen;
+ const SkPaint* fPaint;
};
class SkTextLineBreaker {