Home
last modified time | relevance | path

Searched refs:fEditor (Results 1 – 2 of 2) sorted by relevance

/third_party/flutter/skia/experimental/editor/
Deditor_application.cpp83 editor::Editor fEditor; member
97 fEditor.insert(editor::Editor::TextPosition{0, 0}, in loadFile()
121 fEditor.paint(nullptr, options); in onPaint()
125 fEditor.paint(canvas, options); in onPaint()
133 fEditor.setWidth(fWidth - 2 * fMargin); in onResize()
142 int maxPos = std::max(0, fEditor.getHeight() + 2 * fMargin - fHeight / 2); in scroll()
154 this->scroll(-(int)(delta * fEditor.font().getSpacing())); in onMouseWheel()
167 return this->move(fEditor.getPosition({x - fMargin, y + fPos - fMargin}), shiftOrDrag); in onMouse()
180 fEditor.insert(fTextPos, &ch, 1); in onChar()
192 for (editor::StringView str : fEditor.text()) { in onChar()
[all …]
/third_party/skia/modules/skplaintexteditor/app/
Deditor_application.cpp94 Editor fEditor; member
108 fEditor.setFont(SkFont(SkTypeface::MakeFromName(kTypefaces[fTypefaceIndex], in setFont()
116 fEditor.insert(Editor::TextPosition{0, 0}, in loadFile()
140 fEditor.paint(nullptr, options); in onPaint()
144 fEditor.paint(canvas, options); in onPaint()
152 fEditor.setWidth(fWidth - 2 * fMargin); in onResize()
161 int maxPos = std::max(0, fEditor.getHeight() + 2 * fMargin - fHeight / 2); in scroll()
173 this->scroll(-(int)(delta * fEditor.font().getSpacing())); in onMouseWheel()
186 return this->move(fEditor.getPosition({x - fMargin, y + fPos - fMargin}), shiftOrDrag); in onMouse()
199 fEditor.insert(fTextPos, &ch, 1); in onChar()
[all …]