SkIRect is a class in the Skia Graphics Engine that represents a rectangle with integer coordinates. It is defined in the SkRect.h header file and is part of the Skia library.
Examples:
1. To create a rectangle with an origin point of (0, 0) and a width of 100 and a height of 200:
SkIRect rect = {0, 0, 100, 200};
2. To get the width of a SkIRect object:
int width = rect.width();
In this example, we are calling the width() method on a SkIRect instance, which returns the width of the rectangle as an integer.
Package Library:
Skia is an open-source, cross-platform graphics engine that is used by many popular applications and frameworks, including Chrome, Android, Flutter, and more. SkIRect is a part of the Skia library, which is available as a standalone package or can be included as a dependency in other projects.
C++ (Cpp) SkIRect::width - 30 examples found. These are the top rated real world C++ (Cpp) examples of SkIRect::width extracted from open source projects. You can rate examples to help us improve the quality of examples.