Dillo
|
#include <types.hh>
Public Member Functions | |
Region () | |
~Region () | |
void | clear () |
void | addRectangle (Rectangle *r) |
Add a rectangle to the region and combine it with existing rectangles if possible. The number of rectangles is forced to be less than 16 by combining excessive rectangles. More... | |
lout::container::typed::Iterator < Rectangle > | rectangles () |
Private Attributes | |
lout::container::typed::List < Rectangle > * | rectangleList |
Implementation for a point set. Currently represented as a set of rectangles not containing each other. It is guaranteed that the rectangles returned by rectangles () cover all rectangles that were added with addRectangle ().
dw::core::Region::Region | ( | ) |
dw::core::Region::~Region | ( | ) |
void dw::core::Region::addRectangle | ( | Rectangle * | r | ) |
Add a rectangle to the region and combine it with existing rectangles if possible. The number of rectangles is forced to be less than 16 by combining excessive rectangles.
References lout::container::typed::Iterator< T >::getNext(), lout::container::typed::Iterator< T >::hasNext(), dw::core::Rectangle::height, lout::misc::max(), lout::misc::min(), dw::core::Rectangle::width, dw::core::Rectangle::x, and dw::core::Rectangle::y.
Referenced by dw::fltk::FltkViewBase::queueDraw().
|
inline |
References lout::container::typed::List< T >::clear().
Referenced by dw::fltk::FltkViewBase::draw().
|
inline |
References lout::container::typed::Collection< T >::iterator().
Referenced by dw::fltk::FltkViewBase::draw().
|
private |