diff options
author | Ben Bridle <bridle.benjamin@gmail.com> | 2025-07-03 15:09:19 +1200 |
---|---|---|
committer | Ben Bridle <bridle.benjamin@gmail.com> | 2025-07-03 15:09:19 +1200 |
commit | 70d26c2744058cfc922527ef994126c6c840848b (patch) | |
tree | 8ec5f027b9b764e683fcf7b564189d10f0dee070 /src/window_builder.rs | |
parent | 9bb58a8557f5000489769e839dbab03d6f71c777 (diff) | |
download | phosphor-70d26c2744058cfc922527ef994126c6c840848b.zip |
Tidy event code and add support for hover events
Diffstat (limited to 'src/window_builder.rs')
-rw-r--r-- | src/window_builder.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window_builder.rs b/src/window_builder.rs index 6761b8d..231aada 100644 --- a/src/window_builder.rs +++ b/src/window_builder.rs @@ -14,8 +14,8 @@ pub struct WindowBuilder { } impl WindowBuilder { - pub fn new(program: Box<dyn WindowProgram>) -> Self { - Self { + pub fn from_program(program: Box<dyn WindowProgram>) -> Self { + WindowBuilder { program, size_bounds: None, dimensions: None, |