Go to the source code of this file.
◆ SkXRect
Defines a fixed-point rectangle, identical to the integer SkIRect, but its coordinates are treated as SkFixed rather than int32_t.
Definition at line 24 of file SkScan.h.
◆ XRect_round()
Round the SkXRect coordinates, and store the result in the SkIRect.
Definition at line 118 of file SkScan.h.
118 {
123}
#define SkFixedRoundToInt(x)
int32_t fBottom
larger y-axis bounds
int32_t fTop
smaller y-axis bounds
int32_t fLeft
smaller x-axis bounds
int32_t fRight
larger x-axis bounds
◆ XRect_roundOut()
Round the SkXRect coordinates out (i.e. use floor for left/top, and ceiling for right/bottom), and store the result in the SkIRect.
Definition at line 128 of file SkScan.h.
128 {
133}
#define SkFixedCeilToInt(x)
#define SkFixedFloorToInt(x)
◆ XRect_set() [1/2]
Assign an SkXRect from a SkIRect, by promoting the src rect's coordinates from int to SkFixed. Does not check for overflow if the src coordinates exceed 32K
Definition at line 98 of file SkScan.h.
◆ XRect_set() [2/2]
Assign an SkXRect from a SkRect, by promoting the src rect's coordinates from SkScalar to SkFixed. Does not check for overflow if the src coordinates exceed 32K
Definition at line 109 of file SkScan.h.
109 {
114}
#define SkScalarToFixed(x)