Public Member Functions | |
void | _draw (const Rectangle &) const |
void | _measure (int &w, int &h) const |
void | image (const Symbol *i) |
const Symbol * | image () const |
TiledImage (Symbol *i) | |
Protected Attributes | |
const Symbol * | image_ |
TiledImage::TiledImage | ( | Symbol * | i | ) | [inline] |
A pointer to the image must be provided to the constructor. If it is null then the TiledImage draws nothing.
void TiledImage::_measure | ( | int & | w, | |
int & | h | |||
) | const [virtual] |
Returns w and h unchanged, indicating that it can draw any size of rectangle, with no preference.
Reimplemented from fltk::Symbol.
void TiledImage::_draw | ( | const Rectangle & | r | ) | const [virtual] |
Repeatedly draws the image to fill the area, putting the top-left corner at x,y. This checks the current clip region and does minimal drawing of only the visible portions of the image.
Implements fltk::Symbol.
References fltk::Symbol::draw(), fltk::Rectangle::empty(), fltk::Rectangle::h(), fltk::intersect_with_clip(), fltk::Symbol::measure(), fltk::pop_clip(), fltk::push_clip(), fltk::Rectangle::w(), fltk::Rectangle::x(), and fltk::Rectangle::y().