mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-15 14:38:17 +08:00
rewrite
This commit is contained in:
14
gui/xfyne/window_windows.go
Normal file
14
gui/xfyne/window_windows.go
Normal file
@@ -0,0 +1,14 @@
|
||||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
package xfyne
|
||||
|
||||
import "fyne.io/fyne/v2"
|
||||
|
||||
func GetWindowHandle(window fyne.Window) uintptr {
|
||||
glfwWindow := getGlfwWindow(window)
|
||||
if glfwWindow == nil {
|
||||
return 0
|
||||
}
|
||||
return uintptr(glfwWindow.GetWin32Window())
|
||||
}
|
||||
Reference in New Issue
Block a user