Documentation ¶
Index ¶
- type DeckAdapter
- func (da *DeckAdapter) Count() int
- func (da *DeckAdapter) CreateTemplate() fyne.CanvasObject
- func (da *DeckAdapter) Item(id widget.ListItemID) storage.Deck
- func (da *DeckAdapter) SetList(list *widget.List)
- func (da *DeckAdapter) Update(ds []storage.Deck)
- func (da *DeckAdapter) UpdateTemplate(id widget.ListItemID, co fyne.CanvasObject)
- type DeckCardAdapter
- func (dca *DeckCardAdapter) AppendCards(cs []storage.DeckCard)
- func (dca *DeckCardAdapter) Clear()
- func (dca *DeckCardAdapter) Count() int
- func (dca *DeckCardAdapter) CreateTemplate() fyne.CanvasObject
- func (dca *DeckCardAdapter) Item(id widget.ListItemID) storage.DeckCard
- func (dca *DeckCardAdapter) SetList(list *widget.List)
- func (dca *DeckCardAdapter) UpdateTemplate(id widget.ListItemID, co fyne.CanvasObject)
- type DeckCardListItem
- type DeckDisplay
- type DeckLayout
- type DeckListItem
- type DeckManagementCallback
- type ManagementCallback
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 (dca *DeckCardAdapter) Item(id widget.ListItemID) storage.DeckCard
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 ¶
Click to show internal directories.
Click to hide internal directories.