24#include <koIconChooser.h>
27#include <koffice_export.h>
31class KARBONBASE_EXPORT VPattern : public KoIconItem
35 VPattern( const TQString &tilename );
37 unsigned char *pixels();
38 unsigned int tileWidth() const;
39 unsigned int tileHeight() const;
41 KoPoint origin() const { return m_origin; }
42 void setOrigin( const KoPoint &origin ) { m_origin = origin; }
44 KoPoint vector() const { return m_vector; }
45 void setVector( const KoPoint &vector ) { m_vector = vector; }
47 void load( const TQString &tilename );
49 void save( TQDomElement& element ) const;
50 void load( const TQDomElement& element );
52 void transform( const TQWMatrix& m );
55 TQPixmap& pixmap() const ;
56 TQPixmap& thumbPixmap() const;
58 bool isValid() const { return m_valid; }
60 TQString tilename() const { return m_tilename; }
68 TQPixmap m_pixmapThumb;
|