╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ NewRepo.zig ──────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭ find file ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╮ ╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╮ │ │ │http│ ssh │ │ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╯ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╯
170 self.center.clearGrid(); 171 } 172 173 pub fn getGrid(self: View) ?Grid { 174 return self.center.getGrid(); 175 } 176 177 pub fn getFocus(self: *View) *Focus { 178 return self.center.getFocus(); 179 } 180 181 // up leaves the form from its first control 182 pub fn atTop(self: View) bool { 183 const box = &self.center.child.box; 184 return box.focus.child_id == box.children.keys()[0]; 185 } 186 }; 187