diff options
author | 2020-02-18 09:54:24 +0100 | |
---|---|---|
committer | 2020-02-18 09:54:24 +0100 | |
commit | 6f7247ca13181bcdfe1a3065215c1b3204723b84 (patch) | |
tree | b183e5403ef2003210e2445fad997f781c847e4c | |
parent | 9c067562fa765cfc49d09cd9b12fbba96d5619fa (diff) | |
download | iced-6f7247ca13181bcdfe1a3065215c1b3204723b84.tar.gz iced-6f7247ca13181bcdfe1a3065215c1b3204723b84.tar.bz2 iced-6f7247ca13181bcdfe1a3065215c1b3204723b84.zip |
Rename `Settings::use_antialiasing` to `antialiasing`
Diffstat (limited to '')
-rw-r--r-- | examples/bezier_tool/src/main.rs | 2 | ||||
-rw-r--r-- | examples/clock/src/main.rs | 2 | ||||
-rw-r--r-- | examples/solar_system/src/main.rs | 2 | ||||
-rw-r--r-- | src/application.rs | 2 | ||||
-rw-r--r-- | src/settings.rs | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/examples/bezier_tool/src/main.rs b/examples/bezier_tool/src/main.rs index 01f8f847..023eb0f7 100644 --- a/examples/bezier_tool/src/main.rs +++ b/examples/bezier_tool/src/main.rs @@ -287,7 +287,7 @@ use iced::{ pub fn main() { Example::run(Settings { - use_antialiasing: true, + antialiasing: true, ..Settings::default() }); } diff --git a/examples/clock/src/main.rs b/examples/clock/src/main.rs index 559f0192..d8266f06 100644 --- a/examples/clock/src/main.rs +++ b/examples/clock/src/main.rs @@ -5,7 +5,7 @@ use iced::{ pub fn main() { Clock::run(Settings { - use_antialiasing: true, + antialiasing: true, ..Settings::default() }) } diff --git a/examples/solar_system/src/main.rs b/examples/solar_system/src/main.rs index eee51dc2..4c239806 100644 --- a/examples/solar_system/src/main.rs +++ b/examples/solar_system/src/main.rs @@ -15,7 +15,7 @@ use std::time::Instant; pub fn main() { SolarSystem::run(Settings { - use_antialiasing: true, + antialiasing: true, ..Settings::default() }) } diff --git a/src/application.rs b/src/application.rs index a569163b..374810cb 100644 --- a/src/application.rs +++ b/src/application.rs @@ -178,7 +178,7 @@ pub trait Application: Sized { _settings.into(), iced_wgpu::Settings { default_font: _settings.default_font, - antialiasing: if _settings.use_antialiasing { + antialiasing: if _settings.antialiasing { Some(iced_wgpu::settings::Antialiasing::MSAAx4) } else { None diff --git a/src/settings.rs b/src/settings.rs index 757dc72f..32ec583c 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -17,14 +17,14 @@ pub struct Settings { // TODO: Add `name` for web compatibility pub default_font: Option<&'static [u8]>, - /// If set to true, the renderer will try to use antialiasing for some + /// If set to true, the renderer will try to perform antialiasing for some /// primitives. /// /// Enabling it can produce a smoother result in some widgets, like the /// `Canvas`, at a performance cost. /// /// By default, it is disabled. - pub use_antialiasing: bool, + pub antialiasing: bool, } #[cfg(not(target_arch = "wasm32"))] |