[773] | 1 | // |
---|
| 2 | // "$Id: TiledImage.h 4303 2005-05-01 03:33:52Z spitzak $" |
---|
| 3 | // |
---|
| 4 | // A tiled image completely fills the bounding box passed to it with |
---|
| 5 | // replications of the internal Image passed to it. |
---|
| 6 | // |
---|
| 7 | // Copyright 1998-2003 by Bill Spitzak and others. |
---|
| 8 | // |
---|
| 9 | // This library is free software; you can redistribute it and/or |
---|
| 10 | // modify it under the terms of the GNU Library General Public |
---|
| 11 | // License as published by the Free Software Foundation; either |
---|
| 12 | // version 2 of the License, or (at your option) any later version. |
---|
| 13 | // |
---|
| 14 | // This library is distributed in the hope that it will be useful, |
---|
| 15 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 16 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
| 17 | // Library General Public License for more details. |
---|
| 18 | // |
---|
| 19 | // You should have received a copy of the GNU Library General Public |
---|
| 20 | // License along with this library; if not, write to the Free Software |
---|
| 21 | // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
---|
| 22 | // USA. |
---|
| 23 | // |
---|
| 24 | // Please report all bugs and problems to "fltk-bugs@fltk.org". |
---|
| 25 | // |
---|
| 26 | |
---|
| 27 | #ifndef fltk_TiledImage_h |
---|
| 28 | #define fltk_TiledImage_h |
---|
| 29 | |
---|
| 30 | #include "Symbol.h" |
---|
| 31 | |
---|
| 32 | namespace fltk { |
---|
| 33 | |
---|
| 34 | class FL_API TiledImage : public Symbol { |
---|
| 35 | protected: |
---|
| 36 | const Symbol* image_; |
---|
| 37 | public: |
---|
| 38 | TiledImage(Symbol *i) : Symbol(0), image_(i) {} |
---|
| 39 | const Symbol* image() const {return image_;} |
---|
| 40 | void image(const Symbol* i) {image_ = i;} |
---|
| 41 | void _measure(int& w, int& h) const; |
---|
| 42 | void _draw(const Rectangle&) const; |
---|
| 43 | void inset(Rectangle&) const; |
---|
| 44 | }; |
---|
| 45 | |
---|
| 46 | } |
---|
| 47 | #endif |
---|
| 48 | |
---|
| 49 | // |
---|
| 50 | // End of "$Id: TiledImage.h 4303 2005-05-01 03:33:52Z spitzak $" |
---|
| 51 | // |
---|