Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,18 @@
|
||||
module clipboard
|
||||
|
||||
import clipboard.x11
|
||||
|
||||
// Clipboard represents a system clipboard.
|
||||
//
|
||||
// System "copy" and "paste" actions utilize the clipboard for temporary storage.
|
||||
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()
|
||||
}
|
||||
Reference in new issue
Block a user