pub trait AccelGroupExt: 'static {
Show 13 methods
// Required methods
fn activate<P: IsA<Object>>(
&self,
accel_quark: Quark,
acceleratable: &P,
accel_key: u32,
accel_mods: ModifierType,
) -> bool;
fn connect(
&self,
accel_key: u32,
accel_mods: ModifierType,
accel_flags: AccelFlags,
closure: &Closure,
);
fn connect_by_path(&self, accel_path: &str, closure: &Closure);
fn disconnect(&self, closure: Option<&Closure>) -> bool;
fn disconnect_key(&self, accel_key: u32, accel_mods: ModifierType) -> bool;
fn get_is_locked(&self) -> bool;
fn get_modifier_mask(&self) -> ModifierType;
fn lock(&self);
fn unlock(&self);
fn connect_accel_activate<F: Fn(&Self, &Object, u32, ModifierType) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_accel_changed<F: Fn(&Self, u32, ModifierType, &Closure) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_is_locked_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_modifier_mask_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
}
Required Methods§
fn activate<P: IsA<Object>>( &self, accel_quark: Quark, acceleratable: &P, accel_key: u32, accel_mods: ModifierType, ) -> bool
fn connect( &self, accel_key: u32, accel_mods: ModifierType, accel_flags: AccelFlags, closure: &Closure, )
fn connect_by_path(&self, accel_path: &str, closure: &Closure)
fn disconnect(&self, closure: Option<&Closure>) -> bool
fn disconnect_key(&self, accel_key: u32, accel_mods: ModifierType) -> bool
fn get_is_locked(&self) -> bool
fn get_modifier_mask(&self) -> ModifierType
fn lock(&self)
fn unlock(&self)
fn connect_accel_activate<F: Fn(&Self, &Object, u32, ModifierType) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_accel_changed<F: Fn(&Self, u32, ModifierType, &Closure) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_is_locked_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_modifier_mask_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
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.