roo_display
API Documentation for roo_display
Loading...
Searching...
No Matches
roo_display::RectUnion Class Reference

Union of rectangles used as an exclusion mask. More...

#include <clip_exclude_rects.h>

Public Member Functions

 RectUnion (const Box *begin, const Box *end)
 Construct a rect union from a range.
 
void reset (const Box *begin, const Box *end)
 Reset to a new range.
 
bool contains (int16_t x, int16_t y) const
 Return whether the union contains a point.
 
bool intersects (const Box &rect) const
 Return whether the union intersects a rectangle.
 
size_t size () const
 Return the number of rectangles in the union.
 
const Boxat (int idx) const
 Return the rectangle at index idx.
 

Detailed Description

Union of rectangles used as an exclusion mask.

Definition at line 9 of file clip_exclude_rects.h.

Constructor & Destructor Documentation

◆ RectUnion()

roo_display::RectUnion::RectUnion ( const Box begin,
const Box end 
)
inline

Construct a rect union from a range.

Definition at line 12 of file clip_exclude_rects.h.

Member Function Documentation

◆ at()

const Box & roo_display::RectUnion::at ( int  idx) const
inline

Return the rectangle at index idx.

Definition at line 40 of file clip_exclude_rects.h.

◆ contains()

bool roo_display::RectUnion::contains ( int16_t  x,
int16_t  y 
) const
inline

◆ intersects()

bool roo_display::RectUnion::intersects ( const Box rect) const
inline

Return whether the union intersects a rectangle.

Definition at line 29 of file clip_exclude_rects.h.

◆ reset()

void roo_display::RectUnion::reset ( const Box begin,
const Box end 
)
inline

Reset to a new range.

Definition at line 15 of file clip_exclude_rects.h.

◆ size()

size_t roo_display::RectUnion::size ( ) const
inline

Return the number of rectangles in the union.

Definition at line 37 of file clip_exclude_rects.h.


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