ScreenTranslator/src/capture/capturer.h

28 lines
436 B
C
Raw Normal View History

2020-02-21 00:45:53 +07:00
#pragma once
#include "stfwd.h"
2020-03-22 18:32:51 +07:00
#include <QPixmap>
2020-02-21 00:45:53 +07:00
class Capturer
{
public:
2020-03-21 17:03:58 +07:00
Capturer(Manager &manager, const Settings &settings);
~Capturer();
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
2020-03-22 18:44:35 +07:00
void selected(const CaptureArea &area);
2020-02-21 00:45:53 +07:00
void canceled();
private:
void updatePixmap();
2020-02-21 00:45:53 +07:00
Manager &manager_;
2020-03-21 17:03:58 +07:00
const Settings &settings_;
2020-03-22 18:32:51 +07:00
QPixmap pixmap_;
std::unique_ptr<CaptureAreaSelector> selector_;
2020-02-21 00:45:53 +07:00
};