tiny-skia-cpp
A C++20 2D rendering library (port of tiny-skia)
Loading...
Searching...
No Matches
tiny_skia::IntRect Class Reference

Signed integer rectangle (x, y, width, height).

#include <tiny_skia/Geom.h>

Public Member Functions

std::optional< IntRectintersect (const IntRect &other) const
 Returns the intersection with another rect, or nullopt if disjoint.
 

Static Public Member Functions

static std::optional< IntRectfromXYWH (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.
 

The documentation for this class was generated from the following file: