Implement explicit text caching in the widget state tree

This commit is contained in:
Héctor Ramón Jiménez 2023-08-30 04:31:21 +02:00
parent c9bd48704d
commit ed3454301e
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
79 changed files with 1910 additions and 1705 deletions

View file

@ -1,6 +1,6 @@
//! Configure your application.
use crate::window;
use crate::Font;
use crate::{Font, Pixels};
/// The settings of an application.
#[derive(Debug, Clone)]
@ -29,7 +29,7 @@ pub struct Settings<Flags> {
/// The text size that will be used by default.
///
/// The default value is `16.0`.
pub default_text_size: f32,
pub default_text_size: Pixels,
/// If set to true, the renderer will try to perform antialiasing for some
/// primitives.
@ -80,7 +80,7 @@ where
window: Default::default(),
flags: Default::default(),
default_font: Default::default(),
default_text_size: 16.0,
default_text_size: Pixels(16.0),
antialiasing: false,
exit_on_close_request: true,
}