Struct sdl2::event::EventWatch [−][src]
pub struct EventWatch<'a, CB: EventWatchCallback + 'a> { /* fields omitted */ }
An handler for the event watch callback.
One must bind this struct in a variable as long as you want to keep the callback active.
For further information, see [EventSubsystem::add_event_watch].
Implementations
impl<'a, CB: EventWatchCallback + 'a> EventWatch<'a, CB>[src]
impl<'a, CB: EventWatchCallback + 'a> EventWatch<'a, CB>[src]pub fn activate(&mut self)[src]
Activates the event watch. Does nothing if it is already activated.
pub fn deactivate(&mut self)[src]
Deactivates the event watch. Does nothing if it is already activated.
pub fn activated(&self) -> bool[src]
Returns if the event watch is activated.
pub fn set_activated(&mut self, activate: bool)[src]
Set the activation state of the event watch.
Trait Implementations
impl<'a, CB: EventWatchCallback + 'a> Drop for EventWatch<'a, CB>[src]
impl<'a, CB: EventWatchCallback + 'a> Drop for EventWatch<'a, CB>[src]Auto Trait Implementations
impl<'a, CB> RefUnwindSafe for EventWatch<'a, CB> where
CB: RefUnwindSafe,
impl<'a, CB> RefUnwindSafe for EventWatch<'a, CB> where
CB: RefUnwindSafe, impl<'a, CB> Send for EventWatch<'a, CB> where
CB: Send + Sync,
impl<'a, CB> Send for EventWatch<'a, CB> where
CB: Send + Sync, impl<'a, CB> Sync for EventWatch<'a, CB> where
CB: Sync,
impl<'a, CB> Sync for EventWatch<'a, CB> where
CB: Sync, impl<'a, CB> Unpin for EventWatch<'a, CB>
impl<'a, CB> Unpin for EventWatch<'a, CB>impl<'a, CB> UnwindSafe for EventWatch<'a, CB> where
CB: RefUnwindSafe + UnwindSafe,
impl<'a, CB> UnwindSafe for EventWatch<'a, CB> where
CB: RefUnwindSafe + UnwindSafe,