Exemple #1
0
func GetInt(ih *Ihandle, name string) int64 {
	cName := C.CString(name)
	defer C.free(unsafe.Pointer(cName))

	return int64(C.IupGetInt((*C.Ihandle)(ih), cName))
}
Exemple #2
0
func (h *Handle) GetInt(name string) int {
	cname := NewCS(name)
	defer FreeCS(cname)
	return int(C.IupGetInt(h.p, cname))
}