gio::prelude

Trait ActionGroupExt

Source
pub trait ActionGroupExt:
    IsA<ActionGroup>
    + Sealed
    + 'static {
Show 17 methods // Provided methods fn action_added(&self, action_name: &str) { ... } fn action_enabled_changed(&self, action_name: &str, enabled: bool) { ... } fn action_removed(&self, action_name: &str) { ... } fn action_state_changed(&self, action_name: &str, state: &Variant) { ... } fn activate_action(&self, action_name: &str, parameter: Option<&Variant>) { ... } fn change_action_state(&self, action_name: &str, value: &Variant) { ... } fn is_action_enabled(&self, action_name: &str) -> bool { ... } fn action_parameter_type(&self, action_name: &str) -> Option<VariantType> { ... } fn action_state(&self, action_name: &str) -> Option<Variant> { ... } fn action_state_hint(&self, action_name: &str) -> Option<Variant> { ... } fn action_state_type(&self, action_name: &str) -> Option<VariantType> { ... } fn has_action(&self, action_name: &str) -> bool { ... } fn list_actions(&self) -> Vec<GString> { ... } fn connect_action_added<F: Fn(&Self, &str) + 'static>( &self, detail: Option<&str>, f: F, ) -> SignalHandlerId { ... } fn connect_action_enabled_changed<F: Fn(&Self, &str, bool) + 'static>( &self, detail: Option<&str>, f: F, ) -> SignalHandlerId { ... } fn connect_action_removed<F: Fn(&Self, &str) + 'static>( &self, detail: Option<&str>, f: F, ) -> SignalHandlerId { ... } fn connect_action_state_changed<F: Fn(&Self, &str, &Variant) + 'static>( &self, detail: Option<&str>, f: F, ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn action_added(&self, action_name: &str)

Source

fn action_enabled_changed(&self, action_name: &str, enabled: bool)

Source

fn action_removed(&self, action_name: &str)

Source

fn action_state_changed(&self, action_name: &str, state: &Variant)

Source

fn activate_action(&self, action_name: &str, parameter: Option<&Variant>)

Source

fn change_action_state(&self, action_name: &str, value: &Variant)

Source

fn is_action_enabled(&self, action_name: &str) -> bool

Source

fn action_parameter_type(&self, action_name: &str) -> Option<VariantType>

Source

fn action_state(&self, action_name: &str) -> Option<Variant>

Source

fn action_state_hint(&self, action_name: &str) -> Option<Variant>

Source

fn action_state_type(&self, action_name: &str) -> Option<VariantType>

Source

fn has_action(&self, action_name: &str) -> bool

Source

fn list_actions(&self) -> Vec<GString>

Source

fn connect_action_added<F: Fn(&Self, &str) + 'static>( &self, detail: Option<&str>, f: F, ) -> SignalHandlerId

Source

fn connect_action_enabled_changed<F: Fn(&Self, &str, bool) + 'static>( &self, detail: Option<&str>, f: F, ) -> SignalHandlerId

Source

fn connect_action_removed<F: Fn(&Self, &str) + 'static>( &self, detail: Option<&str>, f: F, ) -> SignalHandlerId

Source

fn connect_action_state_changed<F: Fn(&Self, &str, &Variant) + 'static>( &self, detail: Option<&str>, 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§