WIP: Start rendering GPUI views to macOS status bar

This commit is contained in:
Antonio Scandurra 2022-09-12 12:03:03 +02:00
parent f50c6af001
commit 6578af6f3b
5 changed files with 235 additions and 132 deletions

View file

@ -52,7 +52,7 @@ pub trait Platform: Send + Sync {
) -> Box<dyn Window>;
fn key_window_id(&self) -> Option<usize>;
fn add_status_item(&self) -> Box<dyn StatusItem>;
fn add_status_item(&self) -> Box<dyn Window>;
fn write_to_clipboard(&self, item: ClipboardItem);
fn read_from_clipboard(&self) -> Option<ClipboardItem>;
@ -134,8 +134,6 @@ pub trait Window {
fn present_scene(&mut self, scene: Scene);
}
pub trait StatusItem {}
#[derive(Debug)]
pub struct WindowOptions<'a> {
pub bounds: WindowBounds,