Trait xplm::menu::CheckHandler

source ·
pub trait CheckHandler: 'static {
    // Required method
    fn item_checked(&mut self, item: &CheckItem, checked: bool);
}
Expand description

Trait for things that can respond to check state changes

Required Methods§

source

fn item_checked(&mut self, item: &CheckItem, checked: bool)

Called when the user checks or unchecks an item

Implementors§

source§

impl<F> CheckHandler for F
where F: FnMut(&CheckItem, bool) + 'static,