Example #1
0
func GetIntId(ih *Ihandle, name string, id int) int {
	cName := C.CString(name)
	defer C.free(unsafe.Pointer(cName))

	return int(C.IupGetIntId((*C.Ihandle)(ih), cName, C.int(id)))
}
Example #2
0
func (h *Handle) GetIntId(name string, id int) int {
	cname := NewCS(name)
	defer FreeCS(cname)
	return int(C.IupGetIntId(h.p, cname, C.int(id)))
}