~eliasnaur/gio-patches

gio: io/pointer: minor documentation update. v1 PROPOSED

~steverusso
~steverusso: 1
 io/pointer: minor documentation update.

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~eliasnaur/gio-patches/patches/9777/mbox | git am -3
Learn more about email & git

[PATCH gio] io/pointer: minor documentation update. Export this patch

~steverusso
From: steverusso <steverusso@protonmail.com>

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

Signed-off-by: steverusso <steverusso@protonmail.com>
---
 io/pointer/doc.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/io/pointer/doc.go b/io/pointer/doc.go
index 2b08d5d..6599b97 100644
--- a/io/pointer/doc.go
+++ b/io/pointer/doc.go
@@ -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
-- 
2.24.1
Thanks, applied.
View this thread in the archives