// create an SkRect object SkRect myRect; // use SkRect set function to set left, top, right, and bottom values myRect.set(10, 20, 50, 70);
// create an SkRect object SkRect myRect; // set left, top, right, and bottom values separately myRect.setLeft(10); myRect.setTop(20); myRect.setRight(50); myRect.setBottom(70);This code also creates an SkRect object called `myRect`, but instead of using the SkRect set function, it sets the values separately using separate functions for each one. Package library: Skia Graphics Library (written in C++)