Example #1
0
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
}
Example #2
0
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
}