diff options
author | 2022-04-26 19:09:09 -0300 | |
---|---|---|
committer | 2022-04-26 19:09:09 -0300 | |
commit | 5be1ac18fe1757d31386f98774d823bd1137eea4 (patch) | |
tree | 07c5b9eb77f7a55f10e2b257569a62ba2b62a38d /graphics | |
parent | 7a13928130803629b15999923da3a9747e110e7a (diff) | |
download | iced-5be1ac18fe1757d31386f98774d823bd1137eea4.tar.gz iced-5be1ac18fe1757d31386f98774d823bd1137eea4.tar.bz2 iced-5be1ac18fe1757d31386f98774d823bd1137eea4.zip |
Rename `GraphicsInformation` to `Information`
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/src/window.rs | 2 | ||||
-rw-r--r-- | graphics/src/window/compositor.rs | 4 | ||||
-rw-r--r-- | graphics/src/window/gl_compositor.rs | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/graphics/src/window.rs b/graphics/src/window.rs index c73c8c53..35a9f06a 100644 --- a/graphics/src/window.rs +++ b/graphics/src/window.rs @@ -4,7 +4,7 @@ mod compositor; #[cfg(feature = "opengl")] mod gl_compositor; -pub use compositor::{Compositor, GraphicsInformation, SurfaceError}; +pub use compositor::{Compositor, Information, SurfaceError}; #[cfg(feature = "opengl")] pub use gl_compositor::GLCompositor; diff --git a/graphics/src/window/compositor.rs b/graphics/src/window/compositor.rs index 035101c9..8a851773 100644 --- a/graphics/src/window/compositor.rs +++ b/graphics/src/window/compositor.rs @@ -39,7 +39,7 @@ pub trait Compositor: Sized { ); /// Returns [`GraphicsInformation`] used by this [`Compositor`]. - fn get_information(&self) -> GraphicsInformation; + fn get_information(&self) -> Information; /// Presents the [`Renderer`] primitives to the next frame of the given [`Surface`]. /// @@ -77,7 +77,7 @@ pub enum SurfaceError { /// Contains informations about the graphics (e.g. graphics adapter, graphics backend). #[derive(Debug)] -pub struct GraphicsInformation { +pub struct Information { /// Contains the graphics adapter. pub adapter: String, /// Contains the graphics backend. diff --git a/graphics/src/window/gl_compositor.rs b/graphics/src/window/gl_compositor.rs index 23c6d3f8..65761fe8 100644 --- a/graphics/src/window/gl_compositor.rs +++ b/graphics/src/window/gl_compositor.rs @@ -1,4 +1,4 @@ -use crate::window::GraphicsInformation; +use crate::window::Information; use crate::{Color, Error, Size, Viewport}; use core::ffi::c_void; @@ -50,7 +50,7 @@ pub trait GLCompositor: Sized { fn resize_viewport(&mut self, physical_size: Size<u32>); /// Returns [`GraphicsInformation`] used by this [`Compositor`]. - fn get_information(&self) -> GraphicsInformation; + fn get_information(&self) -> Information; /// Presents the primitives of the [`Renderer`] to the next frame of the /// [`GLCompositor`]. |