notifications

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsVisible

func IsVisible() bool

func Layout

func Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions

func Send

func Send(text string, notifType NotificationType, duration time.Duration)

func ToggleVisibility

func ToggleVisibility()

Types

type Notification

type Notification struct {
	Text      string
	CreatedAt time.Time
	EndAt     time.Time
	Type      NotificationType
	// contains filtered or unexported fields
}

type NotificationType

type NotificationType string
const (
	NotificationTypeInfo  NotificationType = "info"
	NotificationTypeWarn  NotificationType = "warn"
	NotificationTypeError NotificationType = "error"
)

type Notifications

type Notifications struct {
	// contains filtered or unexported fields
}
var DefaultNotifications *Notifications

func New

func New(w *app.Window) *Notifications

func (*Notifications) Layout

Jump to

Keyboard shortcuts

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