Hello there,
Hi.
I have built a "Pong" game. Now i want to built a collision between the window and the mooving rectangles.
If this is the paddle, just clamp the position so that if it's past the position it should be, change it to the position it should be (e.g. if it's too high, place it so that it's as high as it can be without leaving the window).
If it's the ball, same thing except you'll also need to change the direction of the ball.
As for collision between a paddle and a ball, you should be able to find it using Google (AABB collision).