body_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: 5 Imported by: 0

Documentation

Index

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

func (bm *BodyModel) GetAnchorRowAbsolutelyIndex() index.Index

GetAnchorRowAbsolutelyIndex gets anchorRowAbsolutelyIndex field value

func (*BodyModel) GetAnchorRowIndex

func (bm *BodyModel) GetAnchorRowIndex() index.Index

GetAnchorRowIndex finds anchor paragraph by index and returns its anchor row index

func (*BodyModel) GetAnchorRowModelIndex

func (bm *BodyModel) GetAnchorRowModelIndex() index.Index

GetAnchorRowModelIndex gets anchorRowModelIndex field value

func (*BodyModel) GetRowCount

func (bm *BodyModel) GetRowCount() size.Height

GetRowCount returns rowCount field value

func (*BodyModel) GetRowModel

func (bm *BodyModel) GetRowModel(i index.Index) *prm.RowModel

GetRowModel gets paragraphModel object by index

func (*BodyModel) Shift

func (bm *BodyModel) Shift(terminalHeight size.Height, shiftVertical int)

Shift applies a shift to display dynamic_row window

func (*BodyModel) Update

func (bm *BodyModel) Update(termSize ts.TerminalSize, shiftVertical int)

Update applies terminal size and display actionSequence to the models and rebuild getting display dynamic_row window

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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