2020-12-25 18:21:42 +01:00
|
|
|
module clipboard
|
|
|
|
|
|
|
|
import clipboard.x11
|
|
|
|
|
|
|
|
pub type Clipboard = x11.Clipboard
|
|
|
|
|
|
|
|
fn new_clipboard() &Clipboard {
|
|
|
|
return x11.new_clipboard()
|
|
|
|
}
|
|
|
|
|
2021-01-21 12:45:59 +01: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-12-25 18:21:42 +01:00
|
|
|
pub fn new_primary() &Clipboard {
|
|
|
|
return x11.new_primary()
|
|
|
|
}
|