Discover Packages
github.com/blicero/snoopy
ui
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Feb 3, 2025
License: AGPL-3.0
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Msg is a message to be displayed in some form to the user.
Gtk is not threadsafe, so I send Msg values through a channel, and a timeout
in the GUI fetches and displays them regularly.
MsgLevel indicates what to do with a Message
MsgStatusbar - display the message in the statusbar
MsgDialog - display the message in a Dialog
MsgLog - write the message to the Log
type SWin struct {
MsgQ chan Msg
}
SWin is wraps up the UI main window, all of its contents, and all associated state.
Create creates a new UI instance and returns it.
Run executes gtk's main event loop.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.