forked from joejulian/gio
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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user