pitrix/include/Effect.h

24 lines
561 B
C
Raw Normal View History

#ifndef Effect_H
#define Effect_H
#include "Window.h"
#include "config.h"
#include <Arduino.h>
class Effect {
2019-06-07 04:24:16 +00:00
protected:
Window* window = Window::getFullWindow(); // Use a full screen window per default.
2019-06-07 04:24:16 +00:00
public:
virtual ~Effect() {};
virtual void loop() = 0;
boolean supports_window = false;
virtual boolean can_be_shown_with_clock() { return false; };
virtual boolean clock_as_mask() { return false; };
void setWindow(Window* win) {
2019-06-07 04:24:16 +00:00
window = win;
};
virtual void apply_option(String key, String value) {};
};
#endif