Public Member Functions | |
| TiledImage (Symbol *i) | |
| const Symbol * | image () const |
| void | image (const Symbol *i) |
| void | _measure (int &w, int &h) const |
| void | _draw (const Rectangle &) const |
| void | inset (Rectangle &) const |
Protected Attributes | |
| const Symbol * | image_ |
|
|
A pointer to the image must be provided to the constructor. If it is null then the TiledImage draws nothing. |
|
|
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 Symbol. |
|
||||||||||||
|
Returns w and h unchanged, indicating that it can draw any size of rectangle, with no preference. Reimplemented from Symbol. |
©2006 Bill Spitzak and others.