Trait components::PushActionExt [−][src]
pub trait PushActionExt: 'static {
fn get_active(&self) -> bool;
fn get_display_name(&self) -> Option<String>;
fn get_icon(&self) -> Option<String>;
fn get_name(&self) -> Option<String>;
fn set_active(&self, active: bool);
fn set_display_name(&self, name: &str);
fn set_icon(&self, name: &str);
fn set_name(&self, name: &str);
fn connect_activate<F: Fn(&Self, Option<&Variant>) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_property_display_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_property_icon_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}Required methods
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
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
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
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
fn set_active(&self, active: bool)[src]
set_active: @action: A #Action @active: the value to set
Set the value of the active property
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
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.
fn set_name(&self, name: &str)[src]
set_name: @action: A #Action @name: new name to set
Set the name of the action
fn connect_activate<F: Fn(&Self, Option<&Variant>) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_display_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_icon_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: Is<PushAction>> PushActionExt for O[src]
impl<O: Is<PushAction>> PushActionExt for O[src]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
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
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
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
fn set_active(&self, active: bool)[src]
set_active: @action: A #PushAction @active: the value to set
Set the value of the active property
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
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.
fn set_name(&self, name: &str)[src]
set_name: @action: A #PushAction @name: new name to set
Set the name of the action
fn connect_activate<F: Fn(&Self, Option<&Variant>) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_display_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_icon_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId