Rename get_information to fetch_information

This commit is contained in:
Richard 2022-04-26 19:20:38 -03:00
parent 984d1f375e
commit 005e516b5e
6 changed files with 8 additions and 8 deletions

View file

@ -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 {

View file

@ -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,

View file

@ -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`].
///

View file

@ -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`].

View file

@ -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 {

View file

@ -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,