clipboard: add `[heap]` tag to the Clipboard structs (#14412)

Jah-On 2022-05-16 05:45:40 +00:00 committed by Jef Roosens
parent 8ce7860e8a
commit cd43bae0b4
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
4 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,7 @@ module clipboard
// Clipboard represents a system clipboard.
//
// System "copy" and "paste" actions utilize the clipboard for temporary storage.
[heap]
pub struct Clipboard {
pb voidptr
last_cb_serial i64

View File

@ -54,6 +54,7 @@ fn C.DestroyWindow(hwnd C.HWND)
// Clipboard represents a system clipboard.
//
// System "copy" and "paste" actions utilize the clipboard for temporary storage.
[heap]
struct Clipboard {
max_retries int
retry_delay int

View File

@ -3,6 +3,7 @@ module dummy
// Clipboard represents a system clipboard.
//
// System "copy" and "paste" actions utilize the clipboard for temporary storage.
[heap]
pub struct Clipboard {
mut:
text string // text data sent or received

View File

@ -138,6 +138,7 @@ enum AtomType {
text_html = 9
}
[heap]
pub struct Clipboard {
display &C.Display
mut: