CLN: move clip to core/generic (adds to Panel as well), related to (GH2747)