views

package
v0.0.0-...-3119e3f Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type View

type View struct {
	Flashcard *components.Flashcard
	Options   *components.Options
	WordList  *components.WordList
	// contains filtered or unexported fields
}

View holds the application components

func CreateFlashcardView

func CreateFlashcardView(config *config.Config) *View

CreateFlashcardView creates a new application view

func (*View) Refresh

func (v *View) Refresh()

Refresh re-renders the components

func (*View) UpdateFlashcard

func (v *View) UpdateFlashcard()

UpdateFlashcard sets the text and definition to the currently selected flashcard

Jump to

Keyboard shortcuts

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