╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ AuthTab.zig ──────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
50 pub fn build(self: *View, allocator: std.mem.Allocator, constraint: layout.Constraint, root_focus: *Focus) !void { 51 try self.text_box.setContent(allocator, self.text()); 52 self.text_box.options.bottom_label = self.bottomLabel(); 53 try self.text_box.build(allocator, constraint, root_focus); 54 } 55 56 pub fn input(self: *View, allocator: std.mem.Allocator, key: Key, root_focus: *Focus) !void { 57 try self.text_box.input(allocator, key, root_focus); 58 } 59 60 pub fn clearGrid(self: *View) void { 61 self.text_box.clearGrid(); 62 } 63 64 pub fn getGrid(self: View) ?Grid { 65 return self.text_box.getGrid(); 66 } 67 68 pub fn getFocus(self: *View) *Focus { 69 return self.text_box.getFocus(); 70 } 71 }; 72