pages

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AboutPage

type AboutPage struct {
	tview.Primitive
}

func NewAboutPage

func NewAboutPage() *AboutPage

func (*AboutPage) GetName

func (a *AboutPage) GetName() string

func (*AboutPage) SetCategories

func (a *AboutPage) SetCategories(categories *model.Categories)

func (*AboutPage) SetCategoryReceiver

func (a *AboutPage) SetCategoryReceiver(receiver CategoryReceiver)

type BrowserPage

type BrowserPage struct {
	tview.Primitive
	// contains filtered or unexported fields
}

func NewBrowserPage

func NewBrowserPage() *BrowserPage

func (*BrowserPage) GetName

func (bp *BrowserPage) GetName() string

func (*BrowserPage) SetCategories

func (bp *BrowserPage) SetCategories(categories *model.Categories)

func (*BrowserPage) SetCategoryReceiver

func (bp *BrowserPage) SetCategoryReceiver(receiver CategoryReceiver)

type CategoryReceiver

type CategoryReceiver func(categories *model.Categories)

CategoryReceiver accepts model.Categories

type PreferencesPage

type PreferencesPage struct {
	tview.Primitive
}

func NewPreferencesPage

func NewPreferencesPage() *PreferencesPage

func (PreferencesPage) GetName

func (p PreferencesPage) GetName() string

func (PreferencesPage) SetCategories

func (p PreferencesPage) SetCategories(categories *model.Categories)

func (PreferencesPage) SetCategoryReceiver

func (p PreferencesPage) SetCategoryReceiver(receiver CategoryReceiver)

type Slide

type Slide interface {
	tview.Primitive                                // the visual element
	model.SetCategories                            // can have its model.Categories updated
	GetName() string                               // Has a name
	SetCategoryReceiver(receiver CategoryReceiver) // a function to notify if the model.Categories are changed
}

Slide represents a slide/page in the ui.UI.

type SnippetPage

type SnippetPage struct {
	tview.Primitive
	// contains filtered or unexported fields
}

func NewSnippetPage

func NewSnippetPage() *SnippetPage

func (*SnippetPage) GetName

func (s *SnippetPage) GetName() string

func (*SnippetPage) SetCategories

func (s *SnippetPage) SetCategories(categories *model.Categories)

func (*SnippetPage) SetCategoryReceiver

func (s *SnippetPage) SetCategoryReceiver(receiver CategoryReceiver)

Jump to

Keyboard shortcuts

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