gtk/icon_view.go
func (v *IconView) GetItemAtPos(x, y int) (*TreePath, *CellRenderer) {
	var (
		cpath *C.GtkTreePath
		ccell *C.GtkCellRenderer
		path  *TreePath
		cell  *CellRenderer
	)

	C.gtk_icon_view_get_item_at_pos(v.native(), C.gint(x), C.gint(y), &cpath, &ccell)

	if cpath != nil {
		path = &TreePath{cpath}
		runtime.SetFinalizer(path, (*TreePath).free)
	}

	if ccell != nil {
		cell = wrapCellRenderer(glib.Take(unsafe.Pointer(ccell)))
	}

	return path, cell
}
func (v *IconView) GetItemAtPos(x, y int) (*TreePath, *CellRenderer) {
	var (
		cpath *C.GtkTreePath
		ccell *C.GtkCellRenderer
		path  *TreePath
		cell  *CellRenderer
	)

	C.gtk_icon_view_get_item_at_pos(v.native(), C.gint(x), C.gint(y), &cpath, &ccell)

	if cpath != nil {
		path = &TreePath{cpath}
		runtime.SetFinalizer(path, (*TreePath).free)
	}

	if ccell != nil {
		cell = wrapCellRenderer(glib.Take(unsafe.Pointer(ccell)))
	}

	return path, cell
}
func ( v * IconView ) GetItemAtPos ( x , y int ) ( * TreePath , * CellRenderer ) { var ( cpath * C . GtkTreePath ccell * C . GtkCellRenderer path * TreePath cell * CellRenderer ) C . gtk_icon_view_get_item_at_pos ( v . native ( ) , C . gint ( x ) , C . gint ( y ) , & cpath , & ccell ) if cpath != nil { path = & TreePath { cpath } runtime . SetFinalizer ( path , ( * TreePath ) . free ) } if ccell != nil { cell = wrapCellRenderer ( glib . Take ( unsafe . Pointer ( ccell ) ) ) } return path , cell }
// GetItemAtPos is a wrapper around gtk_icon_view_get_item_at_pos().
GetItemAtPos is a wrapper around gtk_icon_view_get_item_at_pos () .