widget

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveList

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

ArchiveList is a collection of ArchiveRow that can be layout

func NewArchiveList

func NewArchiveList(th *material.Theme) *ArchiveList

func (*ArchiveList) AddRows

func (a *ArchiveList) AddRows(archives *model.ChesscomArchives)

AddRows adds one or more rows to the list

func (*ArchiveList) AtLeastOneSelected

func (a *ArchiveList) AtLeastOneSelected() bool

AtLeastOneSelected returns true if at least one element is selected, false otherwise

func (*ArchiveList) GetSelectedArchives

func (a *ArchiveList) GetSelectedArchives() model.ChesscomArchives

func (*ArchiveList) IsNil

func (a *ArchiveList) IsNil() bool

func (*ArchiveList) Layout

func (a *ArchiveList) Layout(gtx layout.Context) layout.Dimensions

func (*ArchiveList) ResetList

func (a *ArchiveList) ResetList()

func (*ArchiveList) Size

func (a *ArchiveList) Size() int

type ArchiveRow

type ArchiveRow struct {
	widget.Clickable

	Archive model.ChesscomArchive
	// contains filtered or unexported fields
}

ArchiveRow is a struct representing an archive with a checkbox. The entire widget is clickable and check the inner checkbox.

func NewArchiveRow

func NewArchiveRow(th *material.Theme, archive model.ChesscomArchive) *ArchiveRow

func (*ArchiveRow) Layout

func (a *ArchiveRow) Layout(gtx layout.Context) layout.Dimensions

Jump to

Keyboard shortcuts

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