widget

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Widget

type Widget struct {
	View     *tview.TextView
	Settings config.Settings
	Client   *client.HttpClient
	Config   config.WidgetConfigs
	App      *tview.Application
}

func NewWidget

func NewWidget(cfg *config.Config, httpClient *client.HttpClient,
	app *tview.Application, widgetName, url string) Widget

func (*Widget) BorderColor

func (w *Widget) BorderColor() tcell.Color

func (*Widget) CommonSettings

func (w *Widget) CommonSettings() *config.Common

func (*Widget) Focusable

func (w *Widget) Focusable() bool

func (*Widget) Name

func (w *Widget) Name() string

func (*Widget) TextView

func (w *Widget) TextView() *tview.TextView

Jump to

Keyboard shortcuts

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