Trait gtk4::prelude::ToggleButtonExt
source · [−]pub trait ToggleButtonExt: 'static {
fn is_active(&self) -> bool;
fn set_active(&self, is_active: bool);
fn set_group(&self, group: Option<&impl IsA<ToggleButton>>);
fn toggled(&self);
fn connect_toggled<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_active_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_group_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Required Methods
source
fn set_active(&self, is_active: bool)
source
fn set_group(&self, group: Option<&impl IsA<ToggleButton>>)
source
fn connect_toggled<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
source
fn connect_active_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
source