|
Ream v0.1.0-1
C++ graphics library for Linux
|
Describes the coordinate mapping of an RSurface. More...
#include <RSurfaceGeometry.h>
Public Member Functions | |
| bool | isValid () const noexcept |
| Checks whether the geometry is usable. | |
Public Attributes | |
| SkRect | viewport |
| Virtual coordinate space of the surface (source rect). | |
| SkRect | dst |
| Destination rect the viewport is mapped to within the backing image. | |
| CZTransform | transform { CZTransform::Normal } |
| Transform applied when mapping the viewport onto the destination. | |
Describes the coordinate mapping of an RSurface.
Defines how the surface's virtual viewport is mapped onto its destination rect within the backing image, along with the transform applied during that mapping.
|
inlinenoexcept |
Checks whether the geometry is usable.
true if both viewport and dst are sorted, non-empty and finite. | SkRect viewport |
Virtual coordinate space of the surface (source rect).
| SkRect dst |
Destination rect the viewport is mapped to within the backing image.
| CZTransform transform { CZTransform::Normal } |
Transform applied when mapping the viewport onto the destination.