Edit me

dialog.ProgressDialog


import "fyne.io/fyne/v2/dialog"

Usage

type ProgressDialog

type ProgressDialog struct {
}

ProgressDialog is a simple dialog window that displays text and a progress bar.

Deprecated: Create a new custom dialog with a widget.ProgressBar() inside.

func NewProgress

func NewProgress(title, message string, parent fyne.Window) *ProgressDialog

NewProgress creates a progress dialog and returns the handle. Using the returned type you should call Show() and then set its value through SetValue().

Deprecated: Create a new custom dialog with a widget.ProgressBar() inside.

func (ProgressDialog) Hide

func (d ProgressDialog) Hide()

func (ProgressDialog) MinSize

func (d ProgressDialog) MinSize() fyne.Size

MinSize returns the size that this dialog should not shrink below

Since: 2.1

func (ProgressDialog) Refresh

func (d ProgressDialog) Refresh()

func (ProgressDialog) Resize

func (d ProgressDialog) Resize(size fyne.Size)

Resize dialog, call this function after dialog show

func (ProgressDialog) SetDismissText

func (d ProgressDialog) SetDismissText(label string)

SetDismissText allows custom text to be set in the confirmation button

func (ProgressDialog) SetOnClosed

func (d ProgressDialog) SetOnClosed(closed func())

SetOnClosed allows to set a callback function that is called when the dialog is closed

func (*ProgressDialog) SetValue

func (p *ProgressDialog) SetValue(v float64)

SetValue updates the value of the progress bar - this should be between 0.0 and 1.0.

func (ProgressDialog) Show

func (d ProgressDialog) Show()
Tags: