deck

package
v0.0.0-...-8f0799a Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeckAdapter

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

func NewDeckAdapter

func NewDeckAdapter(ds []storage.Deck, registry *platform.Registry, callback DeckManagementCallback) *DeckAdapter

func (*DeckAdapter) Count

func (da *DeckAdapter) Count() int

func (*DeckAdapter) CreateTemplate

func (da *DeckAdapter) CreateTemplate() fyne.CanvasObject

func (*DeckAdapter) Item

func (da *DeckAdapter) Item(id widget.ListItemID) storage.Deck

func (*DeckAdapter) SetList

func (da *DeckAdapter) SetList(list *widget.List)

func (*DeckAdapter) Update

func (da *DeckAdapter) Update(ds []storage.Deck)

func (*DeckAdapter) UpdateTemplate

func (da *DeckAdapter) UpdateTemplate(id widget.ListItemID, co fyne.CanvasObject)

type DeckCardAdapter

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

func NewDeckCardAdapter

func NewDeckCardAdapter(registry *platform.Registry, callback ManagementCallback, deckType string) *DeckCardAdapter

func (*DeckCardAdapter) AppendCards

func (dca *DeckCardAdapter) AppendCards(cs []storage.DeckCard)

func (*DeckCardAdapter) Clear

func (dca *DeckCardAdapter) Clear()

func (*DeckCardAdapter) Count

func (dca *DeckCardAdapter) Count() int

func (*DeckCardAdapter) CreateTemplate

func (dca *DeckCardAdapter) CreateTemplate() fyne.CanvasObject

func (*DeckCardAdapter) Item

func (*DeckCardAdapter) SetList

func (dca *DeckCardAdapter) SetList(list *widget.List)

func (*DeckCardAdapter) UpdateTemplate

func (dca *DeckCardAdapter) UpdateTemplate(id widget.ListItemID, co fyne.CanvasObject)

type DeckCardListItem

type DeckCardListItem struct {
	widget.BaseWidget
	// contains filtered or unexported fields
}

func NewDeckCardListItem

func NewDeckCardListItem(callback ManagementCallback, deckType string) *DeckCardListItem

func (*DeckCardListItem) CreateRenderer

func (li *DeckCardListItem) CreateRenderer() fyne.WidgetRenderer

func (*DeckCardListItem) SetResource

func (li *DeckCardListItem) SetResource(resource fyne.Resource)

func (*DeckCardListItem) Update

func (li *DeckCardListItem) Update(card storage.DeckCard, mc []fyne.Resource)

type DeckDisplay

type DeckDisplay struct {
	widget.BaseWidget
	// contains filtered or unexported fields
}

func NewDeckMetaDisplay

func NewDeckMetaDisplay(canvas fyne.Canvas, registry *platform.Registry, deck storage.Deck, loadDecks func()) *DeckDisplay

func (*DeckDisplay) CreateRenderer

func (dd *DeckDisplay) CreateRenderer() fyne.WidgetRenderer

func (*DeckDisplay) DecCard

func (dd *DeckDisplay) DecCard(c storage.DeckCard)

func (*DeckDisplay) IncCard

func (dd *DeckDisplay) IncCard(c storage.DeckCard)

func (*DeckDisplay) RemoveCard

func (dd *DeckDisplay) RemoveCard(c storage.DeckCard)

func (*DeckDisplay) SetCover

func (dd *DeckDisplay) SetCover(c storage.DeckCard)

type DeckLayout

type DeckLayout struct {
	widget.BaseWidget
	// contains filtered or unexported fields
}

func NewDeckLayout

func NewDeckLayout(canvas fyne.Canvas, registry *platform.Registry, showImport func()) *DeckLayout

func (*DeckLayout) Copy

func (dl *DeckLayout) Copy(d storage.Deck)

func (*DeckLayout) CreateRenderer

func (dl *DeckLayout) CreateRenderer() fyne.WidgetRenderer

func (*DeckLayout) LoadDecks

func (dl *DeckLayout) LoadDecks()

func (*DeckLayout) Remove

func (dl *DeckLayout) Remove(d storage.Deck)

type DeckListItem

type DeckListItem struct {
	widget.BaseWidget
	// contains filtered or unexported fields
}

func NewDeckListItem

func NewDeckListItem(deck storage.Deck, callback DeckManagementCallback) *DeckListItem

func (*DeckListItem) CreateRenderer

func (dll *DeckListItem) CreateRenderer() fyne.WidgetRenderer

func (*DeckListItem) SetResource

func (dll *DeckListItem) SetResource(resource fyne.Resource)

func (*DeckListItem) UpdateDeck

func (dll *DeckListItem) UpdateDeck(deck storage.Deck)

type DeckManagementCallback

type DeckManagementCallback interface {
	Remove(d storage.Deck)
	Copy(d storage.Deck)
}

type ManagementCallback

type ManagementCallback interface {
	SetCover(c storage.DeckCard)
	RemoveCard(c storage.DeckCard)
	IncCard(c storage.DeckCard)
	DecCard(c storage.DeckCard)
}

Jump to

Keyboard shortcuts

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