From f095c38152fd8f59b591e9b5c34ebbeb6d31bede Mon Sep 17 00:00:00 2001 From: BeastLe9enD Date: Sun, 28 Jan 2024 11:00:56 +0100 Subject: [PATCH] Make fields inside WindowSize pub (#251) * Make fields inside WindowSize pub * Add comments --- src/lib.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 4a7a3948e..47e28765a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -555,9 +555,12 @@ impl EguiUserTextures { #[derive(Component, Debug, Default, Clone, Copy, PartialEq)] #[cfg_attr(feature = "render", derive(ExtractComponent))] pub struct WindowSize { - physical_width: f32, - physical_height: f32, - scale_factor: f32, + /// Physical width + pub physical_width: f32, + /// Physical height + pub physical_height: f32, + /// Scale factor + pub scale_factor: f32, } impl WindowSize {