Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClipboardString ¶
GetClipboardString returns the contents of the system clipboard, if it contains or is convertible to a UTF-8 encoded string.
This function may only be called from the main thread.
func Initialize ¶
Run the host system's event loop.
func InvertImageNrgba ¶
func SetClipboardString ¶
func SetClipboardString(str string)
SetClipboardString sets the system clipboard to the specified UTF-8 encoded string.
This function may only be called from the main thread.
Types ¶
type Image ¶
func GetClipboardImage ¶
GetClipboardString returns the contents of the system clipboard, if it contains or is convertible to an image.
This function may only be called from the main thread.
type MenuItem ¶
type Notification ¶
type Notification struct { Title string // Title of user notification. Body string // Body of user notification. Image Image // Image shown in the content of user notification. // Timeout specifies time after which the notification is cleared. // // A Timeout of zero means no timeout. Timeout time.Duration // Activation (click) handler. Handler func() }
Notification represents a user notification.
func (Notification) Display ¶
func (n Notification) Display()
Display displays the user notification.
Click to show internal directories.
Click to hide internal directories.