pub trait ButtonExt {
// Required methods
unsafe fn connect_clicked<F: FnMut(&Self, bool) + 'static>(&self, cb: F);
unsafe fn connect_pressed<F: FnMut(&Self) + 'static>(&self, cb: F);
unsafe fn connect_toggled<F: FnMut(&Self, bool) + 'static>(&self, cb: F);
unsafe fn connect_released<F: FnMut(&Self) + 'static>(&self, cb: F);
}
Required Methods§
Sourceunsafe fn connect_clicked<F: FnMut(&Self, bool) + 'static>(&self, cb: F)
unsafe fn connect_clicked<F: FnMut(&Self, bool) + 'static>(&self, cb: F)
§Safety
The QObjects referenced by self and receiver must be alive.
Sourceunsafe fn connect_pressed<F: FnMut(&Self) + 'static>(&self, cb: F)
unsafe fn connect_pressed<F: FnMut(&Self) + 'static>(&self, cb: F)
§Safety
The QObjects referenced by self and receiver must be alive.
Sourceunsafe fn connect_toggled<F: FnMut(&Self, bool) + 'static>(&self, cb: F)
unsafe fn connect_toggled<F: FnMut(&Self, bool) + 'static>(&self, cb: F)
§Safety
The QObjects referenced by self and receiver must be alive.
Sourceunsafe fn connect_released<F: FnMut(&Self) + 'static>(&self, cb: F)
unsafe fn connect_released<F: FnMut(&Self) + 'static>(&self, cb: F)
§Safety
The QObjects referenced by self and receiver must be alive.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.