Ream v0.1.0-1
C++ graphics library for Linux
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
RSurfaceGeometry Struct Reference

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.
 

Detailed Description

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.

Member Function Documentation

◆ isValid()

bool isValid ( ) const
inlinenoexcept

Checks whether the geometry is usable.

Returns
true if both viewport and dst are sorted, non-empty and finite.

Member Data Documentation

◆ viewport

SkRect viewport

Virtual coordinate space of the surface (source rect).

◆ dst

SkRect dst

Destination rect the viewport is mapped to within the backing image.

◆ transform

CZTransform transform { CZTransform::Normal }

Transform applied when mapping the viewport onto the destination.