10#ifndef SCREENSHOT_TYPE_H
11#define SCREENSHOT_TYPE_H
31 ProviderManager<ScreenshotProvider>::Register(*
this);
37 ProviderManager<ScreenshotProvider>::Unregister(*
this);
const std::string_view name
const std::string_view description
constexpr PriorityBaseProvider(std::string_view name, std::string_view description, int priority)
~ScreenshotProvider() override
Unregister ourselves from the screenshot providers.
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.