Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(769)

Side by Side Diff: include/text/SkTextLayout.h

Issue 385323002: Cleanup: Remove unused/unimplemented SkTextLayout.h. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gyp/public_headers.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1
2 /*
3 * Copyright 2011 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8 #ifndef SkTextLayout_DEFINED
9 #define SkTextLayout_DEFINED
10
11 #include "SkPaint.h"
12 #include "SkRefCnt.h"
13
14 class SkTextStyle : public SkRefCnt {
15 public:
16 SK_DECLARE_INST_COUNT(SkTextStyle)
17
18 SkTextStyle();
19 SkTextStyle(const SkTextStyle&);
20 explicit SkTextStyle(const SkPaint&);
21 virtual ~SkTextStyle();
22
23 const SkPaint& paint() const { return fPaint; }
24 SkPaint& paint() { return fPaint; }
25
26 // todo: bidi-override, language
27
28 private:
29 SkPaint fPaint;
30
31 typedef SkRefCnt INHERITED;
32 };
33
34 class SkTextLayout {
35 public:
36 SkTextLayout();
37 ~SkTextLayout();
38
39 void setText(const char text[], size_t length);
40 void setBounds(const SkRect& bounds);
41
42 SkTextStyle* getDefaultStyle() const { return fDefaultStyle; }
43 SkTextStyle* setDefaultStyle(SkTextStyle*);
44
45 // SkTextStyle* setStyle(SkTextStyle*, size_t offset, size_t length);
46
47 void draw(SkCanvas* canvas);
48
49 private:
50 SkTDArray<char> fText;
51 SkTextStyle* fDefaultStyle;
52 SkRect fBounds;
53
54 // cache
55 struct Line;
56 struct GlyphRun;
57 SkTDArray<Line*> fLines;
58 };
59
60 #endif
OLDNEW
« no previous file with comments | « gyp/public_headers.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698