mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-06 18:32:50 +08:00
18 lines
284 B
Go
18 lines
284 B
Go
//go:build darwin
|
|
|
|
package gutil
|
|
|
|
import (
|
|
"fyne.io/fyne/v2"
|
|
)
|
|
|
|
func GetWindowHandle(window fyne.Window) uintptr {
|
|
// macos doesn't support --wid. :(
|
|
return 0
|
|
glfwWindow := getGlfwWindow(window)
|
|
if glfwWindow == nil {
|
|
return 0
|
|
}
|
|
return uintptr(glfwWindow.GetCocoaWindow())
|
|
}
|