ScreenTranslator/src/capture/capturer.h

27 lines
437 B
C
Raw Normal View History

2020-02-21 00:45:53 +07:00
#pragma once
#include "stfwd.h"
#include <vector>
class Capturer
{
public:
2020-03-21 17:03:58 +07:00
Capturer(Manager &manager, const Settings &settings);
2020-02-21 00:45:53 +07:00
void capture();
void repeatCapture();
2020-03-21 17:03:58 +07:00
void updateSettings();
2020-02-21 00:45:53 +07:00
void captured(const TaskPtr &task);
void canceled();
private:
void showOverlays(bool capturePixmap);
void hideOverlays();
Manager &manager_;
2020-03-21 17:03:58 +07:00
const Settings &settings_;
2020-03-21 19:16:57 +07:00
std::vector<CaptureAreaSelector *> selectors_;
2020-02-21 00:45:53 +07:00
};