io/pointer: minor documentation update.

The `image.Rectangle` object should be passed to the `pointer.Rect` function.

Signed-off-by: steverusso <steverusso@protonmail.com>
This commit is contained in:
steverusso
2020-02-11 22:19:06 -05:00
committed by Elias Naur
parent e8add40440
commit fd5dfacb40
+1 -1
View File
@@ -19,7 +19,7 @@ For example, to set up a rectangular hit area:
var h *Handler = ...
r := image.Rectangle{...}
pointer.Rect().Add(ops)
pointer.Rect(r).Add(ops)
pointer.InputOp{Key: h}.Add(ops)
Note that areas compound: the effective area of multiple area