Struct relm4::actions::RelmActionGroup
source · pub struct RelmActionGroup<GroupName: ActionGroupName> { /* private fields */ }
Expand description
A type save action group that wraps around gio::SimpleActionGroup
.
Implementations§
source§impl<GroupName: ActionGroupName> RelmActionGroup<GroupName>
impl<GroupName: ActionGroupName> RelmActionGroup<GroupName>
sourcepub fn add_action<Name: ActionName>(&self, action: RelmAction<Name>)
pub fn add_action<Name: ActionName>(&self, action: RelmAction<Name>)
Add an action to the group.
sourcepub fn into_action_group(self) -> SimpleActionGroup
pub fn into_action_group(self) -> SimpleActionGroup
Convert RelmActionGroup
into a gio::SimpleActionGroup
.
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new SimpleActionGroup
.