From 5daae308823c5ecead1436a732992e1152b712a4 Mon Sep 17 00:00:00 2001 From: xianshenglu Date: Sun, 12 Nov 2023 00:35:10 +0800 Subject: [PATCH] chore: update API-internal --- docs/API-internal.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/API-internal.md b/docs/API-internal.md index 9c6adc8d..c5671c2a 100644 --- a/docs/API-internal.md +++ b/docs/API-internal.md @@ -83,3 +83,23 @@ None | blitImage | (x, y, width, height, arr, offset, from_queue) | Blit pixels (of R,G,B,A) to the display | drawImage | (img, x, y) | Draw image and track damage | autoscale | (containerWidth, containerHeight) | Scale the display + + +## 2.3 Clipboard Module + +### 2.3.1 Configuration Attributes + +None + +### 2.3.2 Methods + +| name | parameters | description +| ------------------ | ----------------- | ------------ +| grab | () | Begin capturing clipboard events +| ungrab | () | Stop capturing clipboard events + +### 2.3.3 Callbacks + +| name | parameters | description +| ------- | ---------- | ------------ +| onpaste | (text) | Called with the text content of the clipboard when the user paste something