pub fn buttons(&self) -> MouseButtons {
        let (obj_data, funcs) = self.get_mouse_event_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).buttons)(obj_data);
            let ret_val = MouseButtons::from_bits_truncate(ret_val);
            ret_val
        }
    }
///
/// Returns the button state when the event was generated. The button
/// state is a combination of Qt::LeftButton, Qt::RightButton,
/// Qt::MidButton using the OR operator. For mouse move events,
/// this is all buttons that are pressed down. For mouse press and
/// double click events this includes the button that caused the
/// event. For mouse release events this excludes the button that
/// caused the event.
///
/// **See also:** [`button()`]
/// [`t::mouse_button()`]
Returns the button state when the event was generated.


Returns the button state when the event was generated .
pub fn buttons(&self) -> MouseButtons {
        let (obj_data, funcs) = self.get_mouse_event_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).buttons)(obj_data);
            let ret_val = MouseButtons::from_bits_truncate(ret_val);
            ret_val
        }
    }
pub fn buttons ( & self ) -> MouseButtons { let ( obj_data , funcs ) = self . get_mouse_event_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . buttons ) ( obj_data ) ; let ret_val = MouseButtons :: from_bits_truncate ( ret_val ) ; ret_val } }
Returns the button state when the event was generated.
Returns the button state when the event was generated .
&self
&self