skia2/experimental/editor
Hal Canary 9ef1b771af experimental/editor: scroll on cursor movement, Editor::getLocation
Bug: skia:9020
Change-Id: Iab91402790077c969af8e553b03525e63dab44ba
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/230496
Auto-Submit: Hal Canary <halcanary@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
2019-07-29 19:43:38 +00:00
..
editor_application.cpp experimental/editor: scroll on cursor movement, Editor::getLocation 2019-07-29 19:43:38 +00:00
editor.cpp experimental/editor: scroll on cursor movement, Editor::getLocation 2019-07-29 19:43:38 +00:00
editor.h experimental/editor: scroll on cursor movement, Editor::getLocation 2019-07-29 19:43:38 +00:00
README.md experimental/editor: progress on newlines 2019-06-24 17:24:35 +00:00
run_handler.cpp experimental/editor: fix home, end 2019-07-26 15:54:12 +00:00
run_handler.h experimental/editor: fix home, end 2019-07-26 15:54:12 +00:00
stringslice.cpp experimental/editor: progress on newlines 2019-06-24 17:24:35 +00:00
stringslice.h experimental/editor: progress on newlines 2019-06-24 17:24:35 +00:00

#Editor#

This is an experimental Editor layer that abstracts out SkShaper text layeout for easy embedding into an application. The Editor layer is agnostic about the operating system.

+--------------------------------+
|Application                     |
+-+----+-------------------------+
  |    |
  |    |
  |  +-v-------------------------+
  |  |Editor                     |
  |  +-+----+--------------------+
  |    |    |
  |    |    |
  |    |  +-v--------------------+
  |    |  |SkShaper              |
  |    |  +-+--------+-----------+
  |    |    |        |
  |    |    |        |
+-v----v----v--+   +-v-----------+
|Skia          |   |HarfBuzz, ICU|
+--------------+   +-------------+

The Application layer must interact with the:

  • Windowing system
  • File system
  • Clipboard
  • Keyboard/mouse input.

Try it out:

tools/git-sync-deps
bin/gn gen out/default
ninja -C out/default editor
out/default/editor whitespace.txt