skia2/experimental/editor
Hal Canary 43e97165d2 experimental/editor: app layer: setTitle
Change-Id: I8f8aec909f85e3bc99f6b0c9887ba513b17e00c4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/223925
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
2019-06-26 16:58:20 +00:00
..
editor_application.cpp experimental/editor: app layer: setTitle 2019-06-26 16:58:20 +00:00
editor.cpp experimental/editor: progress on newlines 2019-06-24 17:24:35 +00:00
editor.h experimental/editor: progress on newlines 2019-06-24 17:24:35 +00:00
README.md experimental/editor: progress on newlines 2019-06-24 17:24:35 +00:00
run_handler.cpp preserve comments past the #include "" 2019-05-14 19:35:34 +00:00
run_handler.h experimental/editor: progress on newlines 2019-06-24 17:24:35 +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