TRect rect = TRect(10, 20, 50, 70);
int width = rect.Width(); int height = rect.Height();
TRect rect1 = TRect(10, 20, 50, 70); TRect rect2 = TRect(30, 40, 70, 90); if (rect1.IntersectsWith(rect2)) { // Rectangles intersect }This checks if the two rectangles intersect and executes code if they do. Overall, TRect is a useful struct for graphical programming and is part of the VCL package in Borland C++ Builder.