╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ Markdown.zig ─────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭ find file ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╮ ╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │ │ │http│ ssh │ │ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╯ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
504 try grid.setRune(x, y, rune); 505 x += xitui.width.cellWidth(rune); 506 } 507 } 508 if (child_grid) |g| { 509 try grid.drawGrid(g, marker_width, 0); 510 try self.focus.addChild(allocator, self.child.getFocus(), g.size, marker_width, 0); 511 } 512 self.grid = grid; 513 } 514 515 pub fn input(self: *Gutter, allocator: std.mem.Allocator, key: Key, root_focus: *Focus) !void { 516 _ = self; 517 _ = allocator; 518 _ = key; 519 _ = root_focus; 520 } 521 522 pub fn clearGrid(self: *Gutter) void { 523 if (self.grid) |*grid| { 524 grid.deinit(); 525 self.grid = null; 526 } 527 self.child.clearGrid(); 528 } 529 530 pub fn getGrid(self: Gutter) ?Grid { 531 return self.grid; 532 } 533 534 pub fn getFocus(self: *Gutter) *Focus { 535 return self.focus; 536 } 537 }; 538