#include <pixmap_provider.h>
Public Methods | |
| PixmapProvider (Theme const &theme) | |
| ~PixmapProvider () | |
| bool | hasBackgroundImage () const |
| QPixmap const & | backgroundImage () const |
| QColor | backgroundColor () const |
| QPixmap | createPixmap (int index, int size) const |
| QPoint | offset (int index, int size) const |
| bool | smoothScaling () const |
| void | setSmoothScaling (bool smooth_scaling) |
Private Methods | |
| QPixmap | convertToPixmap (PieceImage const &image) const |
| QPixmap | scale (QPixmap const &pixmap, int size) const |
Private Attributes | |
| Theme const & | m_theme |
| QPixmap | m_background_image |
| QColor | m_background_color |
| std::vector< QPixmap *> | m_pixmaps |
| bool | m_smooth_scaling |
|
|
Constructs the object.
|
|
|
Releases the created pixmaps.
|
|
|
Returns the background color.
|
|
|
Returns the background image.
|
|
|
Converts an immage to a pixmap.
|
|
|||||||||||||||
|
Returns the given piece image in the desired size.
|
|
|
Returns true, if we have a background image.
|
|
|||||||||||||||
|
Returns the offset of the given piece image in the desired size.
|
|
|||||||||||||||
|
Scales the pixmap.
|
|
|
|
|
|
Returns true, if we use smooth scaling.
|
|
|
The background color to use.
|
|
|
The background image to use.
|
|
|
The vector of the pixmaps;.
|
|
|
If true, we use smooth scaling.
|
|
|
The theme to use.
|
1.2.9.1 written by Dimitri van Heesch,
© 1997-2001