Trait gio::prelude::ActionMapExt [−][src]
pub trait ActionMapExt: 'static { fn add_action<P: IsA<Action>>(&self, action: &P); fn lookup_action(&self, action_name: &str) -> Option<Action>; fn remove_action(&self, action_name: &str); }
Expand description
Required methods
fn add_action<P: IsA<Action>>(&self, action: &P)
fn add_action<P: IsA<Action>>(&self, action: &P)
fn lookup_action(&self, action_name: &str) -> Option<Action>
fn lookup_action(&self, action_name: &str) -> Option<Action>
Looks up the action with the name action_name
in self
.
If no such action exists, returns None
.
action_name
the name of an action
Returns
fn remove_action(&self, action_name: &str)
fn remove_action(&self, action_name: &str)
Removes the named action from the action map.
If no action of this name is in the map then nothing happens.
action_name
the name of the action