gtk4::subclass::button

Trait ButtonImpl

Source
pub trait ButtonImpl: WidgetImpl + ObjectSubclass<Type: IsA<Button> + IsA<Actionable>> {
    // Provided methods
    fn activate(&self) { ... }
    fn clicked(&self) { ... }
}

Provided Methods§

Source

fn activate(&self)

Signal that causes the button to animate press then release. Applications should never connect to this signal, but use the @clicked signal.

Source

fn clicked(&self)

Signal emitted when the button has been activated (pressed and released).

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.

Implementors§