示例#1
0
func GetAttributeHandle(ih *Ihandle, name string) *Ihandle {
	cName := C.CString(name)
	defer C.free(unsafe.Pointer(cName))

	return (*Ihandle)(C.IupGetAttributeHandle((*C.Ihandle)(ih), cName))
}
示例#2
0
文件: handle.go 项目: visualfc/go-iup
func (h *Handle) GetAttributeHandle(name string) IHandle {
	cname := NewCS(name)
	defer FreeCS(cname)
	return toHandle(C.IupGetAttributeHandle(h.p, cname))
}