示例#1
0
文件: blendish.go 项目: james4k/exp
func TextField(x, y, w, h int, corners CornerFlags, state WidgetState, label string, cstart, cend int) {
	clabel := C.CString(label)
	defer C.free(unsafe.Pointer(clabel))
	C.bndTextField(vg, C.float(x), C.float(y), C.float(w), C.float(h),
		C.int(corners), C.BNDwidgetState(state), -1, clabel,
		C.int(cstart), C.int(cend))
}
示例#2
0
文件: blendish.go 项目: james4k/exp
func Button(x, y, w, h int, corners CornerFlags, state WidgetState, label string) {
	clabel := C.CString(label)
	defer C.free(unsafe.Pointer(clabel))
	C.bndToolButton(vg, C.float(x), C.float(y), C.float(w), C.float(h),
		C.int(corners), C.BNDwidgetState(state), -1, clabel)
}