summaryrefslogtreecommitdiff
path: root/doc.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-10 11:59:40 -0400
committerPietro Gagliardi <[email protected]>2014-04-10 11:59:40 -0400
commit9e185d815eec14ea9f50ffbbbf171cf78e597808 (patch)
treeb91a9d5916928516d4e11bf4ea4c32846a93b9d3 /doc.go
parent0a54daa7b1a3b433cce594bdac16659a06445c74 (diff)
Documented that event channels can be assigned to each other to collapse events.
Diffstat (limited to 'doc.go')
-rw-r--r--doc.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc.go b/doc.go
index 8a545fd..7487d5e 100644
--- a/doc.go
+++ b/doc.go
@@ -7,9 +7,9 @@ To use the library, place your main program code in another function and call Go
Building GUIs is as simple as creating a Window, populating it with Controls, and then calling Open() on the Window. A Window only has one Control: you pack multiple Controls into a Window by arranging them in layouts (Layouts are also Controls). There are presently two Layouts, Stack and Grid, each with different semantics on sizing and placement. See their documentation.
-Once a Window is open, you cannot make layout changes.
+Once a Window is open, you cannot make layout or event channel changes.
-Once your Window is open, you can begin to handle events. Handling events is simple: because all events are channels exposed as exported members of the Window and Control types, simply select on them.
+Once your Window is open, you can begin to handle events. Handling events is simple: because all events are channels exposed as exported members of the Window and Control types, simply select on them. Event channels are initialized by default. However, before you Open a Window, you can freely reassign event channels, such that multiple events trigger the same channel, making event logic more compact. You may also choose not to handle events; events are sent asynchronously so the GUI loop is not initerrupted.
Here is a simple, complete program that asks the user for their name and greets them after clicking a button.
package main