SkIRect rect = SkIRect::MakeLTRB(10, 20, 30, 40);
int height = rect.height();
rect.setHeight(50);This changes the height of the rectangle to 50, while keeping the left, top, and right coordinates the same. SkIRect is part of the Skia graphics library.