notification

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: ISC Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Short duration = iota
	Long
)

Variables

This section is empty.

Functions

This section is empty.

Types

type C

type C = layout.Context

type D

type D = layout.Dimensions

type SystemNotification

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

func NewSystemNotification

func NewSystemNotification() (*SystemNotification, error)

func (*SystemNotification) Notify

func (s *SystemNotification) Notify(message string) error

type Toast

type Toast struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewToast

func NewToast(th *decredmaterial.Theme) *Toast

func (*Toast) Layout

func (t *Toast) Layout(gtx layout.Context) layout.Dimensions

func (*Toast) Notify

func (t *Toast) Notify(message string, d ...duration)

Notify is called to display a message indicating a successful action. It updates the toast object with the toast message and duration. The duration parameter is optional.

func (*Toast) NotifyError

func (t *Toast) NotifyError(message string, d ...duration)

Notify is called to display a message indicating a failed action. It updates the toast object with the toast message and duration. The duration parameter is optional.

Jump to

Keyboard shortcuts

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