Documentation ¶
Index ¶
- type CardAdapter
- func (ca *CardAdapter) AppendCards(cs []cards.Card)
- func (ca *CardAdapter) Clear()
- func (ca *CardAdapter) Count() int
- func (ca *CardAdapter) CreateTemplate() fyne.CanvasObject
- func (ca *CardAdapter) Item(id widget.ListItemID) cards.Card
- func (ca *CardAdapter) SetList(list *widget.List)
- func (ca *CardAdapter) UpdateTemplate(id widget.ListItemID, co fyne.CanvasObject)
- type CardLayout
- type CardListItem
- type CardListItemRenderer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CardAdapter ¶
type CardAdapter struct {
// contains filtered or unexported fields
}
func NewCardAdapter ¶
func NewCardAdapter(registry *platform.Registry) *CardAdapter
func (*CardAdapter) AppendCards ¶
func (ca *CardAdapter) AppendCards(cs []cards.Card)
func (*CardAdapter) Clear ¶
func (ca *CardAdapter) Clear()
func (*CardAdapter) Count ¶
func (ca *CardAdapter) Count() int
func (*CardAdapter) CreateTemplate ¶
func (ca *CardAdapter) CreateTemplate() fyne.CanvasObject
func (*CardAdapter) Item ¶
func (ca *CardAdapter) Item(id widget.ListItemID) cards.Card
func (*CardAdapter) SetList ¶
func (ca *CardAdapter) SetList(list *widget.List)
func (*CardAdapter) UpdateTemplate ¶
func (ca *CardAdapter) UpdateTemplate(id widget.ListItemID, co fyne.CanvasObject)
type CardLayout ¶
type CardLayout struct { //Container *container.Scroll widget.BaseWidget // contains filtered or unexported fields }
func NewCardLayout ¶
func NewCardLayout(cvs fyne.Canvas, card *cards.Card, registry *platform.Registry) *CardLayout
func (*CardLayout) CreateRenderer ¶
func (cl *CardLayout) CreateRenderer() fyne.WidgetRenderer
func (*CardLayout) SetResource ¶
func (cl *CardLayout) SetResource(resource fyne.Resource)
type CardListItem ¶
type CardListItem struct { widget.BaseWidget // contains filtered or unexported fields }
func NewCardListItem ¶
func NewCardListItem(card *cards.Card) *CardListItem
func (*CardListItem) CreateRenderer ¶
func (cli *CardListItem) CreateRenderer() fyne.WidgetRenderer
func (*CardListItem) SetResource ¶
func (cli *CardListItem) SetResource(resource fyne.Resource)
func (*CardListItem) UpdateCard ¶
func (cli *CardListItem) UpdateCard(card *cards.Card, manaCost []fyne.Resource)
type CardListItemRenderer ¶
type CardListItemRenderer struct {
// contains filtered or unexported fields
}
func (*CardListItemRenderer) Destroy ¶
func (c *CardListItemRenderer) Destroy()
func (*CardListItemRenderer) Layout ¶
func (c *CardListItemRenderer) Layout(size fyne.Size)
func (*CardListItemRenderer) MinSize ¶
func (c *CardListItemRenderer) MinSize() fyne.Size
func (*CardListItemRenderer) Objects ¶
func (c *CardListItemRenderer) Objects() []fyne.CanvasObject
func (*CardListItemRenderer) Refresh ¶
func (c *CardListItemRenderer) Refresh()
Click to show internal directories.
Click to hide internal directories.