diff options
| author | faiface <faiface2202@gmail.com> | 2019-05-07 12:33:26 +0200 |
|---|---|---|
| committer | faiface <faiface2202@gmail.com> | 2019-05-07 12:33:26 +0200 |
| commit | 2c8b965302a2664338577075996030efb066e562 (patch) | |
| tree | ef4caf61d4722a5306a49531fbb65361756fb87d /event.go | |
| parent | a4dfe93ae19b52ec86d3a0d875baf64352a69f71 (diff) | |
| download | gui-2c8b965302a2664338577075996030efb066e562.zip | |
fix event doc
Diffstat (limited to 'event.go')
| -rw-r--r-- | event.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -10,7 +10,7 @@ import "fmt" // wi/close // mo/down/421/890 // kb/type/98 -// resize/920/655 +// resize/0/0/920/655 // // As you can see, the common way is to form the event string like a file path, // from the most general information to the most specific. This allows pattern matching @@ -26,8 +26,8 @@ import "fmt" // // mouse released on (x, y) // case event.Matches("kb/type/%d", &r): // // rune r typed on the keyboard (encoded as a number in the event string) -// case event.Matches("resize/%d/%d", &w, &h): -// // environment resized to (w, h) +// case event.Matches("resize/%d/%d/%d/%d", &x0, &y0, &x1, &y1): +// // environment resized to (x0, y0, x1, y1) // } // // And here's how to pattern match on the prefix of an event: |