Skip to content

Commit 43d3620

Browse files
nicoburnsjackpot51
authored andcommitted
Convert editor example to winit
Swap color channels Remove unused code in rich-text-winit example Port editor example to winit WIP Implement scroll logic + add shape_as_needed Handle text input using named keys request redraw on click cargo fmt Implement dragging Refactor winit event handlers to avoid duplication Re-enable text size keyboard shortcuts Remove unused imports Fix updating scale factor Fix unused variable warnings Remove logging Remove commented code Delete rich-text-winit example Rename editor-winit example to editor
1 parent 22e6196 commit 43d3620

File tree

3 files changed

+341
-274
lines changed

3 files changed

+341
-274
lines changed

examples/editor-orbclient/src/main.rs

-272
This file was deleted.

examples/editor-orbclient/Cargo.toml examples/editor/Cargo.toml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "editor-orbclient"
2+
name = "editor"
33
version = "0.1.0"
44
authors = ["Jeremy Soller <jeremy@system76.com>"]
55
edition = "2021"
@@ -11,8 +11,10 @@ cosmic-text = { path = "../..", features = ["syntect"] }
1111
env_logger = "0.10"
1212
fontdb = "0.13"
1313
log = "0.4"
14-
orbclient = "0.3.35"
14+
softbuffer = "0.4"
15+
tiny-skia = "0.11"
1516
unicode-segmentation = "1.7"
17+
winit = "0.29"
1618

1719
[features]
1820
default = []

0 commit comments

Comments
 (0)