Krita Source Code Documentation
Loading...
Searching...
No Matches
ImageScalingParameters Struct Reference

Public Member Functions

bool operator< (const ImageScalingParameters &other) const
 

Public Attributes

Qt::AspectRatioMode aspectRatioMode
 
QSize size
 
Qt::TransformationMode transformationMode
 

Detailed Description

Definition at line 20 of file KisResourceThumbnailCache.cpp.

Member Function Documentation

◆ operator<()

bool ImageScalingParameters::operator< ( const ImageScalingParameters & other) const
inline

Definition at line 25 of file KisResourceThumbnailCache.cpp.

26 {
27 if (size != other.size) {
28 if (size.width() != other.size.width()) {
29 return size.width() < other.size.width();
30 } else {
31 return size.height() < other.size.height();
32 }
33 } else if (aspectRatioMode != other.aspectRatioMode) {
34 return aspectRatioMode < other.aspectRatioMode;
35 } else if (transformationMode != other.transformationMode) {
37 } else {
38 // they're the same
39 return false;
40 }
41 }
Qt::TransformationMode transformationMode

References aspectRatioMode, size, and transformationMode.

Member Data Documentation

◆ aspectRatioMode

Qt::AspectRatioMode ImageScalingParameters::aspectRatioMode

Definition at line 22 of file KisResourceThumbnailCache.cpp.

◆ size

QSize ImageScalingParameters::size

Definition at line 21 of file KisResourceThumbnailCache.cpp.

◆ transformationMode

Qt::TransformationMode ImageScalingParameters::transformationMode

Definition at line 23 of file KisResourceThumbnailCache.cpp.


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