1 Star 0 Fork 0

李梦凡/gocv

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
highgui_string.go 704 Bytes
一键复制 编辑 原始数据 按行查看 历史
mh-cbon 提交于 2019-12-08 14:46 . add String method (#552)
package gocv
/*
#include <stdlib.h>
#include "highgui_gocv.h"
*/
import "C"
func (c WindowFlag) String() string {
switch c {
case WindowNormal:
return "window-normal"
case WindowFullscreen:
return "window-fullscreen"
case WindowFreeRatio:
return "window-free-ratio"
}
return ""
}
func (c WindowPropertyFlag) String() string {
switch c {
case WindowPropertyFullscreen:
return "window-property-fullscreen"
case WindowPropertyAutosize:
return "window-property-autosize"
case WindowPropertyAspectRatio:
return "window-property-aspect-ratio"
case WindowPropertyOpenGL:
return "window-property-opengl"
case WindowPropertyVisible:
return "window-property-visible"
}
return ""
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/vanlemon/gocv.git
git@gitee.com:vanlemon/gocv.git
vanlemon
gocv
gocv
master

搜索帮助