Trait ux::prelude::ActionGroupExt [−]
pub trait ActionGroupExt: 'static {
Show methods
pub fn action_added(&self, action_name: &str);
pub fn action_enabled_changed(&self, action_name: &str, enabled: bool);
pub fn action_removed(&self, action_name: &str);
pub fn action_state_changed(&self, action_name: &str, state: &Variant);
pub fn activate_action(
&self,
action_name: &str,
parameter: Option<&Variant>
);
pub fn change_action_state(&self, action_name: &str, value: &Variant);
pub fn get_action_enabled(&self, action_name: &str) -> bool;
pub fn get_action_parameter_type(
&self,
action_name: &str
) -> Option<VariantType>;
pub fn get_action_state(&self, action_name: &str) -> Option<Variant>;
pub fn get_action_state_hint(&self, action_name: &str) -> Option<Variant>;
pub fn get_action_state_type(
&self,
action_name: &str
) -> Option<VariantType>;
pub fn has_action(&self, action_name: &str) -> bool;
pub fn list_actions(&self) -> Vec<GString, Global>;
pub fn connect_action_added<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Fn(&Self, &str);
pub fn connect_action_enabled_changed<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Fn(&Self, &str, bool);
pub fn connect_action_removed<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Fn(&Self, &str);
pub fn connect_action_state_changed<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Fn(&Self, &str, &Variant);
}Required methods
pub fn action_added(&self, action_name: &str)
pub fn action_enabled_changed(&self, action_name: &str, enabled: bool)
pub fn action_removed(&self, action_name: &str)
pub fn action_state_changed(&self, action_name: &str, state: &Variant)
pub fn activate_action(&self, action_name: &str, parameter: Option<&Variant>)
pub fn change_action_state(&self, action_name: &str, value: &Variant)
pub fn get_action_enabled(&self, action_name: &str) -> bool
pub fn get_action_parameter_type(
&self,
action_name: &str
) -> Option<VariantType>
&self,
action_name: &str
) -> Option<VariantType>
pub fn get_action_state(&self, action_name: &str) -> Option<Variant>
pub fn get_action_state_hint(&self, action_name: &str) -> Option<Variant>
pub fn get_action_state_type(&self, action_name: &str) -> Option<VariantType>
pub fn has_action(&self, action_name: &str) -> bool
pub fn list_actions(&self) -> Vec<GString, Global>
pub fn connect_action_added<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self, &str),
F: 'static + Fn(&Self, &str),
pub fn connect_action_enabled_changed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self, &str, bool),
F: 'static + Fn(&Self, &str, bool),
pub fn connect_action_removed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self, &str),
F: 'static + Fn(&Self, &str),
pub fn connect_action_state_changed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self, &str, &Variant),
F: 'static + Fn(&Self, &str, &Variant),
Implementors
impl<O> ActionGroupExt for O where
O: IsA<ActionGroup>,
O: IsA<ActionGroup>,
pub fn action_added(&self, action_name: &str)
pub fn action_enabled_changed(&self, action_name: &str, enabled: bool)
pub fn action_removed(&self, action_name: &str)
pub fn action_state_changed(&self, action_name: &str, state: &Variant)
pub fn activate_action(&self, action_name: &str, parameter: Option<&Variant>)
pub fn change_action_state(&self, action_name: &str, value: &Variant)
pub fn get_action_enabled(&self, action_name: &str) -> bool
pub fn get_action_parameter_type(
&self,
action_name: &str
) -> Option<VariantType>
&self,
action_name: &str
) -> Option<VariantType>
pub fn get_action_state(&self, action_name: &str) -> Option<Variant>
pub fn get_action_state_hint(&self, action_name: &str) -> Option<Variant>
pub fn get_action_state_type(&self, action_name: &str) -> Option<VariantType>
pub fn has_action(&self, action_name: &str) -> bool
pub fn list_actions(&self) -> Vec<GString, Global>
pub fn connect_action_added<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &str),
F: 'static + Fn(&O, &str),
pub fn connect_action_enabled_changed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &str, bool),
F: 'static + Fn(&O, &str, bool),
pub fn connect_action_removed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &str),
F: 'static + Fn(&O, &str),
pub fn connect_action_state_changed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &str, &Variant),
F: 'static + Fn(&O, &str, &Variant),