29 lines
580 B
C++
29 lines
580 B
C++
|
|
#ifndef SPIN_H
|
|
#define SPIN_H
|
|
|
|
#include "LogoBox.h"
|
|
#include "Mode.h"
|
|
#include "GnomeScreensaver.h"
|
|
|
|
class Spin : public Mode
|
|
{
|
|
public:
|
|
Spin();
|
|
~Spin();
|
|
bool expose (GnomeScreensaver & gs);
|
|
bool configure (GnomeScreensaver & gs);
|
|
bool update (GnomeScreensaver & gs);
|
|
typedef float matrix_t[16];
|
|
protected:
|
|
LogoBox m_logobox;
|
|
int * m_directions;
|
|
matrix_t * m_rotations;
|
|
int m_num_monitors;
|
|
unsigned int m_last_switch_ticks;
|
|
unsigned int m_last_ticks;
|
|
};
|
|
|
|
#endif /* SPIN_H */
|
|
|