mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: check (mut f Foo) syntax
This commit is contained in:
@@ -6,22 +6,22 @@ pub fn new() &Clipboard {
|
||||
}
|
||||
|
||||
// copy some text into the clipboard
|
||||
pub fn (cb mut Clipboard) copy(text string) bool {
|
||||
pub fn (mut cb Clipboard) copy(text string) bool {
|
||||
return cb.set_text(text)
|
||||
}
|
||||
|
||||
// get the text from the clipboard
|
||||
pub fn (cb mut Clipboard) paste() string {
|
||||
pub fn (mut cb Clipboard) paste() string {
|
||||
return cb.get_text()
|
||||
}
|
||||
|
||||
// clear the clipboard
|
||||
pub fn (cb mut Clipboard) clear_all() {
|
||||
pub fn (mut cb Clipboard) clear_all() {
|
||||
cb.clear()
|
||||
}
|
||||
|
||||
// destroy the clipboard
|
||||
pub fn (cb mut Clipboard) destroy() {
|
||||
pub fn (mut cb Clipboard) destroy() {
|
||||
cb.free()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user