mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 18:10:48 +08:00
122 lines
3.4 KiB
Go
122 lines
3.4 KiB
Go
package bridge
|
|
|
|
import (
|
|
"github.com/wailsapp/wails/v2/pkg/options/dialog"
|
|
)
|
|
|
|
type BridgeClient struct {
|
|
session *session
|
|
}
|
|
|
|
func (b BridgeClient) Quit() {
|
|
b.session.log.Info("Quit unsupported in Bridge mode")
|
|
}
|
|
|
|
func (b BridgeClient) NotifyEvent(message string) {
|
|
//b.session.sendMessage("n" + message)
|
|
b.session.log.Info("NotifyEvent: %s", message)
|
|
b.session.log.Info("NotifyEvent unsupported in Bridge mode")
|
|
}
|
|
|
|
func (b BridgeClient) CallResult(message string) {
|
|
b.session.sendMessage("c" + message)
|
|
}
|
|
|
|
func (b BridgeClient) OpenDialog(dialogOptions *dialog.OpenDialog, callbackID string) {
|
|
b.session.log.Info("OpenDialog unsupported in Bridge mode")
|
|
}
|
|
|
|
func (b BridgeClient) SaveDialog(dialogOptions *dialog.SaveDialog, callbackID string) {
|
|
b.session.log.Info("SaveDialog unsupported in Bridge mode")
|
|
}
|
|
|
|
func (b BridgeClient) MessageDialog(dialogOptions *dialog.MessageDialog, callbackID string) {
|
|
b.session.log.Info("MessageDialog unsupported in Bridge mode")
|
|
}
|
|
|
|
func (b BridgeClient) WindowSetTitle(title string) {
|
|
b.session.log.Info("WindowSetTitle unsupported in Bridge mode")
|
|
}
|
|
|
|
func (b BridgeClient) WindowShow() {
|
|
b.session.log.Info("WindowShow unsupported in Bridge mode")
|
|
}
|
|
|
|
func (b BridgeClient) WindowHide() {
|
|
b.session.log.Info("WindowHide unsupported in Bridge mode")
|
|
}
|
|
|
|
func (b BridgeClient) WindowCenter() {
|
|
b.session.log.Info("WindowCenter unsupported in Bridge mode")
|
|
}
|
|
|
|
func (b BridgeClient) WindowMaximise() {
|
|
b.session.log.Info("WindowMaximise unsupported in Bridge mode")
|
|
}
|
|
|
|
func (b BridgeClient) WindowUnmaximise() {
|
|
b.session.log.Info("WindowUnmaximise unsupported in Bridge mode")
|
|
}
|
|
|
|
func (b BridgeClient) WindowMinimise() {
|
|
b.session.log.Info("WindowMinimise unsupported in Bridge mode")
|
|
}
|
|
|
|
func (b BridgeClient) WindowUnminimise() {
|
|
b.session.log.Info("WindowUnminimise unsupported in Bridge mode")
|
|
}
|
|
|
|
func (b BridgeClient) WindowPosition(x int, y int) {
|
|
b.session.log.Info("WindowPosition unsupported in Bridge mode")
|
|
}
|
|
|
|
func (b BridgeClient) WindowSize(width int, height int) {
|
|
b.session.log.Info("WindowSize unsupported in Bridge mode")
|
|
}
|
|
|
|
func (b BridgeClient) WindowSetMinSize(width int, height int) {
|
|
b.session.log.Info("WindowSetMinSize unsupported in Bridge mode")
|
|
}
|
|
|
|
func (b BridgeClient) WindowSetMaxSize(width int, height int) {
|
|
b.session.log.Info("WindowSetMaxSize unsupported in Bridge mode")
|
|
}
|
|
|
|
func (b BridgeClient) WindowFullscreen() {
|
|
b.session.log.Info("WindowFullscreen unsupported in Bridge mode")
|
|
}
|
|
|
|
func (b BridgeClient) WindowUnFullscreen() {
|
|
b.session.log.Info("WindowUnFullscreen unsupported in Bridge mode")
|
|
}
|
|
|
|
func (b BridgeClient) WindowSetColour(colour int) {
|
|
b.session.log.Info("WindowSetColour unsupported in Bridge mode")
|
|
}
|
|
|
|
func (b BridgeClient) DarkModeEnabled(callbackID string) {
|
|
b.session.log.Info("DarkModeEnabled unsupported in Bridge mode")
|
|
}
|
|
|
|
func (b BridgeClient) SetApplicationMenu(menuJSON string) {
|
|
b.session.log.Info("SetApplicationMenu unsupported in Bridge mode")
|
|
}
|
|
|
|
func (b BridgeClient) SetTrayMenu(trayMenuJSON string) {
|
|
b.session.log.Info("SetTrayMenu unsupported in Bridge mode")
|
|
}
|
|
|
|
func (b BridgeClient) UpdateTrayMenuLabel(JSON string) {
|
|
b.session.log.Info("UpdateTrayMenuLabel unsupported in Bridge mode")
|
|
}
|
|
|
|
func (b BridgeClient) UpdateContextMenu(contextMenuJSON string) {
|
|
b.session.log.Info("UpdateContextMenu unsupported in Bridge mode")
|
|
}
|
|
|
|
func newBridgeClient(session *session) *BridgeClient {
|
|
return &BridgeClient{
|
|
session: session,
|
|
}
|
|
}
|