mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 10:25:37 +00:00
ui/app: more documentation
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -55,5 +55,11 @@ For example, to display a blank but otherwise functional window:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Event queue
|
||||||
|
|
||||||
|
A Window's Queue method returns an input.Queue implementation that distributes
|
||||||
|
incoming events to the input handlers declared in the latest call to Update.
|
||||||
|
See the gioui.org/ui/input package for more information about input handlers.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
package app
|
package app
|
||||||
|
|||||||
+1
-1
@@ -159,7 +159,7 @@ func (w *Window) draw(size image.Point, frame *ui.Ops) {
|
|||||||
w.updateAnimation()
|
w.updateAnimation()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Invalidate the current window such that a UpdateEvent will be generated
|
// Invalidate the window such that a UpdateEvent will be generated
|
||||||
// immediately. If the window is inactive, the event is sent when the
|
// immediately. If the window is inactive, the event is sent when the
|
||||||
// window becomes active.
|
// window becomes active.
|
||||||
func (w *Window) Invalidate() {
|
func (w *Window) Invalidate() {
|
||||||
|
|||||||
Reference in New Issue
Block a user