Skip to content

Commit

Permalink
Make fields inside WindowSize pub (#251)
Browse files Browse the repository at this point in the history
* Make fields inside WindowSize pub

* Add comments
  • Loading branch information
BeastLe9enD authored Jan 28, 2024
1 parent 6f844f0 commit f095c38
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f095c38

Please sign in to comment.