Documentation ¶
Index ¶
- type BodyModel
- func (bm *BodyModel) GetAnchorRowAbsolutelyIndex() index.Index
- func (bm *BodyModel) GetAnchorRowIndex() index.Index
- func (bm *BodyModel) GetAnchorRowModelIndex() index.Index
- func (bm *BodyModel) GetRowCount() size.Height
- func (bm *BodyModel) GetRowModel(i index.Index) *prm.RowModel
- func (bm *BodyModel) Shift(terminalHeight size.Height, shiftVertical int)
- func (bm *BodyModel) Update(termSize ts.TerminalSize, shiftVertical int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BodyModel ¶
type BodyModel struct {
// contains filtered or unexported fields
}
BodyModel implements a text page body model with some modelRows
func NewBodyModel ¶
func NewBodyModel(pageBody hp.Body, termSize ts.TerminalSize) *BodyModel
NewBodyModel constructs BodyModel object
func (*BodyModel) GetAnchorRowAbsolutelyIndex ¶
GetAnchorRowAbsolutelyIndex gets anchorRowAbsolutelyIndex field value
func (*BodyModel) GetAnchorRowIndex ¶
GetAnchorRowIndex finds anchor paragraph by index and returns its anchor row index
func (*BodyModel) GetAnchorRowModelIndex ¶
GetAnchorRowModelIndex gets anchorRowModelIndex field value
func (*BodyModel) GetRowCount ¶
GetRowCount returns rowCount field value
func (*BodyModel) GetRowModel ¶
GetRowModel gets paragraphModel object by index
Click to show internal directories.
Click to hide internal directories.