Lines Matching refs:Editor
2 #include "experimental/sktext/editor/Editor.h"
10 std::unique_ptr<Editor> Editor::Make(std::u16string text, SkSize size) {
11 return std::make_unique<Editor>(text, size);
14 Editor::Editor(std::u16string text, SkSize size)
54 void Editor::update() {
71 bool Editor::moveCursor(skui::Key key) {
109 void Editor::onPaint(SkSurface* surface) {
117 void Editor::onResize(int width, int height) {
127 bool Editor::onChar(SkUnichar c, skui::ModifierKey modi) {
147 bool Editor::deleteElement(skui::Key key) {
178 bool Editor::insertCodepoint(SkUnichar unichar) {
203 bool Editor::onKey(skui::Key key, skui::InputState state, skui::ModifierKey modifiers) {
237 bool Editor::onMouse(int x, int y, skui::InputState state, skui::ModifierKey modifiers) {
264 void Editor::paint(SkCanvas* canvas) {
274 std::unique_ptr<Editor> Editor::MakeDemo(SkScalar width, SkScalar height) {
280 return Editor::Make(text0, SkSize::Make(width, height));