add 'frame' argument to gui.screenshot

This commit is contained in:
MihailRis 2026-09-17 22:07:18 +03:00
parent 5ae4c1b27b
commit 69edfc8c8a
7 changed files with 41 additions and 1 deletions

View file

@ -4,6 +4,7 @@
class Framebuffer;
class UiDocument;
class ImageData;
namespace gui {
class Frame final : public Container {
@ -18,6 +19,8 @@ namespace gui {
const std::string& getOutputTexture() const;
const std::string& getFrameId() const;
std::unique_ptr<ImageData> takeScreenshot() const;
private:
std::string frameId;
std::unique_ptr<Framebuffer> fbo;