rum-goggles/vendor/github.com/wailsapp/go-webview2/pkg/edge/chromium_amd64.go

21 lines
324 B
Go
Raw Normal View History

2024-02-23 16:39:16 +00:00
//go:build windows
// +build windows
package edge
import (
"github.com/wailsapp/go-webview2/internal/w32"
"unsafe"
)
func (e *Chromium) SetSize(bounds w32.Rect) {
if e.controller == nil {
return
}
e.controller.vtbl.PutBounds.Call(
uintptr(unsafe.Pointer(e.controller)),
uintptr(unsafe.Pointer(&bounds)),
)
}