╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ AuthTab.zig ──────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
40 } 41 42 pub fn build(self: *View, allocator: std.mem.Allocator, constraint: layout.Constraint, root_focus: *Focus) !void { 43 try self.text_box.setContent(allocator, self.text()); 44 try self.text_box.build(allocator, constraint, root_focus); 45 } 46 47 pub fn input(self: *View, allocator: std.mem.Allocator, key: Key, root_focus: *Focus) !void { 48 try self.text_box.input(allocator, key, root_focus); 49 } 50 51 pub fn clearGrid(self: *View) void { 52 self.text_box.clearGrid(); 53 } 54 55 pub fn getGrid(self: View) ?Grid { 56 return self.text_box.getGrid(); 57 } 58 59 pub fn getFocus(self: *View) *Focus { 60 return self.text_box.getFocus(); 61 } 62 }; 63