summaryrefslogtreecommitdiff
path: root/area.go
diff options
context:
space:
mode:
Diffstat (limited to 'area.go')
-rw-r--r--area.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/area.go b/area.go
index d78dcd7..1c75e93 100644
--- a/area.go
+++ b/area.go
@@ -80,6 +80,8 @@ type AreaHandler interface {
// For example, on Windows, buttons 4 and 5 are mapped to what are internally referred to as "XBUTTON1" and "XBUTTON2", which often correspond to the dedicated back/forward navigation buttons on the sides of many mice.
// The examples here are NOT a guarantee as to how many buttons maximum will be available on a given system.
// (TODO find out if there's a way to query available button count)
+//
+// If the user clicked on the Area to switch to the Window it is contained in from another window in the OS, the Area will receive a MouseEvent for that click.
type MouseEvent struct {
// Pos is the position of the mouse in the Area at the time of the event.
Pos image.Point