Trait gtk4::prelude::CheckButtonExt
source · pub trait CheckButtonExt: 'static {
Show 20 methods
// Required methods
fn is_active(&self) -> bool;
fn child(&self) -> Option<Widget>;
fn is_inconsistent(&self) -> bool;
fn label(&self) -> Option<GString>;
fn uses_underline(&self) -> bool;
fn set_active(&self, setting: bool);
fn set_child(&self, child: Option<&impl IsA<Widget>>);
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_child_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.fn connect_toggled<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_active_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
sourcefn connect_child_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_child_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Available on crate feature
v4_8
only.