views

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlsView

type ControlsView struct {
	Data *viewdata.ControlsData
	// contains filtered or unexported fields
}

ControlsView represents static view to display controls

func NewControls

func NewControls(name string, x, y int, w, h int) *ControlsView

NewControls creates new instance of ControlsView

func (*ControlsView) Layout

func (c *ControlsView) Layout(g *gocui.Gui) error

Layout manager for controls View

type ParagraphView

type ParagraphView struct {

	// Data stores content of the view
	Data *viewdata.ParagraphData
	// contains filtered or unexported fields
}

ParagraphView keeps track of its view's metadata

func NewParagraphView

func NewParagraphView(name string, x, y int, w, h int) *ParagraphView

NewParagraphView creates new instance of ParagraphView

func (*ParagraphView) DrawView

func (pv *ParagraphView) DrawView(v *gocui.View)

DrawView renders the ParagraphView

func (*ParagraphView) Layout

func (pv *ParagraphView) Layout(g *gocui.Gui) error

Layout manager for ParagraphView

type StatsView

type StatsView struct {

	// Stats history data
	HistoryData *viewdata.Stats

	// Live Stats for race in progress
	LiveRaceData *viewdata.LiveStats
	// contains filtered or unexported fields
}

StatsView is to keep track of stats and the view

func NewStatsView

func NewStatsView(name string, x, y, w, h int) (*StatsView, error)

NewStatsView creates brand new StatsView instance

func (*StatsView) Layout

func (sv *StatsView) Layout(g *gocui.Gui) error

Layout manager for Stats View

type WordView

type WordView struct {

	// data about contents of editor view
	Data *viewdata.ParagraphData
	// contains filtered or unexported fields
}

WordView is a editor widget

func NewWordView

func NewWordView(name string, x, y int, w, h int, pData *viewdata.ParagraphData) *WordView

NewWordView creates new instance of WordView

func (*WordView) Layout

func (w *WordView) Layout(g *gocui.Gui) error

Layout is layout manager for word widget

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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