예제 #1
0
파일: layout.go 프로젝트: DaviWei/iup
func Insert(ih, ref_child, new_child *Ihandle) *Ihandle {
	result := C.IupInsert(ih.C(), ref_child.C(), new_child.C())
	if result == nil {
		return nil
	}

	return ih
}
예제 #2
0
파일: handle.go 프로젝트: visualfc/go-iup
func (h *Handle) Insert(ref_child, child IHandle) error {
	if C.IupInsert(h.p, toNative(ref_child), toNative(child)) == nil {
		return &Error{"IupInsert"}
	}
	return nil
}