Documentation ¶
Index ¶
- type Vline
- func (v *Vline) Boundaries() *[]boundary
- func (v Vline) CursorPositionOnScreenLogicalLine(colIndex int) (cx, cy int)
- func (v *Vline) GetBoundary(rowIndex int) boundary
- func (m *Vline) GetCell(index int) *cell
- func (v *Vline) GetHeadOfLogicalRowIndex(colIndex int) int
- func (v *Vline) GetIndexOfLogicalRow(colIndex int) int
- func (v *Vline) GetMinAndMaxIndexOfLogicalRow(logicalRowIndex int) (int, int)
- func (v *Vline) IsEndOfLogicalRow(colIndex int) bool
- func (v *Vline) IsLastLogicalRow(colIndex int) bool
- func (v *Vline) LenLogicalRow() int
- type Vlines
- func (vs *Vlines) AllocateVlines(rowIndex int)
- func (vs *Vlines) Delete(startIndex, endIndex int)
- func (vs *Vlines) GetVline(rowIndex int) *Vline
- func (vs *Vlines) Insert(startIndex, endIndex int)
- func (vs *Vlines) InsertN(rowIndex, n int)
- func (vs *Vlines) Release(startIndex, endIndex int)
- func (vs *Vlines) ReleaseAll()
- func (vs *Vlines) Resize(width, height, tabWidth int)
- func (vs *Vlines) SetFile(file *file.File)
- func (vs *Vlines) SetTabWidth(tabWidth int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vline ¶
type Vline struct {
// contains filtered or unexported fields
}
func (*Vline) Boundaries ¶
func (v *Vline) Boundaries() *[]boundary
Return logical row boundaries information.
func (Vline) CursorPositionOnScreenLogicalLine ¶
Returns the screen position of the cursor corresponding to the specified column index in logical rows. colIndex: column index
func (*Vline) GetBoundary ¶
func (*Vline) GetHeadOfLogicalRowIndex ¶
Return the row and col index when it matches the head of a logical row.
func (*Vline) GetIndexOfLogicalRow ¶
What index of the logical row?
func (*Vline) GetMinAndMaxIndexOfLogicalRow ¶
Return value is min and max column index of the logical row.
func (*Vline) IsEndOfLogicalRow ¶
Determine if it is the last logical row.
func (*Vline) IsLastLogicalRow ¶
Return value is the last logical row or not.
type Vlines ¶
type Vlines struct {
// contains filtered or unexported fields
}
func (*Vlines) AllocateVlines ¶
Allocate vlines based on rowIndex Set offsetIndex It should be modified so that unnecessary allocation is not performed.
func (*Vlines) Insert ¶
insert slice at position startIndex to endIndex Outside the index range is ignored
func (*Vlines) InsertN ¶
Insert n rows of vline at rowIndex position Outside the index range is ignored
func (*Vlines) Release ¶
Overwrite the specified rowIndex range of the vlines slice with nil Release(a) index a only Release(a, b) regeon a:b Release(a, -1) regeon a:
func (*Vlines) ReleaseAll ¶
func (vs *Vlines) ReleaseAll()
func (*Vlines) Resize ¶
Re-allocate vlines when resized or tab width is changed tcell calls Resize first, so need to call this at that time