added concrete screensaver

This commit is contained in:
Bob Polis
2020-10-26 23:03:12 +01:00
parent 751d079225
commit c52d223f39
2 changed files with 47 additions and 0 deletions

23
RectSaver.hpp Normal file
View File

@ -0,0 +1,23 @@
//
// RectSaver.hpp
// screensaver
//
// Created by Bob Polis at 2020-10-26
// Copyright (c) 2020 SwiftCoder. All rights reserved.
//
#ifndef _RectSaver_H_
#define _RectSaver_H_
#include "ScreensaverPlugin.hpp"
class RectSaver : public ScreensaverPlugin {
public:
RectSaver(cairo_t* context, const cairo_rectangle_t& rect);
~RectSaver() = default;
void draw_frame() override;
int fps() const override;
};
#endif // _RectSaver_H_