2021-02-05 16:49:04 +01:00
|
|
|
module clipboard
|
|
|
|
|
|
|
|
import clipboard.dummy
|
|
|
|
|
2022-04-05 12:06:32 +02:00
|
|
|
// Clipboard represents a system clipboard.
|
|
|
|
//
|
|
|
|
// System "copy" and "paste" actions utilize the clipboard for temporary storage.
|
2021-02-05 16:49:04 +01:00
|
|
|
pub type Clipboard = dummy.Clipboard
|
|
|
|
|
|
|
|
fn new_clipboard() &Clipboard {
|
|
|
|
return dummy.new_clipboard()
|
|
|
|
}
|
|
|
|
|
|
|
|
// new_primary returns a new X11 `PRIMARY` type `Clipboard` instance allocated on the heap.
|
|
|
|
// Please note: new_primary only works on X11 based systems.
|
|
|
|
pub fn new_primary() &Clipboard {
|
|
|
|
return dummy.new_primary()
|
|
|
|
}
|