summaryrefslogtreecommitdiff
path: root/libopie2/opiemm/oimagescrollview.h
Side-by-side diff
Diffstat (limited to 'libopie2/opiemm/oimagescrollview.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiemm/oimagescrollview.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libopie2/opiemm/oimagescrollview.h b/libopie2/opiemm/oimagescrollview.h
index 94fddb6..01a2d56 100644
--- a/libopie2/opiemm/oimagescrollview.h
+++ b/libopie2/opiemm/oimagescrollview.h
@@ -79,24 +79,37 @@ public:
virtual void setAutoRotate(bool how);
/**
* set if the image should be scaled to the size of the viewport if larger(!)
*
* if autoscaling is set when loading a jpeg image, it will use a feature of
* jpeg lib to load the image scaled to display size. If switch of later the
* image will reloaded.
*
* @param how true - display image scaled down otherwise not
*/
virtual void setAutoScale(bool how);
/**
+ * set if the image should be scaled to the size of the viewport if larger(!)
+ * and/or rotate to best fit. You avoid double repainting when you want to switch
+ * booth values.
+ *
+ * if autoscaling is set when loading a jpeg image, it will use a feature of
+ * jpeg lib to load the image scaled to display size. If switch of later the
+ * image will reloaded.
+ *
+ * @param scale true - display image scaled down otherwise not
+ * @param rotate true - the image will rotate for best fit
+ */
+ virtual void setAutoScaleRotate(bool scale, bool rotate);
+ /**
* set if there should be displayed a small zoomer widget at the right bottom of
* the view when the image is larger than the viewport.
*
* @param how true - display zoomer
*/
virtual void setShowZoomer(bool how);
/**
* return the current value of the autorotate flag.
*/
virtual bool AutoRotate()const;
/**