wintray

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ID          = "OmniSSHAgent"
	TrayIconMsg = winapi.WM_APP + 1

	NIN_BALLOONSHOW      = 0x0402
	NIN_BALLOONTIMEOUT   = 0x0404
	NIN_BALLOONUSERCLICK = 0x0405

	// NotifyIcon flags
	NIF_MESSAGE  = 0x00000001
	NIF_ICON     = 0x00000002
	NIF_TIP      = 0x00000004
	NIF_GUID     = 0x00000020
	NIF_REALTIME = 0x00000040
	NIF_SHOWTIP  = 0x00000080
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TrayIcon

type TrayIcon struct {
	BalloonClickFunc func()
	TrayClickFunc    func()
	// contains filtered or unexported fields
}

func NewTrayIcon

func NewTrayIcon() *TrayIcon

func (*TrayIcon) Dispose

func (ti *TrayIcon) Dispose()

func (*TrayIcon) RunTray

func (ti *TrayIcon) RunTray()

func (*TrayIcon) SetIcon

func (ti *TrayIcon) SetIcon(icon winapi.HICON)

func (*TrayIcon) SetTooltip

func (ti *TrayIcon) SetTooltip(tooltip string)

func (*TrayIcon) ShowBalloonNotification

func (ti *TrayIcon) ShowBalloonNotification(title, text string)

Jump to

Keyboard shortcuts

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