ASAPCabinetFE
 
Loading...
Searching...
No Matches
screenshot_capture.h
Go to the documentation of this file.
1
10#ifndef SCREENSHOT_CAPTURE_H
11#define SCREENSHOT_CAPTURE_H
12
13#include <string>
14#include <vector>
15#include <SDL2/SDL.h>
16
27public:
35 ScreenshotCapture(const std::string& exeDir);
36
48 void captureAllScreenshots(const std::string& playfieldImage, const std::string& backglassImage,
49 const std::string& dmdImage, SDL_Window* window);
50
59 bool isWindowVisible(const std::string& title);
60
61private:
62 std::string exeDir_;
63
72 void captureScreenshot(const std::string& windowName, const std::string& outputPath);
73
82 std::string shellEscape(const std::string& str);
83};
84
85#endif // SCREENSHOT_CAPTURE_H
Captures screenshots of specific windows.
Definition screenshot_capture.h:26
bool isWindowVisible(const std::string &title)
Checks if a window is visible.
Definition screenshot_capture.cpp:107
void captureAllScreenshots(const std::string &playfieldImage, const std::string &backglassImage, const std::string &dmdImage, SDL_Window *window)
Captures screenshots for all specified windows.
Definition screenshot_capture.cpp:15