Documentation
¶
Overview ¶
Package loop owns the state shared by every window: one lock that serializes rendering and callbacks, a queue of updates from other goroutines, and the windows to redraw. UI infrastructure uses it; theme only requests redraws.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InvalidateAll ¶
func InvalidateAll()
InvalidateAll requests a redraw of every window. It never blocks on them.
func Lock ¶
func Lock()
Lock is held while a window lays out a frame, and so during every UI callback.
func Register ¶
func Register(key any, invalidate func())
Register adds a window; invalidate requests a redraw of it.
func SetIdleMemoryReclaim ¶ added in v0.1.6
func SetIdleMemoryReclaim(enabled bool)
func Unregister ¶
Unregister removes a window and reports how many remain.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.