Files
slide/src/imagestructs.h
Alfred Reynolds eac73d618b - Remove _t postfix from struct defns
- Remove inline header function definitions
- Change assorted functions to return structs rather than modifying an argument
2021-08-05 19:50:07 +12:00

28 lines
654 B
C++

#ifndef IMAGESTRUCTS_H
#define IMAGESTRUCTS_H
#include <string>
// possible aspect ratios of an image
enum ImageAspect { ImageAspect_Landscape = 0, ImageAspect_Portrait, ImageAspect_Any, ImageAspect_Monitor /* match monitors aspect */ };
// options to consider when displaying an image
struct ImageDisplayOptions
{
ImageAspect onlyAspect = ImageAspect_Any;
bool fitAspectAxisToWindow = false;
};
// details of a particular image
struct ImageDetails
{
int width = 0;
int height = 0;
int rotation = 0;
ImageAspect aspect = ImageAspect_Any;
std::string filename;
ImageDisplayOptions options;
};
#endif // IMAGESTRUCTS_H