clipboard: add `[heap]` tag to the Clipboard structs (#14412)
parent
eeff02a8ee
commit
02e026e298
|
@ -8,6 +8,7 @@ module clipboard
|
||||||
// Clipboard represents a system clipboard.
|
// Clipboard represents a system clipboard.
|
||||||
//
|
//
|
||||||
// System "copy" and "paste" actions utilize the clipboard for temporary storage.
|
// System "copy" and "paste" actions utilize the clipboard for temporary storage.
|
||||||
|
[heap]
|
||||||
pub struct Clipboard {
|
pub struct Clipboard {
|
||||||
pb voidptr
|
pb voidptr
|
||||||
last_cb_serial i64
|
last_cb_serial i64
|
||||||
|
|
|
@ -54,6 +54,7 @@ fn C.DestroyWindow(hwnd C.HWND)
|
||||||
// Clipboard represents a system clipboard.
|
// Clipboard represents a system clipboard.
|
||||||
//
|
//
|
||||||
// System "copy" and "paste" actions utilize the clipboard for temporary storage.
|
// System "copy" and "paste" actions utilize the clipboard for temporary storage.
|
||||||
|
[heap]
|
||||||
struct Clipboard {
|
struct Clipboard {
|
||||||
max_retries int
|
max_retries int
|
||||||
retry_delay int
|
retry_delay int
|
||||||
|
|
|
@ -3,6 +3,7 @@ module dummy
|
||||||
// Clipboard represents a system clipboard.
|
// Clipboard represents a system clipboard.
|
||||||
//
|
//
|
||||||
// System "copy" and "paste" actions utilize the clipboard for temporary storage.
|
// System "copy" and "paste" actions utilize the clipboard for temporary storage.
|
||||||
|
[heap]
|
||||||
pub struct Clipboard {
|
pub struct Clipboard {
|
||||||
mut:
|
mut:
|
||||||
text string // text data sent or received
|
text string // text data sent or received
|
||||||
|
|
|
@ -138,6 +138,7 @@ enum AtomType {
|
||||||
text_html = 9
|
text_html = 9
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[heap]
|
||||||
pub struct Clipboard {
|
pub struct Clipboard {
|
||||||
display &C.Display
|
display &C.Display
|
||||||
mut:
|
mut:
|
||||||
|
|
Loading…
Reference in New Issue