sf::IntRect rect(0, 0, 50, 50); // Creates a new IntRect instance with top-left corner at (0, 0) and dimensions of 50x50 sf::Vector2i topLeft(rect.left, rect.top); // Gets the position of the top-left corner of the rectangle as a Vector2i int area = rect.width * rect.height; // Calculates the area of the rectangle and stores it in an integer variableThese examples demonstrate the basic usage of IntRect, which includes creating a new instance with specified dimensions, getting the position of its top-left corner, and calculating its area. Overall, IntRect is a useful class for dealing with rectangular areas in 2D games and applications, and its integration into the SFML package library makes it easy to use alongside other multimedia tools.