Skip to main content

Groups

Trait Groups 

Source
pub trait Groups {
    // Required methods
    fn begin(&self, origin: &Origin, label: &str) -> Option<GestureId>;
    fn end(&self, group: GestureId, keep: bool);
}
Expand description

Opens and ends a host’s history groups without the host itself: while the host dispatches a command it is out of reach, and a command’s AppHandle::group (Call::group) goes through this. A host keeping its own history hands one out from Host::groups; the default Host::begin_group and Host::end_group use it too.

Required Methods§

Source

fn begin(&self, origin: &Origin, label: &str) -> Option<GestureId>

Opens a group (see Host::begin_group); None: nothing grouped.

Source

fn end(&self, group: GestureId, keep: bool)

Ends a group: kept, or (keep false) put back as it was.

Implementors§