MythTV  master
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
ImageProperties Class Reference

#include <mythuiimage.h>

Collaboration diagram for ImageProperties:
Collaboration graph

Public Member Functions

 ImageProperties ()=default
 ImageProperties (const ImageProperties &other)
 ~ImageProperties ()
ImagePropertiesoperator= (const ImageProperties &other)
void SetMaskImage (MythImage *image)
void SetMaskImageFilename (const QString &filename)
QString GetMaskImageFilename ()
QRect GetMaskImageRect (void)
QImage GetMaskImageSubset (QRect imageArea)

Public Attributes

QString m_filename
MythRect m_cropRect {0,0,0,0}
QSize m_forceSize {0,0}
bool m_preserveAspect {false}
bool m_isGreyscale {false}
bool m_isReflected {false}
bool m_isMasked {false}
bool m_isOriented {false}
ReflectAxis m_reflectAxis {ReflectAxis::Vertical}
int m_reflectScale {100}
int m_reflectLength {100}
int m_reflectShear {0}
int m_reflectSpacing {0}
int m_orientation {1}
bool m_isThemeImage {false}

Private Member Functions

void Init (void)
void Copy (const ImageProperties &other)

Private Attributes

MythImagem_maskImage {nullptr}
QString m_maskImageFilename

Detailed Description

Definition at line 23 of file mythuiimage.h.

Constructor & Destructor Documentation

◆ ImageProperties() [1/2]

ImageProperties::ImageProperties ( )

◆ ImageProperties() [2/2]

ImageProperties::ImageProperties ( const ImageProperties other)

Definition at line 42 of file mythuiimage.cpp.

◆ ~ImageProperties()

ImageProperties::~ImageProperties ( )

Definition at line 57 of file mythuiimage.cpp.

Member Function Documentation

◆ operator=()

ImageProperties & ImageProperties::operator= ( const ImageProperties other)

Definition at line 47 of file mythuiimage.cpp.

◆ SetMaskImage()

void ImageProperties::SetMaskImage ( MythImage image)

Definition at line 92 of file mythuiimage.cpp.

Referenced by Copy(), and ImageLoader::LoadImage().

◆ SetMaskImageFilename()

void ImageProperties::SetMaskImageFilename ( const QString &  filename)

Definition at line 33 of file mythuiimage.h.

Referenced by MythUIImage::ParseElement().

◆ GetMaskImageFilename()

QString ImageProperties::GetMaskImageFilename ( )

Definition at line 37 of file mythuiimage.h.

Referenced by ImageLoader::LoadImage().

◆ GetMaskImageRect()

QRect ImageProperties::GetMaskImageRect ( void  )

Definition at line 41 of file mythuiimage.h.

Referenced by ImageLoader::LoadImage().

◆ GetMaskImageSubset()

QImage ImageProperties::GetMaskImageSubset ( QRect  imageArea)

Definition at line 48 of file mythuiimage.h.

Referenced by ImageLoader::LoadImage().

◆ Init()

void ImageProperties::Init ( void  )

◆ Copy()

void ImageProperties::Copy ( const ImageProperties other)

Definition at line 66 of file mythuiimage.cpp.

Referenced by ImageProperties(), and operator=().

Member Data Documentation

◆ m_filename

QString ImageProperties::m_filename

◆ m_cropRect

MythRect ImageProperties::m_cropRect {0,0,0,0}

◆ m_forceSize

QSize ImageProperties::m_forceSize {0,0}

◆ m_preserveAspect

bool ImageProperties::m_preserveAspect {false}

◆ m_isGreyscale

bool ImageProperties::m_isGreyscale {false}

◆ m_isReflected

bool ImageProperties::m_isReflected {false}

◆ m_isMasked

bool ImageProperties::m_isMasked {false}

◆ m_isOriented

bool ImageProperties::m_isOriented {false}

◆ m_reflectAxis

ReflectAxis ImageProperties::m_reflectAxis {ReflectAxis::Vertical}

◆ m_reflectScale

int ImageProperties::m_reflectScale {100}

◆ m_reflectLength

int ImageProperties::m_reflectLength {100}

◆ m_reflectShear

int ImageProperties::m_reflectShear {0}

◆ m_reflectSpacing

int ImageProperties::m_reflectSpacing {0}

◆ m_orientation

int ImageProperties::m_orientation {1}

◆ m_isThemeImage

bool ImageProperties::m_isThemeImage {false}

◆ m_maskImage

MythImage* ImageProperties::m_maskImage {nullptr}

◆ m_maskImageFilename

QString ImageProperties::m_maskImageFilename

Definition at line 84 of file mythuiimage.h.

Referenced by Copy(), GetMaskImageFilename(), and SetMaskImageFilename().

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