2 Star 3 Fork 2

寻雾启示/wails3-screenshot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
goservice.go 701 Bytes
一键复制 编辑 原始数据 按行查看 历史
package main
import (
"github.com/wailsapp/wails/v3/pkg/application"
)
type GoService struct{}
func (g *GoService) OpenNewTopWindow(base64 string, width int, height int, time string) {
cutWindow := app.NewWebviewWindowWithOptions(application.WebviewWindowOptions{
Title: "截图展示",
BackgroundColour: application.NewRGB(27, 38, 54),
Width: width,
Height: height,
URL: "/#/cut?time=" + time,
AlwaysOnTop: true,
// Hidden: true,
Frameless: true,
DisableResize: true,
// EnableDragAndDrop: true,
// StartState: application.WindowStateFullscreen,
})
cutWindow.EmitEvent("showCutImage", base64, time)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bitporo/wails3-screenshot.git
[email protected]:bitporo/wails3-screenshot.git
bitporo
wails3-screenshot
wails3-screenshot
main

搜索帮助