zenity/zenity_windows.go
2024-07-10 00:06:01 -04:00

18 lines
367 B
Go

package zenity
import (
"reflect"
"git.bigun.dev/evan/zenity/internal/win"
)
func isAvailable() bool { return true }
func attach(id any) Option {
if v := reflect.ValueOf(id); v.Kind() == reflect.Uintptr {
id = win.HWND(uintptr(v.Uint()))
} else {
panic("interface conversion: expected uintptr")
}
return funcOption(func(o *options) { o.attach = id })
}