mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
clipboard: document all pub functions, adhere to vdoc style (#8243)
This commit is contained in:
@ -8,7 +8,7 @@ pub struct Clipboard {
|
||||
pb voidptr
|
||||
last_cb_serial i64
|
||||
mut:
|
||||
foo int // TODO remove, for mut hack
|
||||
foo int // TODO remove, for mut hack
|
||||
}
|
||||
|
||||
fn C.darwin_new_pasteboard() voidptr
|
||||
@ -62,6 +62,8 @@ fn (mut cb Clipboard) get_text() string {
|
||||
return unsafe { utf8_clip.vstring() }
|
||||
}
|
||||
|
||||
// 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 {
|
||||
panic('Primary clipboard is not supported on non-Linux systems.')
|
||||
}
|
||||
|
Reference in New Issue
Block a user