pub fn push_event(&self, event: Event) -> Result<(), String> {
        match event.to_ll() {
            Some(mut raw_event) => {
                let ok = unsafe { sys::SDL_PushEvent(&mut raw_event) == 1 };
                if ok { Ok(()) }
                else { Err(get_error()) }
            },
            None => {
                Err("Cannot push unsupported event type to the queue".to_owned())
            }
        }
    }
/// Pushes an event to the event queue.
Pushes an event to the event queue.
Pushes an event to the event queue .
pub fn push_event(&self, event: Event) -> Result<(), String> {
        match event.to_ll() {
            Some(mut raw_event) => {
                let ok = unsafe { sys::SDL_PushEvent(&mut raw_event) == 1 };
                if ok { Ok(()) }
                else { Err(get_error()) }
            },
            None => {
                Err("Cannot push unsupported event type to the queue".to_owned())
            }
        }
    }
pub fn push_event ( & self , event : Event ) -> Result < ( ) , String > { match event . to_ll ( ) { Some ( mut raw_event ) => { let ok = unsafe { sys :: SDL_PushEvent ( & mut raw_event ) == 1 } ; if ok { Ok ( ( ) ) } else { Err ( get_error ( ) ) } } , None => { Err ( " " . to_owned ( ) ) } } }
Pushes an event to the event queue.
Pushes an event to the event queue .
&self
event
Event
&self
event
Event