row_model

package
v0.0.0-...-00ef510 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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

func (rm *RowModel) GetAnchorRowIndex() index.Index

GetAnchorRowIndex returns anchorRowIndex field value

func (*RowModel) GetRow

func (rm *RowModel) GetRow(indexRow index.Index) row.Row

GetRow returns a dynamic_row for rendering in a terminal by index

func (*RowModel) GetRowCount

func (rm *RowModel) GetRowCount() size.Height

GetRowCount returns dynamic_row count for rendering in a terminal

func (*RowModel) GetTabInCells

func (rm *RowModel) GetTabInCells() size.Width

GetTabInCells returns using tabInCells size in runes for current terminal width

func (*RowModel) SetAnchorRowIndex

func (rm *RowModel) SetAnchorRowIndex(anchorRowIndex index.Index)

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

func (rm *RowModel) ShiftAnchorRow(shift int) bool

ShiftAnchorRow does a try to actionSequence anchor dynamic_row and returns if the try is success

func (*RowModel) Update

func (rm *RowModel) Update(rowLenLimit rll.RowLenLimit) size.Height

Update applies dynamic_row len limit for rebuilding getting display dynamic_row window

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL