Trait gtk4::prelude::CheckButtonExt
source · pub trait CheckButtonExt: 'static {
Show 17 methods
// Required methods
fn is_active(&self) -> bool;
fn is_inconsistent(&self) -> bool;
fn label(&self) -> Option<GString>;
fn uses_underline(&self) -> bool;
fn set_active(&self, setting: bool);
fn set_group(&self, group: Option<&impl IsA<CheckButton>>);
fn set_inconsistent(&self, inconsistent: bool);
fn set_label(&self, label: Option<&str>);
fn set_use_underline(&self, setting: bool);
fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn emit_activate(&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;
fn connect_inconsistent_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_label_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_use_underline_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Required Methods§
fn is_active(&self) -> bool
fn is_inconsistent(&self) -> bool
fn label(&self) -> Option<GString>
fn uses_underline(&self) -> bool
fn set_active(&self, setting: bool)
fn set_group(&self, group: Option<&impl IsA<CheckButton>>)
fn set_inconsistent(&self, inconsistent: bool)
fn set_label(&self, label: Option<&str>)
fn set_use_underline(&self, setting: bool)
sourcefn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Available on crate feature
v4_2
only.sourcefn emit_activate(&self)
fn emit_activate(&self)
Available on crate feature
v4_2
only.