OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2003, 2006, 2007, 2011 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2006, 2007, 2011 Apple Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 #if ENABLE(SVG) | 71 #if ENABLE(SVG) |
72 , m_horizontalGlyphStretch(1) | 72 , m_horizontalGlyphStretch(1) |
73 #endif | 73 #endif |
74 , m_allowTabs(allowTabs) | 74 , m_allowTabs(allowTabs) |
75 , m_direction(direction) | 75 , m_direction(direction) |
76 , m_directionalOverride(directionalOverride) | 76 , m_directionalOverride(directionalOverride) |
77 , m_disableSpacing(false) | 77 , m_disableSpacing(false) |
78 { | 78 { |
79 } | 79 } |
80 | 80 |
81 UChar operator[](int i) const { return m_characters[i]; } | 81 UChar operator[](int i) const { ASSERT(i >= 0 && i < m_len); return m_charac
ters[i]; } |
82 const UChar* data(int i) const { return &m_characters[i]; } | 82 const UChar* data(int i) const { ASSERT(i >= 0 && i < m_len); return &m_char
acters[i]; } |
83 | 83 |
84 const UChar* characters() const { return m_characters; } | 84 const UChar* characters() const { return m_characters; } |
85 int length() const { return m_len; } | 85 int length() const { return m_len; } |
86 | 86 |
87 void setText(const UChar* c, int len) { m_characters = c; m_len = len; } | 87 void setText(const UChar* c, int len) { m_characters = c; m_len = len; } |
88 | 88 |
89 #if ENABLE(SVG) | 89 #if ENABLE(SVG) |
90 float horizontalGlyphStretch() const { return m_horizontalGlyphStretch; } | 90 float horizontalGlyphStretch() const { return m_horizontalGlyphStretch; } |
91 void setHorizontalGlyphStretch(float scale) { m_horizontalGlyphStretch = sca
le; } | 91 void setHorizontalGlyphStretch(float scale) { m_horizontalGlyphStretch = sca
le; } |
92 #endif | 92 #endif |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 bool m_allowTabs; | 141 bool m_allowTabs; |
142 TextDirection m_direction; | 142 TextDirection m_direction; |
143 bool m_directionalOverride; // Was this direction set by an override charact
er. | 143 bool m_directionalOverride; // Was this direction set by an override charact
er. |
144 bool m_disableSpacing; | 144 bool m_disableSpacing; |
145 RefPtr<RenderingContext> m_renderingContext; | 145 RefPtr<RenderingContext> m_renderingContext; |
146 }; | 146 }; |
147 | 147 |
148 } | 148 } |
149 | 149 |
150 #endif | 150 #endif |
OLD | NEW |