1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
use crate::event::position::*;
use crate::event::destination::*;
use super::*;
use guion::event::variant::Variant;

//TODO fix C: Clone requirement
impl<E> Variant<E> for Event where E: Env, EEDest<E>: SDLDestination {
    #[inline]
    fn position(&self) -> Option<Offset> {
        pos_of(self,self.ws.0,self.ws.1)
    }
    #[inline]
    fn consuming(&self) -> bool {
        todo!()
    }
    #[inline]
    fn destination(&self) -> EEDest<E> {
        SDLDestination::destination_of(self)
    }
}