Example 2: Decrease the width of a rectangle by 5 pixels.c++
Example 3: Increase the width of a rectangle by a percentage.c++ IntRect rect(0, 0, 20, 20); // create rectangle at position (0, 0) with width and height of 20 pixels float percentage = 0.5; // 50% increase int increase = rect.getWidth() * percentage; rect.inflateX(increase); // increase width by 50% ``` Based on the use of the IntRect class, it's likely that this code is in the graphics library, possibly a game development focused package such as SDL or SFML.