implement feature request #1489 (custom crop ratio by holding shift while resizing the crop area)

This commit is contained in:
Alberto Griggio
2017-04-10 21:14:45 +02:00
parent 14f544fcc2
commit 7a25641139
4 changed files with 50 additions and 48 deletions

View File

@@ -69,14 +69,14 @@ public:
void writeOptions ();
void cropMoved (int &x, int &y, int &w, int &h);
void cropWidth1Resized (int &x, int &y, int &w, int &h);
void cropWidth2Resized (int &x, int &y, int &w, int &h);
void cropHeight1Resized (int &x, int &y, int &w, int &h);
void cropHeight2Resized (int &x, int &y, int &w, int &h);
void cropTopLeftResized (int &x, int &y, int &w, int &h);
void cropTopRightResized (int &x, int &y, int &w, int &h);
void cropBottomLeftResized (int &x, int &y, int &w, int &h);
void cropBottomRightResized (int &x, int &y, int &w, int &h);
void cropWidth1Resized (int &x, int &y, int &w, int &h, float custom_ratio=0.f);
void cropWidth2Resized (int &x, int &y, int &w, int &h, float custom_ratio=0.f);
void cropHeight1Resized (int &x, int &y, int &w, int &h, float custom_ratio=0.f);
void cropHeight2Resized (int &x, int &y, int &w, int &h, float custom_ratio=0.f);
void cropTopLeftResized (int &x, int &y, int &w, int &h, float custom_ratio=0.f);
void cropTopRightResized (int &x, int &y, int &w, int &h, float custom_ratio=0.f);
void cropBottomLeftResized (int &x, int &y, int &w, int &h, float custom_ratio=0.f);
void cropBottomRightResized (int &x, int &y, int &w, int &h, float custom_ratio=0.f);
void cropInit (int &x, int &y, int &w, int &h);
void cropResized (int &x, int &y, int& x2, int& y2);
void cropManipReady ();