#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. | |
| lout::container::typed::Iterator < Rectangle > | rectangles () |
Private Attributes | |
| lout::container::typed::List < Rectangle > * | rectangleList |
| dw::core::Region::Region | ( | ) |
References rectangleList.
| dw::core::Region::~Region | ( | ) |
References rectangleList.
| 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::List< T >::append(), lout::container::typed::Iterator< T >::getNext(), lout::container::typed::Iterator< T >::hasNext(), dw::core::Rectangle::height, lout::container::typed::Collection< T >::iterator(), lout::misc::max(), lout::misc::min(), rectangleList, lout::container::typed::List< T >::removeRef(), lout::container::typed::List< T >::size(), dw::core::Rectangle::width, dw::core::Rectangle::x, and dw::core::Rectangle::y.
Referenced by dw::fltk::FltkViewBase::queueDraw().
| void dw::core::Region::clear | ( | ) | [inline] |
References lout::container::typed::List< T >::clear(), and rectangleList.
Referenced by dw::fltk::FltkViewBase::draw().
| lout::container::typed::Iterator<Rectangle> dw::core::Region::rectangles | ( | ) | [inline] |
References lout::container::typed::Collection< T >::iterator(), and rectangleList.
Referenced by dw::fltk::FltkViewBase::draw().
Referenced by addRectangle(), clear(), rectangles(), Region(), and ~Region().
1.5.9