Trait ux::PushActionExt [−][src]
pub trait PushActionExt: 'static { pub fn get_active(&self) -> bool; pub fn get_display_name(&self) -> Option<String>; pub fn get_icon(&self) -> Option<String>; pub fn get_name(&self) -> Option<String>; pub fn set_active(&self, active: bool); pub fn set_display_name(&self, name: &str); pub fn set_icon(&self, name: &str); pub fn set_name(&self, name: &str); pub fn connect_activate<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Fn(&Self, Option<&Variant>); pub fn connect_property_display_name_notify<F>(
&self,
f: F
) -> SignalHandlerId
where
F: 'static + Fn(&Self); pub fn connect_property_icon_notify<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Fn(&Self); }
Required methods
pub fn get_active(&self) -> bool
[src]
get_active: @action: A #Action
Get the value of the active property
Returns: #true if the action is active
pub fn get_display_name(&self) -> Option<String>
[src]
get_display_name: @action: A #Action
Get the display name of the action
Returns: display-name of the action, owned by Action
pub fn get_icon(&self) -> Option<String>
[src]
get_icon: @action: A #Action
Get the icon of the action
Returns: icon of the action, owned by Action
pub fn get_name(&self) -> Option<String>
[src]
get_name: @action: A #Action
Get the name of the action
Returns: name of the action, owned by Action
pub fn set_active(&self, active: bool)
[src]
set_active: @action: A #Action @active: the value to set
Set the value of the active property
pub fn set_display_name(&self, name: &str)
[src]
set_display_name: @action: A #Action @name: new display name to set
Set the name of the action to display to the user
pub fn set_icon(&self, name: &str)
[src]
set_icon: @action: A #Action @name: new icon to set
The icon to be used in a visual representation of an action.
pub fn set_name(&self, name: &str)
[src]
set_name: @action: A #Action @name: new name to set
Set the name of the action
pub fn connect_activate<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self, Option<&Variant>),
[src]
F: 'static + Fn(&Self, Option<&Variant>),
pub fn connect_property_display_name_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self),
[src]
F: 'static + Fn(&Self),
pub fn connect_property_icon_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self),
[src]
F: 'static + Fn(&Self),
Implementors
impl<O> PushActionExt for O where
O: Is<PushAction>,
[src]
impl<O> PushActionExt for O where
O: Is<PushAction>,
[src]pub fn get_active(&self) -> bool
[src]
get_active: @action: A #PushAction
Get the value of the active property
Returns: #true if the action is active
pub fn get_display_name(&self) -> Option<String>
[src]
get_display_name: @action: A #PushAction
Get the display name of the action
Returns: display-name of the action, owned by PushAction
pub fn get_icon(&self) -> Option<String>
[src]
get_icon: @action: A #PushAction
Get the icon of the action
Returns: icon of the action, owned by PushAction
pub fn get_name(&self) -> Option<String>
[src]
get_name: @action: A #PushAction
Get the name of the action
Returns: name of the action, owned by PushAction
pub fn set_active(&self, active: bool)
[src]
set_active: @action: A #PushAction @active: the value to set
Set the value of the active property
pub fn set_display_name(&self, name: &str)
[src]
set_display_name: @action: A #PushAction @name: new display name to set
Set the name of the action to display to the user
pub fn set_icon(&self, name: &str)
[src]
set_icon: @action: A #PushAction @name: new icon to set
The icon to be used in a visual representation of an action.
pub fn set_name(&self, name: &str)
[src]
set_name: @action: A #PushAction @name: new name to set
Set the name of the action
pub fn connect_activate<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, Option<&Variant>),
[src]
F: 'static + Fn(&O, Option<&Variant>),
pub fn connect_property_display_name_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_icon_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),