diff options
-rw-r--r-- | examples/integration_wgpu/README.md | 2 | ||||
-rw-r--r-- | graphics/src/widget/canvas/cache.rs | 2 | ||||
-rw-r--r-- | native/src/user_interface.rs | 7 | ||||
-rw-r--r-- | native/src/window/action.rs | 2 |
4 files changed, 8 insertions, 5 deletions
diff --git a/examples/integration_wgpu/README.md b/examples/integration_wgpu/README.md index faefa153..ece9ba1e 100644 --- a/examples/integration_wgpu/README.md +++ b/examples/integration_wgpu/README.md @@ -12,7 +12,7 @@ The __[`main`]__ file contains all the code of the example. You can run it with `cargo run`: ``` -cargo run --package integration +cargo run --package integration_wgpu ``` ### How to run this example with WebGL backend diff --git a/graphics/src/widget/canvas/cache.rs b/graphics/src/widget/canvas/cache.rs index 5af694e9..49873ac9 100644 --- a/graphics/src/widget/canvas/cache.rs +++ b/graphics/src/widget/canvas/cache.rs @@ -35,7 +35,7 @@ impl Cache { } /// Clears the [`Cache`], forcing a redraw the next time it is used. - pub fn clear(&mut self) { + pub fn clear(&self) { *self.state.borrow_mut() = State::Empty; } diff --git a/native/src/user_interface.rs b/native/src/user_interface.rs index 4bcf1e0c..344ba4d6 100644 --- a/native/src/user_interface.rs +++ b/native/src/user_interface.rs @@ -15,10 +15,11 @@ use crate::{Clipboard, Element, Layout, Point, Rectangle, Shell, Size}; /// charge of using this type in your system in any way you want. /// /// # Example -/// The [`integration` example] uses a [`UserInterface`] to integrate Iced in -/// an existing graphical application. +/// The [`integration_opengl`] & [`integration_wgpu`] examples use a +/// [`UserInterface`] to integrate Iced in an existing graphical application. /// -/// [`integration` example]: https://github.com/iced-rs/iced/tree/0.4/examples/integration +/// [`integration_opengl`]: https://github.com/iced-rs/iced/tree/0.4/examples/integration_opengl +/// [`integration_wgpu`]: https://github.com/iced-rs/iced/tree/0.4/examples/integration_wgpu #[allow(missing_debug_implementations)] pub struct UserInterface<'a, Message, Renderer> { root: Element<'a, Message, Renderer>, diff --git a/native/src/window/action.rs b/native/src/window/action.rs index d891c6ac..73338e22 100644 --- a/native/src/window/action.rs +++ b/native/src/window/action.rs @@ -13,6 +13,8 @@ pub enum Action<T> { height: u32, }, /// Move the window. + /// + /// Unsupported on Wayland. Move { /// The new logical x location of the window x: i32, |