OpenTTD Source 20250220-master-gf89924a727
ScreenshotProvider Class Referenceabstract

Base interface for a SoundLoader implementation. More...

#include <screenshot_type.h>

Inheritance diagram for ScreenshotProvider:
PriorityBaseProvider< ScreenshotProvider > BaseProvider< T > ScreenshotProvider_Bmp ScreenshotProvider_Pcx ScreenshotProvider_Png

Public Member Functions

 ScreenshotProvider (std::string_view name, std::string_view description, int priority)
 
virtual bool MakeImage (const char *name, ScreenshotCallback *callb, void *userdata, uint w, uint h, int pixelformat, const Colour *palette)=0
 
- Public Member Functions inherited from PriorityBaseProvider< ScreenshotProvider >
constexpr PriorityBaseProvider (std::string_view name, std::string_view description, int priority)
 
int GetPriority () const
 
- Public Member Functions inherited from BaseProvider< T >
constexpr BaseProvider (std::string_view name, std::string_view description)
 
std::string_view GetName () const
 
std::string_view GetDescription () const
 

Additional Inherited Members

- Protected Attributes inherited from PriorityBaseProvider< ScreenshotProvider >
const int priority
 
- Protected Attributes inherited from BaseProvider< T >
const std::string_view name
 
const std::string_view description
 

Detailed Description

Base interface for a SoundLoader implementation.

Definition at line 27 of file screenshot_type.h.

Constructor & Destructor Documentation

◆ ScreenshotProvider()

ScreenshotProvider::ScreenshotProvider ( std::string_view  name,
std::string_view  description,
int  priority 
)
inline

Definition at line 29 of file screenshot_type.h.

◆ ~ScreenshotProvider()

virtual ScreenshotProvider::~ScreenshotProvider ( )
inlinevirtual

Definition at line 34 of file screenshot_type.h.


The documentation for this class was generated from the following file: