// returns Some([]) if a submenu is selected
// or None if nothing is hit
returns Some([]) if a submenu is selected
or None if nothing is hit
returns Some ( [] ) if a submenu is selected or None if nothing is hit
fn selection(&self, offset: Pt2) -> Option<Vec<&str>> {
        let mut path = Vec::new();
        if self.intersect_impl(&self.menu, offset, &mut path) {
            if path.is_empty() {
                None
            } else {
                Some(path)
            }
        } else {
            Some(Vec::new())
        }
    }
fn selection ( & self , offset : Pt2 ) -> Option < Vec < & str > > { let mut path = Vec :: new ( ) ; if self . intersect_impl ( & self . menu , offset , & mut path ) { if path . is_empty ( ) { None } else { Some ( path ) } } else { Some ( Vec :: new ( ) ) } }
returns Some([]) if a submenu is selected
or None if nothing is hit
returns Some ( [] ) if a submenu is selected or None if nothing is hit
&self
offset
Pt2