TiledImage Class Reference

Inherits Symbol.

List of all members.

Public Member Functions

 TiledImage (Symbol *i)
const Symbolimage () 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 Symbolimage_


Detailed Description

Draws the image supplied to it's constructor repeatedly to cover the area provided to draw(). Clips the images as necessary to fit them in the rectangle.


Constructor & Destructor Documentation

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.


Member Function Documentation

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 Symbol.

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 Symbol.


The documentation for this class was generated from the following files:
Sun Jan 7 00:55:18 2007. FLTK ©2006 Bill Spitzak and others.
Permission is granted to reproduce this manual or any portion for any purpose, provided this copyright and permission notice are preserved.