10#ifndef SCREENSHOT_TYPE_H
11#define SCREENSHOT_TYPE_H
27class ScreenshotProvider :
public PriorityBaseProvider<ScreenshotProvider> {
29 ScreenshotProvider(std::string_view name, std::string_view description,
int priority) : PriorityBaseProvider<ScreenshotProvider>(name, description, priority)
31 ProviderManager<ScreenshotProvider>::Register(*
this);
34 ~ScreenshotProvider()
override
36 ProviderManager<ScreenshotProvider>::Unregister(*
this);
49 virtual bool MakeImage(std::string_view name,
const ScreenshotCallback &callb, uint w, uint h,
int pixelformat,
const Colour *palette)
const = 0;
virtual bool MakeImage(std::string_view name, const ScreenshotCallback &callb, uint w, uint h, int pixelformat, const Colour *palette) const =0
Create and write an image to a file.
Types related to the graphics and/or input devices.
Definition of the ProviderManager.
std::function< void(void *buf, uint y, uint pitch, uint n)> ScreenshotCallback
Callback function signature for generating lines of pixel data to be written to the screenshot file.