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