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