Documentation ¶
Index ¶
- type RowModel
- func (rm *RowModel) GetAnchorRowIndex() index.Index
- func (rm *RowModel) GetRow(indexRow index.Index) row.Row
- func (rm *RowModel) GetRowCount() size.Height
- func (rm *RowModel) GetTabInCells() size.Width
- func (rm *RowModel) SetAnchorRowIndex(anchorRowIndex index.Index)
- func (rm *RowModel) SetBackRowAsAnchor()
- func (rm *RowModel) ShiftAnchorRow(shift int) bool
- func (rm *RowModel) Update(rowLenLimit rll.RowLenLimit) size.Height
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RowModel ¶
type RowModel struct {
// contains filtered or unexported fields
}
RowModel - class which is getting paragraph text parts for render in a terminal
func NewRowModel ¶
func NewRowModel(row hp.Row, rowLenLimit rll.RowLenLimit) *RowModel
NewRowModel constructs a new RowModel object
func (*RowModel) GetAnchorRowIndex ¶
GetAnchorRowIndex returns anchorRowIndex field value
func (*RowModel) GetRowCount ¶
GetRowCount returns dynamic_row count for rendering in a terminal
func (*RowModel) GetTabInCells ¶
GetTabInCells returns using tabInCells size in runes for current terminal width
func (*RowModel) SetAnchorRowIndex ¶
SetAnchorRowIndex updates anchorRowIndex field value
func (*RowModel) SetBackRowAsAnchor ¶
func (rm *RowModel) SetBackRowAsAnchor()
SetBackRowAsAnchor sets index of last dynamic_row as anchor dynamic_row
func (*RowModel) ShiftAnchorRow ¶
ShiftAnchorRow does a try to actionSequence anchor dynamic_row and returns if the try is success
Click to show internal directories.
Click to hide internal directories.