ui

package
v0.0.0-...-6b6d747 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrExist means item already exist
	ErrExist = errors.New("Item already exist")

	// ErrEmptyLabel mean item label is empty
	ErrEmptyLabel = errors.New("Item label is empty")
)

Functions

func NewAddItemBotton

func NewAddItemBotton(itemList *ItemList, saveStatusHook func()) *widget.Button

func NewUIFromStatuses

func NewUIFromStatuses(statuses map[string]*core.Status, saveStatusHook func()) fyne.Window

Types

type Item

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

func NewItem

func NewItem(title string, status *core.Status, ticker *core.Ticker, statusIcon *widget.Icon, parentItemList *ItemList, saveStatusHook func()) *Item

func (*Item) Start

func (item *Item) Start()

func (*Item) Stop

func (item *Item) Stop()

type ItemList

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

func NewItemList

func NewItemList(statuses map[string]*core.Status, outerBox *fyne.Container) *ItemList

func (*ItemList) AppendItem

func (l *ItemList) AppendItem(item *Item) error

func (*ItemList) RemoveItem

func (l *ItemList) RemoveItem(item *Item)

func (*ItemList) SetItems

func (l *ItemList) SetItems(items []*Item)

func (*ItemList) ToContainer

func (l *ItemList) ToContainer() *fyne.Container

Jump to

Keyboard shortcuts

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