use torin::geometry::CursorPoint;
pub use winit::event::MouseButton;
use winit::event::{Force, TouchPhase};
#[derive(Debug, Clone, PartialEq, Copy)]
pub enum PointerType {
    Mouse {
        trigger_button: Option<MouseButton>,
    },
    Touch {
        finger_id: u64,
        phase: TouchPhase,
        force: Option<Force>,
    },
}
#[derive(Debug, Clone)]
pub struct PointerData {
    pub screen_coordinates: CursorPoint,
    pub element_coordinates: CursorPoint,
    pub point_type: PointerType,
}
impl PointerData {
    pub fn new(
        screen_coordinates: CursorPoint,
        element_coordinates: CursorPoint,
        point_type: PointerType,
    ) -> Self {
        Self {
            screen_coordinates,
            element_coordinates,
            point_type,
        }
    }
}
impl PointerData {
    pub fn get_screen_coordinates(&self) -> CursorPoint {
        self.screen_coordinates
    }
    pub fn get_element_coordinates(&self) -> CursorPoint {
        self.element_coordinates
    }
    pub fn get_pointer_type(&self) -> PointerType {
        self.point_type
    }
}