zenity/zenity_windows.go
2022-12-14 23:53:30 +00:00

18 lines
367 B
Go

package zenity
import (
"reflect"
"github.com/ncruces/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 })
}