skia2/experimental/editor
Hal Canary 3f4a2b3499 sk_app, editor: cursor blink
Change-Id: I43044727298265ddb711456346c2b544ca8d509d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/231477
Commit-Queue: Hal Canary <halcanary@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Auto-Submit: Hal Canary <halcanary@google.com>
2019-08-02 15:36:40 +00:00
..
BUILD.gn editor: try to fix moltenvk bots 2019-07-30 17:11:03 +00:00
editor_application.cpp sk_app, editor: cursor blink 2019-08-02 15:36:40 +00:00
editor.cpp experimental/editor : handle word-left and word-right 2019-07-30 15:48:29 +00:00
editor.h experimental/editor : handle word-left and word-right 2019-07-30 15:48:29 +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
word_boundaries.cpp experimental/editor : handle word-left and word-right 2019-07-30 15:48:29 +00:00
word_boundaries.h experimental/editor : handle word-left and word-right 2019-07-30 15:48:29 +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