github.com/charmbracelet/ultraviolet.Buffer.Width (method)
44 uses
github.com/charmbracelet/ultraviolet (current package)
buffer.go#L310: func (b *Buffer) Width() int {
buffer.go#L321: return Rect(0, 0, b.Width(), b.Height())
buffer.go#L326: curWidth, curHeight := b.Width(), b.Height()
buffer.go#L542: x < area.Min.X || x >= area.Max.X || x >= b.Width() {
buffer.go#L577: x < area.Min.X || x >= area.Max.X || x >= b.Width() {
buffer.go#L805: w := b.Width()
terminal_renderer.go#L356: w, h := newbuf.Width(), newbuf.Height()
terminal_renderer.go#L410: width, height = s.curbuf.Width(), s.curbuf.Height()
terminal_renderer.go#L413: width = max(newbuf.Width(), width)
terminal_renderer.go#L496: width, height := newbuf.Width(), newbuf.Height()
terminal_renderer.go#L542: if s.cur.X >= newbuf.Width() {
terminal_renderer.go#L666: wrapPossible := s.cur.X+count >= newbuf.Width()
terminal_renderer.go#L749: for j := s.cur.X; j < newbuf.Width(); j++ {
terminal_renderer.go#L762: count := newbuf.Width() - s.cur.X
terminal_renderer.go#L854: for x := 0; x < newbuf.Width(); x++ {
terminal_renderer.go#L903: for oFirstCell = 0; oFirstCell < s.curbuf.Width(); oFirstCell++ {
terminal_renderer.go#L908: for nFirstCell = 0; nFirstCell < newbuf.Width(); nFirstCell++ {
terminal_renderer.go#L918: for firstCell < newbuf.Width() &&
terminal_renderer.go#L928: if nFirstCell >= newbuf.Width() {
terminal_renderer.go#L946: for firstCell < newbuf.Width() && cellEqual(newLine.At(firstCell), oldLine.At(firstCell)) {
terminal_renderer.go#L952: if firstCell >= newbuf.Width() {
terminal_renderer.go#L956: blank = newLine.At(newbuf.Width() - 1)
terminal_renderer.go#L959: nLastCell = newbuf.Width() - 1
terminal_renderer.go#L979: oLastCell = newbuf.Width() - 1
terminal_renderer.go#L986: nLastCell = newbuf.Width() - 1
terminal_renderer.go#L1096: if s.atPhantom || s.cur.X < 0 || s.cur.X >= newbuf.Width() {
terminal_renderer.go#L1121: s.curbuf.ClearArea(Rect(col, row, s.curbuf.Width()-col, 1))
terminal_renderer.go#L1123: s.curbuf.ClearArea(Rect(0, row+1, s.curbuf.Width(), s.curbuf.Height()-row-1))
terminal_renderer.go#L1136: last := min(s.curbuf.Width(), newbuf.Width())
terminal_renderer.go#L1260: s.curbuf = NewRenderBuffer(newbuf.Width(), newbuf.Height())
terminal_renderer.go#L1263: newWidth, newHeight := newbuf.Width(), newbuf.Height()
terminal_renderer.go#L1264: curWidth, curHeight := s.curbuf.Width(), s.curbuf.Height()
terminal_renderer.go#L1616: width = newbuf.Width()
terminal_renderer_hardscroll.go#L133: b.FillArea(blank, Rect(0, line, b.Width(), 1))
terminal_renderer_hardscroll.go#L144: b.FillArea(blank, Rect(0, line, b.Width(), 1))
terminal_renderer_hardscroll.go#L158: width := newbuf.Width()
terminal_renderer_hashmap.go#L280: for i := s.curbuf.Width(); i > 0; i, fidx, tidx = i-1, fidx+1, tidx+1 {
terminal_renderer_hashmap.go#L292: for i := s.curbuf.Width(); i > 0; i, tidx = i-1, tidx+1 {
terminal_screen.go#L118: return s.win.Width()
terminal_screen.go#L234: for x := 0; x < s.win.Width(); {
terminal_screen.go#L266: if x >= s.win.Width()-1 {
terminal_screen.go#L798: w, h := s.win.Width(), s.win.Height()
charm.land/lipgloss/v2
canvas.go#L48: return c.scr.Width()