e37874e19e
CQ_INCLUDE_TRYBOTS=skia.primary:Build-Mac-Clang-arm-Release-iOS Change-Id: Ie6a20943c51c45f2abc37f7215b1c67810ce20ac Reviewed-on: https://skia-review.googlesource.com/c/skia/+/230736 Auto-Submit: Hal Canary <halcanary@google.com> Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Ben Wagner <bungeman@google.com> Commit-Queue: Hal Canary <halcanary@google.com> |
||
---|---|---|
.. | ||
editor_application.cpp | ||
editor.cpp | ||
editor.h | ||
README.md | ||
run_handler.cpp | ||
run_handler.h | ||
stringslice.cpp | ||
stringslice.h |
#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