Trait ActionExt

Source
pub trait ActionExt: 'static {
Show 13 methods // Required methods fn activate(&self, parameter: Option<&Variant>); fn change_state(&self, value: &Variant); fn get_enabled(&self) -> bool; fn get_name(&self) -> Option<GString>; fn get_parameter_type(&self) -> Option<VariantType>; fn get_state(&self) -> Option<Variant>; fn get_state_hint(&self) -> Option<Variant>; fn get_state_type(&self) -> Option<VariantType>; fn connect_property_enabled_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_parameter_type_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_state_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_state_type_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId;
}

Required Methods§

Source

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

Source

fn change_state(&self, value: &Variant)

Source

fn get_enabled(&self) -> bool

Source

fn get_name(&self) -> Option<GString>

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn connect_property_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