desktop

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package desktop provides shared Fyne UI components: layouts, forms, etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChooseDirectoryButton

func NewChooseDirectoryButton(parent fyne.Window, initialPath string) *widget.Button

func NewStatsExportForm

func NewStatsExportForm(
	parent fyne.Window,
	tests []string,
	formats []string,
	initialPath string,
	exportFunc func(testName, dest, format string) error,
	onSuccess func(),
	onError func(err error),
	appI18n i18n.StatsAppI18n,
) *widget.Form

Types

type PaddedLayout

type PaddedLayout struct {
	Padding float32
}

PaddedLayout stacks objects vertically. It adds Padding between each object and around all objects. Objects are displayed at their MinSize, both vertically and horizontally.

func NewPaddedLayout

func NewPaddedLayout(padding float32) *PaddedLayout

NewPaddedLayout creates a new PaddedLayout instance with specified padding.

func (*PaddedLayout) Layout

func (p *PaddedLayout) Layout(objects []fyne.CanvasObject, containerSize fyne.Size)

func (*PaddedLayout) MinSize

func (p *PaddedLayout) MinSize(objects []fyne.CanvasObject) fyne.Size

Jump to

Keyboard shortcuts

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