OpenTTD Source 20250312-master-gcdcc6b491d
ScreenshotProvider_Png Class Reference
Inheritance diagram for ScreenshotProvider_Png:
ScreenshotProvider PriorityBaseProvider< ScreenshotProvider > BaseProvider< T >

Public Member Functions

bool MakeImage (const char *name, ScreenshotCallback *callb, void *userdata, uint w, uint h, int pixelformat, const Colour *palette) override
 
- Public Member Functions inherited from ScreenshotProvider
 ScreenshotProvider (std::string_view name, std::string_view description, int priority)
 
- 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
 

Static Private Member Functions

static void PNGAPI png_my_error (png_structp png_ptr, png_const_charp message)
 
static void PNGAPI png_my_warning (png_structp png_ptr, png_const_charp message)
 

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

Definition at line 28 of file screenshot_png.cpp.

Constructor & Destructor Documentation

◆ ScreenshotProvider_Png()

ScreenshotProvider_Png::ScreenshotProvider_Png ( )
inline

Definition at line 30 of file screenshot_png.cpp.

Member Function Documentation

◆ MakeImage()

bool ScreenshotProvider_Png::MakeImage ( const char *  name,
ScreenshotCallback callb,
void *  userdata,
uint  w,
uint  h,
int  pixelformat,
const Colour *  palette 
)
inlineoverridevirtual

Implements ScreenshotProvider.

Definition at line 32 of file screenshot_png.cpp.

◆ png_my_error()

static void PNGAPI ScreenshotProvider_Png::png_my_error ( png_structp  png_ptr,
png_const_charp  message 
)
inlinestaticprivate

Definition at line 169 of file screenshot_png.cpp.

◆ png_my_warning()

static void PNGAPI ScreenshotProvider_Png::png_my_warning ( png_structp  png_ptr,
png_const_charp  message 
)
inlinestaticprivate

Definition at line 175 of file screenshot_png.cpp.


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