33 lines
686 B
C++
33 lines
686 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 struct monitor_info_s
|
|
{
|
|
int direction;
|
|
float rotation[16];
|
|
int switch_time;
|
|
} monitor_info_t;
|
|
protected:
|
|
LogoBox m_logobox;
|
|
int m_num_monitors;
|
|
monitor_info_t *m_monitor_info;
|
|
unsigned int m_last_switch_ticks;
|
|
unsigned int m_last_ticks;
|
|
};
|
|
|
|
#endif /* SPIN_H */
|
|
|