1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
Jah-On 2022-05-16 05:45:40 +00:00 committed by GitHub
parent eeff02a8ee
commit 02e026e298
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: