view

package
v0.0.0-...-562e60d Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApp

func NewApp() *tview.Application

Types

type BBSViewT

type BBSViewT struct {
	Region       spider.Region
	Main         *tview.Pages
	BBSListView  *tview.List
	PostView     *tview.TextView
	CommentsView *tview.List
	// 页数
	BBSPage     int
	CommentPage int
	// 显示
	HelpContent string
	BBSList     []spider.BBS
	Comments    []spider.Comment
	PostContent string
	SelectedBBS spider.BBS
}
var BBSView *BBSViewT

func NewBBSView

func NewBBSView(region spider.Region) *BBSViewT

func (*BBSViewT) Display

func (b *BBSViewT) Display()

func (*BBSViewT) NextPageBBS

func (b *BBSViewT) NextPageBBS()

帖子下一页

func (*BBSViewT) NextPageComments

func (b *BBSViewT) NextPageComments()

评论下一页

func (*BBSViewT) PrevPageBBS

func (b *BBSViewT) PrevPageBBS()

帖子上一页

func (*BBSViewT) PrevPageComments

func (b *BBSViewT) PrevPageComments()

评论上一页

func (*BBSViewT) RefreshBBSList

func (b *BBSViewT) RefreshBBSList()

刷新帖子列表

func (*BBSViewT) RefreshComments

func (b *BBSViewT) RefreshComments()

刷新评论

func (*BBSViewT) RefreshCommentsTitle

func (b *BBSViewT) RefreshCommentsTitle()

刷新评论标题

func (*BBSViewT) RefreshPost

func (b *BBSViewT) RefreshPost()

刷新帖子内容

func (*BBSViewT) RefreshTitle

func (b *BBSViewT) RefreshTitle()

刷新左侧标题

Jump to

Keyboard shortcuts

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