Skip to content

Commit

Permalink
Updates Go bridge files
Browse files Browse the repository at this point in the history
  • Loading branch information
Snider committed Feb 3, 2024
1 parent 45f8bc6 commit 8003542
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 3 deletions.
8 changes: 8 additions & 0 deletions src/assets/wailsjs/go/main/App.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT

export function GetUserSelectedDirectoryPath():Promise<string>;

export function GetUserSelectedFilePath():Promise<string>;

export function GetUserSelectedSaveFilePath(arg1:string):Promise<string>;
15 changes: 15 additions & 0 deletions src/assets/wailsjs/go/main/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// @ts-check
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT

export function GetUserSelectedDirectoryPath() {
return window['go']['main']['App']['GetUserSelectedDirectoryPath']();
}

export function GetUserSelectedFilePath() {
return window['go']['main']['App']['GetUserSelectedFilePath']();
}

export function GetUserSelectedSaveFilePath(arg1) {
return window['go']['main']['App']['GetUserSelectedSaveFilePath'](arg1);
}
8 changes: 8 additions & 0 deletions src/assets/wailsjs/runtime/runtime.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,11 @@ export function Hide(): void;
// [Show](https://wails.io/docs/reference/runtime/intro#show)
// Shows the application.
export function Show(): void;

// [ClipboardGetText](https://wails.io/docs/reference/runtime/clipboard#clipboardgettext)
// Returns the current text stored on clipboard
export function ClipboardGetText(): Promise<string>;

// [ClipboardSetText](https://wails.io/docs/reference/runtime/clipboard#clipboardsettext)
// Sets a text on the clipboard
export function ClipboardSetText(text: string): Promise<boolean>;
14 changes: 11 additions & 3 deletions src/assets/wailsjs/runtime/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,19 @@ export function LogFatal(message) {
}

export function EventsOnMultiple(eventName, callback, maxCallbacks) {
window.runtime.EventsOnMultiple(eventName, callback, maxCallbacks);
return window.runtime.EventsOnMultiple(eventName, callback, maxCallbacks);
}

export function EventsOn(eventName, callback) {
EventsOnMultiple(eventName, callback, -1);
return EventsOnMultiple(eventName, callback, -1);
}

export function EventsOff(eventName, ...additionalEventNames) {
return window.runtime.EventsOff(eventName, ...additionalEventNames);
}

export function EventsOnce(eventName, callback) {
EventsOnMultiple(eventName, callback, 1);
return EventsOnMultiple(eventName, callback, 1);
}

export function EventsEmit(eventName) {
Expand Down Expand Up @@ -192,3 +192,11 @@ export function Hide() {
export function Show() {
window.runtime.Show();
}

export function ClipboardGetText() {
return window.runtime.ClipboardGetText();
}

export function ClipboardSetText(text) {
return window.runtime.ClipboardSetText(text);
}

0 comments on commit 8003542

Please sign in to comment.