doc: Update Iced editor info.

This commit is contained in:
Jason Lee 2025-09-30 16:50:41 +08:00
parent 935cd93f5a
commit de4a7a7026

View file

@ -68,7 +68,7 @@ Check out [CONTRIBUTING.md](CONTRIBUTING.md) for more details.
## Compare to others ## Compare to others
| Features | GPUI Component | [Iced] | [egui] | [QT 6] | | Features | GPUI Component | [Iced] | [egui] | [QT 6] |
| --------------------- | ------------------------------ | ----------- | --------------------- | ------------------------------ | | --------------------- | ------------------------------ | ------------------ | --------------------- | ------------------------------ |
| Language | Rust | Rust | Rust | C++/QML | | Language | Rust | Rust | Rust | C++/QML |
| Core Render | GPUI | wgpu | wgpu | QT | | Core Render | GPUI | wgpu | wgpu | QT |
| License | Apache 2.0 | MIT | MIT/Apache 2.0 | Commercial | | License | Apache 2.0 | MIT | MIT/Apache 2.0 | Commercial |
@ -81,7 +81,7 @@ Check out [CONTRIBUTING.md](CONTRIBUTING.md) for more details.
| Chart | Yes | No | No | Yes | | Chart | Yes | No | No | Yes |
| Table (Large dataset) | Yes<br>(Virtual Rows, Columns) | No | Yes<br>(Virtual Rows) | Yes<br>(Virtual Rows, Columns) | | Table (Large dataset) | Yes<br>(Virtual Rows, Columns) | No | Yes<br>(Virtual Rows) | Yes<br>(Virtual Rows, Columns) |
| Table Column Resize | Yes | No | Yes | Yes | | Table Column Resize | Yes | No | Yes | Yes |
| Text base | Rope | String [^3] | trait TextBuffer [^4] | [QTextDocument] | | Text base | Rope | [COSMIC Text] [^3] | trait TextBuffer [^4] | [QTextDocument] |
| CodeEditor | Simple | Simple | Simple | Basic API | | CodeEditor | Simple | Simple | Simple | Basic API |
| Dock Layout | Yes | Yes | Yes | Yes | | Dock Layout | Yes | Yes | Yes | Yes |
| Syntax Highlight | [Tree Sitter] | [Syntect] | [Syntect] | [QSyntaxHighlighter] | | Syntax Highlight | [Tree Sitter] | [Syntect] | [Syntect] | [QSyntaxHighlighter] |
@ -101,12 +101,13 @@ Check out [CONTRIBUTING.md](CONTRIBUTING.md) for more details.
[Syntect]: https://github.com/trishume/syntect [Syntect]: https://github.com/trishume/syntect
[QSyntaxHighlighter]: https://doc.qt.io/qt-6/qsyntaxhighlighter.html [QSyntaxHighlighter]: https://doc.qt.io/qt-6/qsyntaxhighlighter.html
[QTextDocument]: https://doc.qt.io/qt-6/qtextdocument.html [QTextDocument]: https://doc.qt.io/qt-6/qtextdocument.html
[COSMIC Text]: https://github.com/pop-os/cosmic-text
[^1]: Release builds by use simple hello world example. [^1]: Release builds by use simple hello world example.
[^2]: [Reducing Binary Size of Qt Applications](https://www.qt.io/blog/reducing-binary-size-of-qt-applications-part-3-more-platforms) [^2]: [Reducing Binary Size of Qt Applications](https://www.qt.io/blog/reducing-binary-size-of-qt-applications-part-3-more-platforms)
[^3]: Iced TextInput: https://github.com/iced-rs/iced/blob/c65bfd1afb399a74eddb3f66853f3cc385a08826/widget/src/text_input.rs#L111 [^3]: Iced Editor: https://github.com/iced-rs/iced/blob/db5a1f6353b9f8520c4f9633d1cdc90242c2afe1/graphics/src/text/editor.rs#L65-L68
[^4]: egui TextBuffer: https://github.com/emilk/egui/blob/0a81372cfd3a4deda640acdecbbaf24bf78bb6a2/crates/egui/src/widgets/text_edit/text_buffer.rs#L20 [^4]: egui TextBuffer: https://github.com/emilk/egui/blob/0a81372cfd3a4deda640acdecbbaf24bf78bb6a2/crates/egui/src/widgets/text_edit/text_buffer.rs#L20