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