mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
16 lines
354 B
V
16 lines
354 B
V
module clipboard
|
|
|
|
import clipboard.x11
|
|
|
|
pub type Clipboard = x11.Clipboard
|
|
|
|
fn new_clipboard() &Clipboard {
|
|
return x11.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 x11.new_primary()
|
|
}
|