getWindowProperty function
getWindowProperty returns properties of a window.
For further details, please see: https://docs.opencv.org/master/d7/dfc/group__highgui.html#gaaf9504b8f9cf19024d9d44a14e461656
Implementation
double getWindowProperty(String winName, WindowPropertyFlags flag) {
final cWinName = winName.toNativeUtf8().cast<ffi.Char>();
final p = calloc<ffi.Double>();
cvRun(() => chighgui.cv_getWindowProperty(cWinName, flag.value, p));
final rval = p.value;
calloc.free(p);
calloc.free(cWinName);
return rval;
}