fn new() &Clipboard
new returns a new Clipboard
instance allocated on the heap. The Clipboard
resources can be released with free()
fn new_primary() &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.
fn (cb Clipboard) check_ownership() bool
check_ownership returns true
if the Clipboard
has the content ownership.
fn (mut cb Clipboard) clear_all()
clear_all clears the clipboard.
fn (mut cb Clipboard) copy(text string) bool
copy copies text
into the clipboard.
fn (mut cb Clipboard) destroy()
destroy destroys the clipboard and free it's resources.
fn (cb &Clipboard) is_available() bool
is_available returns true
if the clipboard is available for use.
fn (mut cb Clipboard) paste() string
paste returns current entry as a string
from the clipboard.