Fix compile errors on Linux (#7527)
Added some missing trait functions and `unimplemented` markings Release Notes: - N/A
This commit is contained in:
parent
6cdd7796c3
commit
219ec91748
2 changed files with 7 additions and 4 deletions
|
@ -345,7 +345,9 @@ impl Platform for LinuxPlatform {
|
||||||
fn set_cursor_style(&self, style: CursorStyle) {}
|
fn set_cursor_style(&self, style: CursorStyle) {}
|
||||||
|
|
||||||
//todo!(linux)
|
//todo!(linux)
|
||||||
fn should_auto_hide_scrollbars(&self) -> bool {}
|
fn should_auto_hide_scrollbars(&self) -> bool {
|
||||||
|
unimplemented!()
|
||||||
|
}
|
||||||
|
|
||||||
//todo!(linux)
|
//todo!(linux)
|
||||||
fn write_to_clipboard(&self, item: ClipboardItem) {}
|
fn write_to_clipboard(&self, item: ClipboardItem) {}
|
||||||
|
@ -366,6 +368,10 @@ impl Platform for LinuxPlatform {
|
||||||
fn delete_credentials(&self, url: &str) -> Task<Result<()>> {
|
fn delete_credentials(&self, url: &str) -> Task<Result<()>> {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn window_appearance(&self) -> crate::WindowAppearance {
|
||||||
|
unimplemented!()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
|
|
@ -410,9 +410,6 @@ impl PlatformWindow for LinuxWindow {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
//todo!(linux)
|
|
||||||
fn invalidate(&self) {}
|
|
||||||
|
|
||||||
fn draw(&self, scene: &crate::Scene) {
|
fn draw(&self, scene: &crate::Scene) {
|
||||||
let mut inner = self.0.inner.lock();
|
let mut inner = self.0.inner.lock();
|
||||||
inner.renderer.draw(scene);
|
inner.renderer.draw(scene);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue