From 005e516b5e1e8bb22f2da8524ffe4529f3b60ba1 Mon Sep 17 00:00:00 2001 From: Richard Date: Tue, 26 Apr 2022 19:20:38 -0300 Subject: Rename `get_information` to `fetch_information` --- glow/src/window/compositor.rs | 2 +- glutin/src/application.rs | 4 ++-- graphics/src/window/compositor.rs | 2 +- graphics/src/window/gl_compositor.rs | 2 +- wgpu/src/window/compositor.rs | 2 +- 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( 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); /// 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( 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, -- cgit