Exemplo n.º 1
0
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))
}
Exemplo n.º 2
0
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)
}