Trait ActionExt

Source
pub trait ActionExt: IsA<Action> + '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: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_parameter_type_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_state_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_state_type_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn activate(&self, parameter: Option<&Variant>)

Source

fn change_state(&self, value: &Variant)

Source

fn is_enabled(&self) -> bool

Source

fn name(&self) -> GString

Source

fn parameter_type(&self) -> Option<VariantType>

Source

fn state(&self) -> Option<Variant>

Source

fn state_hint(&self) -> Option<Variant>

Source

fn state_type(&self) -> Option<VariantType>

Source

fn connect_enabled_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_parameter_type_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_state_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_state_type_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.

Implementors§

Source§

impl<O: IsA<Action>> ActionExt for O