~eliasnaur/gio

7bc18c0139a854e6b7646d5760019d43a41d56cc — Elias Naur 6 months ago a8f42cd
ui/app: more documentation

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2 files changed, 8 insertions(+), 2 deletions(-)

M ui/app/doc.go
M ui/app/window.go
M ui/app/doc.go => ui/app/doc.go +7 -1
@@ 6,7 6,7 @@ functionality for running graphical user interfaces.

Windows

Create a new Window by callingNewWindow. On mobile platforms or when Gio
Create a new Window by calling NewWindow. On mobile platforms or when Gio
is embedded in another project, NewWindow merely connects with a previously
created window.



@@ 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

M ui/app/window.go => ui/app/window.go +1 -1
@@ 159,7 159,7 @@ func (w *Window) draw(size image.Point, frame *ui.Ops) {
	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
// window becomes active.
func (w *Window) Invalidate() {