linux: implement dispatcher, add dummy textsystem
This commit is contained in:
parent
d675abf70c
commit
ca62d22147
10 changed files with 194 additions and 14 deletions
|
@ -1,7 +1,7 @@
|
|||
use crate::{
|
||||
AnyWindowHandle, BackgroundExecutor, ClipboardItem, CursorStyle, DisplayId, ForegroundExecutor,
|
||||
Keymap, Platform, PlatformDisplay, PlatformTextSystem, Task, TestDisplay, TestWindow,
|
||||
WindowOptions,
|
||||
Keymap, Platform, PlatformDisplay, PlatformTextSystem, Task, TestDisplay, TestTextSystem,
|
||||
TestWindow, WindowOptions,
|
||||
};
|
||||
use anyhow::{anyhow, Result};
|
||||
use collections::VecDeque;
|
||||
|
@ -118,7 +118,7 @@ impl Platform for TestPlatform {
|
|||
}
|
||||
|
||||
fn text_system(&self) -> Arc<dyn PlatformTextSystem> {
|
||||
Arc::new(crate::platform::mac::MacTextSystem::new())
|
||||
Arc::new(TestTextSystem {})
|
||||
}
|
||||
|
||||
fn run(&self, _on_finish_launching: Box<dyn FnOnce()>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue