Trait sourceview5::prelude::ActionExt
source · pub trait ActionExt: IsA<Action> + Sealed + 'static {
Show 13 methods
// Provided methods
fn activate(&self, parameter: Option<&Variant>) { ... }
fn change_state(&self, value: &Variant) { ... }
fn is_enabled(&self) -> bool { ... }
fn name(&self) -> GString { ... }
fn parameter_type(&self) -> Option<VariantType> { ... }
fn state(&self) -> Option<Variant> { ... }
fn state_hint(&self) -> Option<Variant> { ... }
fn state_type(&self) -> Option<VariantType> { ... }
fn connect_enabled_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
fn connect_name_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
fn connect_parameter_type_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
fn connect_state_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
fn connect_state_type_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
}
Provided Methods§
fn activate(&self, parameter: Option<&Variant>)
fn change_state(&self, value: &Variant)
fn is_enabled(&self) -> bool
fn name(&self) -> GString
fn parameter_type(&self) -> Option<VariantType>
fn state(&self) -> Option<Variant>
fn state_hint(&self) -> Option<Variant>
fn state_type(&self) -> Option<VariantType>
fn connect_enabled_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_name_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_parameter_type_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_state_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_state_type_notify<F>(&self, f: F) -> SignalHandlerId
Object Safety§
This trait is not object safe.