mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-06 18:32:50 +08:00
18 lines
283 B
Go
18 lines
283 B
Go
//go:build windows
|
|
// +build windows
|
|
|
|
package xfyne
|
|
|
|
import (
|
|
"fyne.io/fyne/v2"
|
|
"unsafe"
|
|
)
|
|
|
|
func GetWindowHandle(window fyne.Window) uintptr {
|
|
glfwWindow := getGlfwWindow(window)
|
|
if glfwWindow == nil {
|
|
return 0
|
|
}
|
|
return uintptr(unsafe.Pointer(glfwWindow.GetWin32Window()))
|
|
}
|