╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ Home.zig ─────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
173 } 174 175 if (index != current_index) { 176 root_focus.setFocus(self.box.children.keys()[index]); 177 } 178 } 179 } 180 } 181 182 pub fn clearGrid(self: *View) void { 183 self.box.clearGrid(); 184 } 185 186 pub fn getGrid(self: View) ?Grid { 187 return self.box.getGrid(); 188 } 189 190 pub fn getFocus(self: *View) *Focus { 191 return self.box.getFocus(); 192 } 193 }; 194