╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ User.zig ─────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
260 } 261 262 if (index != current_index) { 263 root_focus.setFocus(self.box.children.keys()[index]); 264 } 265 } 266 } 267 } 268 269 pub fn clearGrid(self: *View) void { 270 self.box.clearGrid(); 271 } 272 273 pub fn getGrid(self: View) ?Grid { 274 return self.box.getGrid(); 275 } 276 277 pub fn getFocus(self: *View) *Focus { 278 return self.box.getFocus(); 279 } 280 }; 281