WIP - adds platform APIs for checking the top most window
This commit is contained in:
parent
a66a0cfd70
commit
426aeb7c5e
9 changed files with 126 additions and 5 deletions
|
@ -64,7 +64,7 @@ pub trait Platform: Send + Sync {
|
|||
fn read_credentials(&self, url: &str) -> Result<Option<(String, Vec<u8>)>>;
|
||||
fn delete_credentials(&self, url: &str) -> Result<()>;
|
||||
|
||||
fn set_cursor_style(&self, style: CursorStyle);
|
||||
fn set_cursor_style(&self, style: CursorStyle, window_id: usize, screen_position: &Vector2F);
|
||||
fn should_auto_hide_scrollbars(&self) -> bool;
|
||||
|
||||
fn local_timezone(&self) -> UtcOffset;
|
||||
|
@ -145,6 +145,7 @@ pub trait Window {
|
|||
fn present_scene(&mut self, scene: Scene);
|
||||
fn appearance(&self) -> Appearance;
|
||||
fn on_appearance_changed(&mut self, callback: Box<dyn FnMut()>);
|
||||
fn screen_position(&self, view_position: &Vector2F) -> Vector2F;
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue