Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by default until UseLogger is called.
Types ¶
type D ¶
type D = layout.Dimensions
type Window ¶
Window represents the app window (and UI in general). There should only be one. Window maintains an internal state of variables to determine what to display at any point in time.
func CreateWindow ¶
CreateWindow creates and initializes a new window with start as the first page displayed. Should never be called more than once as it calls app.NewWindow() which does not support being called more than once.
func (*Window) HandleEvents ¶ added in v1.7.0
func (win *Window) HandleEvents()
HandleEvents runs main event handling and page rendering loop.
func (*Window) SubscribeKeyEvent ¶ added in v1.7.0
SubscribeKeyEvent subscribes pages for key events.
func (*Window) UnsubscribeKeyEvent ¶ added in v1.7.0
UnsubscribeKeyEvent unsubscribe a page with {pageID} from receiving key events.
type WriteClipboard ¶
type WriteClipboard struct {
Text string
}