blob: a98d14df43f1b593fab5127413205d6cc1bc0e6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef _BACKGROUND_H
#define _BACKGROUND_H
#include <tqstring.h>
class QPixmap;
class QImage;
class Background
{
public:
Background();
~Background();
bool tile;
bool load(const TQString &file, short width, short height);
void sizeChanged(int newW, int newH);
void scaleModeChanged();
TQPixmap *getBackground() {return backgroundPixmap;}
TQPixmap *getShadowBackground() {return backgroundShadowPixmap;}
private:
void sourceToBackground();
int tileMode; // scale background = 0, tile = 1
TQImage *backgroundImage;
TQImage *sourceImage;
TQPixmap *backgroundPixmap;
TQPixmap *backgroundShadowPixmap;
TQString filename;
short w;
short h;
};
#endif
|