LayoutRect rect;
LayoutRect rect(ivec2(10, 20), ivec2(100, 80));
rect.getSize(); // returns a vec2 with (100, 80) rect.setSize(ivec2(120, 90));
rect.getUpperLeft(); // returns a vec2 with (10, 20) rect.setUpperLeft(ivec2(30, 40));These examples demonstrate some of the basic methods of the LayoutRect class, which allow you to create, set, and retrieve the dimensions and position of a rectangle. This class is part of the Cinder library, which is a collection of C++ tools for creative coding and graphics programming.