diff options
author | 2022-04-26 19:20:38 -0300 | |
---|---|---|
committer | 2022-04-27 15:42:53 -0300 | |
commit | 005e516b5e1e8bb22f2da8524ffe4529f3b60ba1 (patch) | |
tree | db0ee0c41abf82949a901e71e952c822f308553d | |
parent | 984d1f375ecec301dd42b049eecd1b88e3bca32a (diff) | |
download | iced-005e516b5e1e8bb22f2da8524ffe4529f3b60ba1.tar.gz iced-005e516b5e1e8bb22f2da8524ffe4529f3b60ba1.tar.bz2 iced-005e516b5e1e8bb22f2da8524ffe4529f3b60ba1.zip |
Rename `get_information` to `fetch_information`
-rw-r--r-- | glow/src/window/compositor.rs | 2 | ||||
-rw-r--r-- | glutin/src/application.rs | 4 | ||||
-rw-r--r-- | graphics/src/window/compositor.rs | 2 | ||||
-rw-r--r-- | graphics/src/window/gl_compositor.rs | 2 | ||||
-rw-r--r-- | wgpu/src/window/compositor.rs | 2 | ||||
-rw-r--r-- | winit/src/application.rs | 4 |
6 files changed, 8 insertions, 8 deletions
diff --git a/glow/src/window/compositor.rs b/glow/src/window/compositor.rs index 68d27d36..622d7fc0 100644 --- a/glow/src/window/compositor.rs +++ b/glow/src/window/compositor.rs @@ -67,7 +67,7 @@ impl iced_graphics::window::GLCompositor for Compositor { } } - fn get_information(&self) -> compositor::Information { + fn fetch_information(&self) -> compositor::Information { let adapter = unsafe { self.gl.get_parameter_string(glow::RENDERER) }; compositor::Information { diff --git a/glutin/src/application.rs b/glutin/src/application.rs index 5e29ddc8..1400dcce 100644 --- a/glutin/src/application.rs +++ b/glutin/src/application.rs @@ -130,7 +130,7 @@ where &mut clipboard, &mut proxy, context.window(), - &compositor.get_information(), + &compositor.fetch_information(), ); runtime.track(subscription); @@ -209,7 +209,7 @@ async fn run_instance<A, E, C>( let mut state = application::State::new(&application, context.window()); let mut viewport_version = state.viewport_version(); - let graphics_info = compositor.get_information(); + let graphics_info = compositor.fetch_information(); let mut user_interface = ManuallyDrop::new(application::build_user_interface( &mut application, diff --git a/graphics/src/window/compositor.rs b/graphics/src/window/compositor.rs index 3f1165d4..7525de1d 100644 --- a/graphics/src/window/compositor.rs +++ b/graphics/src/window/compositor.rs @@ -41,7 +41,7 @@ pub trait Compositor: Sized { ); /// Returns [`GraphicsInformation`] used by this [`Compositor`]. - fn get_information(&self) -> Information; + fn fetch_information(&self) -> Information; /// Presents the [`Renderer`] primitives to the next frame of the given [`Surface`]. /// diff --git a/graphics/src/window/gl_compositor.rs b/graphics/src/window/gl_compositor.rs index 3adde8e6..4ff17366 100644 --- a/graphics/src/window/gl_compositor.rs +++ b/graphics/src/window/gl_compositor.rs @@ -52,7 +52,7 @@ pub trait GLCompositor: Sized { fn resize_viewport(&mut self, physical_size: Size<u32>); /// Returns [`GraphicsInformation`] used by this [`Compositor`]. - fn get_information(&self) -> Information; + fn fetch_information(&self) -> Information; /// Presents the primitives of the [`Renderer`] to the next frame of the /// [`GLCompositor`]. diff --git a/wgpu/src/window/compositor.rs b/wgpu/src/window/compositor.rs index 04393fe5..54ea8247 100644 --- a/wgpu/src/window/compositor.rs +++ b/wgpu/src/window/compositor.rs @@ -158,7 +158,7 @@ impl iced_graphics::window::Compositor for Compositor { ); } - fn get_information(&self) -> compositor::Information { + fn fetch_information(&self) -> compositor::Information { let information = self.adapter.get_info(); compositor::Information { diff --git a/winit/src/application.rs b/winit/src/application.rs index 853ede0c..59f0624c 100644 --- a/winit/src/application.rs +++ b/winit/src/application.rs @@ -176,7 +176,7 @@ where &mut clipboard, &mut proxy, &window, - &compositor.get_information(), + &compositor.fetch_information(), ); runtime.track(subscription); @@ -264,7 +264,7 @@ async fn run_instance<A, E, C>( physical_size.height, ); - let graphics_info = compositor.get_information(); + let graphics_info = compositor.fetch_information(); let mut user_interface = ManuallyDrop::new(build_user_interface( &mut application, |