ui

package
v0.0.0-...-265d3d9 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func New

func New() *App

func (*App) FocusTimeline

func (app *App) FocusTimeline()

func (*App) Notify

func (app *App) Notify(msg string, a ...interface{})

func (*App) SetStatus

func (app *App) SetStatus(toot *Toot)

func (*App) Start

func (app *App) Start()

func (*App) ViewCompose

func (app *App) ViewCompose()

func (*App) ViewThread

func (app *App) ViewThread(toot *Toot)

func (*App) ViewTimeline

func (app *App) ViewTimeline()

type ComposeModal

type ComposeModal struct {
	*cview.Modal
	// contains filtered or unexported fields
}

func NewComposeModal

func NewComposeModal(app *App) *ComposeModal

type InfoView

type InfoView struct {
	*cview.TextView
	// contains filtered or unexported fields
}

func NewInfoView

func NewInfoView(app *App) *InfoView
type Menu struct {
	*cview.List
	// contains filtered or unexported fields
}

func NewMenu

func NewMenu(app *App) *Menu

type ReplyForm

type ReplyForm struct {
	*cview.Form
	// contains filtered or unexported fields
}

func NewReplyForm

func NewReplyForm(app *App) *ReplyForm

func (*ReplyForm) SetStatus

func (r *ReplyForm) SetStatus(status *mastodon.Status)

type StatusFrame

type StatusFrame struct {
	*cview.Frame
	// contains filtered or unexported fields
}

func NewStatusFrame

func NewStatusFrame(app *App) *StatusFrame

func (*StatusFrame) SetStatus

func (f *StatusFrame) SetStatus(toot *Toot)

type StatusModal

type StatusModal struct {
	*cview.Modal
	// contains filtered or unexported fields
}

func NewStatusModal

func NewStatusModal(app *App, status *mastodon.Status) *StatusModal

type Timeline

type Timeline struct {
	*cview.List
	Toots []*mastodon.Status
	// contains filtered or unexported fields
}

func NewTimeline

func NewTimeline(app *App, toots []*mastodon.Status, ttype TimelineType) *Timeline

func (*Timeline) GetCurrentToot

func (t *Timeline) GetCurrentToot() *Toot

func (*Timeline) Refresh

func (t *Timeline) Refresh()

func (*Timeline) SetCurrentToot

func (t *Timeline) SetCurrentToot(toot *Toot)

func (*Timeline) SetTimeline

func (t *Timeline) SetTimeline(ttype TimelineType)

type TimelineType

type TimelineType int
const (
	TimelineHome TimelineType = iota
	TimelineLocal
	TimelineFederated
	TimelineProfile
	TimelineLikes
	TimelineTag
	TimelineMedia

	TimelineTootContext
)

func (TimelineType) String

func (t TimelineType) String() string

type Toot

type Toot struct {
	*cview.ListItem
	// contains filtered or unexported fields
}

func NewToot

func NewToot(app *App, status *mastodon.Status) *Toot

func (*Toot) IsFavorite

func (t *Toot) IsFavorite() bool

type TootReplies

type TootReplies struct {
	*Timeline
	// contains filtered or unexported fields
}

func NewTootReplies

func NewTootReplies(app *App) *TootReplies

func (*TootReplies) SetStatus

func (r *TootReplies) SetStatus(status *mastodon.Status)

Jump to

Keyboard shortcuts

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