╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ Header.zig ───────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
274 pub fn getFocus(self: *View) *Focus { 275 return self.box.getFocus(); 276 } 277 278 pub fn getSelectedIndex(self: View) ?usize { 279 return self.currentTabIndex(); 280 } 281 282 fn currentTabIndex(self: View) ?usize { 283 const child_id = self.box.focus.child_id orelse return null; 284 return self.tab_ids.getIndex(child_id); 285 } 286 }; 287