1
0
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:
Larpon
2021-01-21 12:45:59 +01:00
committed by GitHub
parent 59c3e98c16
commit 62c2168b0b
7 changed files with 53 additions and 28 deletions

View File

@ -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.')
}