summaryrefslogtreecommitdiff
path: root/src/window.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.rs')
-rw-r--r--src/window.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/window.rs b/src/window.rs
index 8d118fa..7403edb 100644
--- a/src/window.rs
+++ b/src/window.rs
@@ -10,6 +10,7 @@ use winit::window::{CursorIcon, Fullscreen, Window};
use std::rc::Rc;
use std::cmp::{min, max};
+
fn to_physical_size(dimensions: Dimensions, scale: u32) -> PhysicalSize<u32> {
PhysicalSize {
width: max(1, dimensions.width * scale),
@@ -20,9 +21,9 @@ fn to_physical_size(dimensions: Dimensions, scale: u32) -> PhysicalSize<u32> {
#[derive(Copy, Clone, Debug, PartialEq)]
pub enum PointerState {
- In,
- Out,
- PendingOut,
+ In, // pointer is within the screen bounds
+ Out, // pointer is outside the screen bounds
+ PendingOut, // pointer is dragging outside the screen bounds
}