mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 01:15:35 +00:00
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 = ...
|
var h *Handler = ...
|
||||||
|
|
||||||
r := image.Rectangle{...}
|
r := image.Rectangle{...}
|
||||||
pointer.Rect().Add(ops)
|
pointer.Rect(r).Add(ops)
|
||||||
pointer.InputOp{Key: h}.Add(ops)
|
pointer.InputOp{Key: h}.Add(ops)
|
||||||
|
|
||||||
Note that areas compound: the effective area of multiple area
|
Note that areas compound: the effective area of multiple area
|
||||||
|
|||||||
Reference in New Issue
Block a user