Function sdl2::event::set_event_filter[src]
pub fn set_event_filter(filter_func: extern "C" fn(event: Event) -> bool)
Set up a filter to process all events before they change internal state and are posted to the internal event queue.
pub fn set_event_filter(filter_func: extern "C" fn(event: Event) -> bool)
Set up a filter to process all events before they change internal state and are posted to the internal event queue.
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).