custom_widget

package
v0.0.0-...-0b3e57a Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: GPL-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewButtonColored

func NewButtonColored(c color.Color, tapped func()) *fyne.Container

func NewCheckedImage

func NewCheckedImage(s fyne.Size) *fyne.Container

func NewCheckedImageWithImage

func NewCheckedImageWithImage(i *canvas.Image, s fyne.Size) *fyne.Container

Types

type ButtonColored

type ButtonColored struct {
	fyne.Container
	Color  color.Color
	Button *widget.Button
	Tapped func(color.Color)
}

type CheckedImage

type CheckedImage struct {
	Selected bool
	// contains filtered or unexported fields
}

type ImageSelectionTable

type ImageSelectionTable struct {
	*fyne.Container
	// contains filtered or unexported fields
}

func NewImageSelectionTable

func NewImageSelectionTable(size fyne.Size) *ImageSelectionTable

func NewImageSelectionTableWithImages

func NewImageSelectionTableWithImages(imgs []image.Image, size fyne.Size) *ImageSelectionTable

func (*ImageSelectionTable) Append

func (t *ImageSelectionTable) Append(img *canvas.Image)

func (*ImageSelectionTable) Images

func (t *ImageSelectionTable) Images() []image.Image

func (*ImageSelectionTable) Reset

func (t *ImageSelectionTable) Reset()

type ImageTable

type ImageTable struct {
	widget.Table

	ImageCallbackFunc     func(*canvas.Image)
	IndexCallbackFunc     func(int, int)
	SetImagesCallbackFunc func(*ImageTableCache)
	// contains filtered or unexported fields
}

func NewEmptyImageTable

func NewEmptyImageTable(imageSize fyne.Size, selectCell func(int, int)) *ImageTable

func NewImageTable

func NewImageTable(
	images *ImageTableCache,
	imageSize fyne.Size,
	nbRows, nbCols int,
	imageSelected func(*canvas.Image),
	indexSelected func(int, int),
	setImages func(*ImageTableCache)) *ImageTable

func (*ImageTable) AppendImage

func (i *ImageTable) AppendImage(rowIndice int, img *canvas.Image)

func (*ImageTable) ImageCreate

func (i *ImageTable) ImageCreate() fyne.CanvasObject

nolint: ireturn

func (*ImageTable) ImageSelect

func (i *ImageTable) ImageSelect(id widget.TableCellID)

func (*ImageTable) ImageUpdate

func (i *ImageTable) ImageUpdate(id widget.TableCellID, o fyne.CanvasObject)

func (*ImageTable) Images

func (i *ImageTable) Images() [][]image.Image

func (*ImageTable) ImagesLength

func (i *ImageTable) ImagesLength() (row int, col int)

func (*ImageTable) Reset

func (i *ImageTable) Reset()

func (*ImageTable) SubstitueImage

func (i *ImageTable) SubstitueImage(row, col int, newImage *canvas.Image)

func (*ImageTable) Update

func (i *ImageTable) Update(images *ImageTableCache, rowNumber, colNumber int)

type ImageTableCache

type ImageTableCache struct {
	ImagesPerRow      int
	ImagesPerColumn   int
	IndexCallbackFunc func(int, int)
	// contains filtered or unexported fields
}

func NewImageTableCache

func NewImageTableCache(row, col int, size fyne.Size, indexCallback func(int, int)) *ImageTableCache

func (*ImageTableCache) Append

func (im *ImageTableCache) Append(rowIndice int, img *canvas.Image)

func (*ImageTableCache) At

func (i *ImageTableCache) At(row, col int) *canvas.Image

func (*ImageTableCache) ImageSelect

func (i *ImageTableCache) ImageSelect(id widget.TableCellID)

func (*ImageTableCache) Set

func (i *ImageTableCache) Set(row, col int, img *canvas.Image)

type PaletteTable

type PaletteTable struct {
	widget.Table
	Palette                color.Palette
	ColorCallbackFunc      func(color.Color)
	IndexCallbackFunc      func(int)
	SetPaletteCallbackFunc func(color.Palette)
}

func NewPaletteTable

func NewPaletteTable(p color.Palette, colorSelected func(color.Color), indexSelected func(int), setPalette func(color.Palette)) *PaletteTable

func (*PaletteTable) PaletteCreate

func (p *PaletteTable) PaletteCreate() fyne.CanvasObject

nolint: ireturn

func (*PaletteTable) PaletteLength

func (p *PaletteTable) PaletteLength() (int, int)

func (*PaletteTable) PaletteSelect

func (p *PaletteTable) PaletteSelect(id widget.TableCellID)

func (*PaletteTable) PaletteUpdate

func (p *PaletteTable) PaletteUpdate(id widget.TableCellID, o fyne.CanvasObject)

func (*PaletteTable) SubstitueColor

func (p *PaletteTable) SubstitueColor(index int, newColor color.Color)

type ProgressInfiniteDialog

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

func NewProgressInfinite

func NewProgressInfinite(message string, parent fyne.Window) *ProgressInfiniteDialog

func (*ProgressInfiniteDialog) Hide

func (d *ProgressInfiniteDialog) Hide()

Hide this dialog and stop the infinite progress goroutine

func (*ProgressInfiniteDialog) MinSize

func (d *ProgressInfiniteDialog) MinSize() fyne.Size

func (*ProgressInfiniteDialog) Move

func (d *ProgressInfiniteDialog) Move(position fyne.Position)

func (*ProgressInfiniteDialog) Position

func (d *ProgressInfiniteDialog) Position() fyne.Position

func (*ProgressInfiniteDialog) Refresh

func (d *ProgressInfiniteDialog) Refresh()

func (*ProgressInfiniteDialog) Resize

func (d *ProgressInfiniteDialog) Resize(size fyne.Size)

func (*ProgressInfiniteDialog) Show

func (d *ProgressInfiniteDialog) Show()

func (*ProgressInfiniteDialog) Size

func (d *ProgressInfiniteDialog) Size() fyne.Size

func (*ProgressInfiniteDialog) Visible

func (d *ProgressInfiniteDialog) Visible() bool

Jump to

Keyboard shortcuts

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