summaryrefslogtreecommitdiff
path: root/wrapper.h
blob: fadf4bf91bfd25dd341f46c36fc8b7651cbfc21c (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef WRAPPER_H
#define WRAPPER_H

#include "screensaver_internal.h"

class DisplayWrapper
{
public:
	DisplayWrapper( CompDisplay* d );
	virtual ~DisplayWrapper() {}
	
	virtual void handleEvent( XEvent *event );
	
protected:
	CompDisplay* d;
	ScreenSaverDisplay* sd;
};

class ScreenWrapper
{
public:
	ScreenWrapper( CompScreen* s );
	virtual ~ScreenWrapper() {}

	virtual void getRotation( float* x, float* v, float *progress );
	virtual void preparePaintScreen( int msSinceLastPaint );
	virtual void donePaintScreen();
	virtual void paintTransformedOutput(	const ScreenPaintAttrib* sAttrib, \
											const CompTransform* transform, Region region, \
											CompOutput *output, unsigned int mask);
	virtual Bool paintOutput(	const ScreenPaintAttrib *sAttrib, \
								const CompTransform* transform, Region region, \
								CompOutput* output, unsigned int mask);
	virtual void paintScreen (CompOutput   *outputs,
				  int          numOutputs,
				  unsigned int mask);
						
protected:
	CompScreen* s;
	ScreenSaverScreen* ss;
};

class WindowWrapper
{
public:
	WindowWrapper( CompWindow* w );
	virtual ~WindowWrapper() {}
	virtual Bool paintWindow(	const WindowPaintAttrib* attrib, \
								const CompTransform* transform, Region region, unsigned int mask);
protected:
	CompWindow* w;
	ScreenSaverWindow* sw;
};

#endif