┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/private/kpixmapmodifier.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kitemviews/private/kpixmapmodifier.h')
-rw-r--r--src/kitemviews/private/kpixmapmodifier.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/kitemviews/private/kpixmapmodifier.h b/src/kitemviews/private/kpixmapmodifier.h
index e8ca11ac1..e48abf515 100644
--- a/src/kitemviews/private/kpixmapmodifier.h
+++ b/src/kitemviews/private/kpixmapmodifier.h
@@ -28,8 +28,26 @@ class QSize;
class DOLPHIN_EXPORT KPixmapModifier
{
public:
+ /**
+ * Scale a pixmap to a given size.
+ * @arg scaledSize is assumed to be the scaled to the same device pixel ratio as the source pixmap
+ * @arg scaledSize is in device pixels
+ */
static void scale(QPixmap& pixmap, const QSize& scaledSize);
+
+ /**
+ * Resize and paint a frame round an icon
+ * @arg scaledSize is in device-independent pixels
+ * The returned image will be scaled by the application devicePixelRatio
+ */
static void applyFrame(QPixmap& icon, const QSize& scaledSize);
+
+ /**
+ * return and paint a frame round an icon
+ * @arg framesize is in device-independent pixels
+ * @return is in device-indepent pixels
+ */
+
static QSize sizeInsideFrame(const QSize& frameSize);
};