GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
CaptureOptions.h
1 #pragma once
2 #include <memory>
3 #include <vector>
4 
5 #include "GDCore/String.h"
6 
7 namespace gd {
8 
9 class GD_CORE_API Screenshot {
10  public:
11  Screenshot();
12  virtual ~Screenshot() {};
13 
14  void SetDelayTimeInSeconds(int delayTimeInMs_) {
15  delayTimeInMs = delayTimeInMs_;
16  }
17  int GetDelayTimeInSeconds() const { return delayTimeInMs; }
18 
19  void SetSignedUrl(const gd::String& signedUrl_) { signedUrl = signedUrl_; }
20  const gd::String& GetSignedUrl() const { return signedUrl; }
21 
22  void SetPublicUrl(const gd::String& publicUrl_) { publicUrl = publicUrl_; }
23  const gd::String& GetPublicUrl() const { return publicUrl; }
24 
25  private:
26  int delayTimeInMs = 0;
27  gd::String signedUrl;
28  gd::String publicUrl;
29 };
30 
31 class GD_CORE_API CaptureOptions {
32  public:
34  virtual ~CaptureOptions() {};
35 
36  bool IsEmpty() const { return screenshots.empty(); }
37 
38  void AddScreenshot(const Screenshot& screenshot) {
39  screenshots.push_back(screenshot);
40  }
41 
42  const std::vector<Screenshot>& GetScreenshots() const { return screenshots; }
43 
44  void ClearScreenshots() { screenshots.clear(); }
45 
46  private:
47  std::vector<Screenshot> screenshots;
48 };
49 
50 } // namespace gd
Definition: CaptureOptions.h:31
Definition: CaptureOptions.h:9
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24