[][src]Trait gio::prelude::ActionGroupExt

pub trait ActionGroupExt: 'static {
    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 get_action_enabled(&self, action_name: &str) -> bool;
fn get_action_parameter_type(
        &self,
        action_name: &str
    ) -> Option<VariantType>;
fn get_action_state(&self, action_name: &str) -> Option<Variant>;
fn get_action_state_hint(&self, action_name: &str) -> Option<Variant>;
fn get_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,
        f: F
    ) -> SignalHandlerId;
fn connect_action_enabled_changed<F: Fn(&Self, &str, bool) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_action_removed<F: Fn(&Self, &str) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_action_state_changed<F: Fn(&Self, &str, &Variant) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Required 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 get_action_enabled(&self, action_name: &str) -> bool

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

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

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

fn get_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,
    f: F
) -> SignalHandlerId

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

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

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

Loading content...

Implementors

impl<O: IsA<ActionGroup>> ActionGroupExt for O[src]

Loading content...