|
tiny-skia-cpp
A C++20 2D rendering library (port of tiny-skia)
|
Signed integer rectangle (x, y, width, height).
#include <tiny_skia/Geom.h>
Public Member Functions | |
| std::optional< IntRect > | intersect (const IntRect &other) const |
| Returns the intersection with another rect, or nullopt if disjoint. | |
Static Public Member Functions | |
| static std::optional< IntRect > | fromXYWH (std::int32_t x, std::int32_t y, std::uint32_t width, std::uint32_t height) |
| Creates from components. Returns nullopt for zero dimensions or overflow. | |