Trait gio::prelude::ActionExt

source ·
pub trait ActionExt: 'static {
Show 13 methods // Required 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;
}

Required 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

Implementors§

source§

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