2020-03-21 11:48:02 +03:00
|
|
|
module clipboard
|
|
|
|
|
2020-12-25 20:21:42 +03:00
|
|
|
import clipboard.dummy
|
|
|
|
|
|
|
|
pub type Clipboard = dummy.Clipboard
|
2020-03-21 11:48:02 +03:00
|
|
|
|
|
|
|
fn new_clipboard() &Clipboard {
|
2020-12-25 20:21:42 +03:00
|
|
|
return dummy.new_clipboard()
|
2020-03-21 11:48:02 +03:00
|
|
|
}
|
|
|
|
|
2021-01-21 14:45:59 +03:00
|
|
|
// new_primary returns a new X11 `PRIMARY` type `Clipboard` instance allocated on the heap.
|
|
|
|
// Please note: new_primary only works on X11 based systems.
|
2020-03-21 11:48:02 +03:00
|
|
|
pub fn new_primary() &Clipboard {
|
2020-12-25 20:21:42 +03:00
|
|
|
return dummy.new_primary()
|
2020-03-21 11:48:02 +03:00
|
|
|
}
|