* New crop guide: square center, closes #6342 * Turn `CropParams::guide` into an `enum` This saves recurring string comparisons. Co-authored-by: Flössie <floessie.mail@gmail.com>
This commit is contained in:
@@ -831,15 +831,28 @@ struct SHParams {
|
||||
* Parameters of the cropping
|
||||
*/
|
||||
struct CropParams {
|
||||
bool enabled;
|
||||
int x;
|
||||
int y;
|
||||
int w;
|
||||
int h;
|
||||
bool fixratio;
|
||||
Glib::ustring ratio;
|
||||
Glib::ustring orientation;
|
||||
Glib::ustring guide;
|
||||
enum class Guide {
|
||||
NONE,
|
||||
FRAME,
|
||||
RULE_OF_THIRDS,
|
||||
RULE_OF_DIAGONALS,
|
||||
HARMONIC_MEANS,
|
||||
GRID,
|
||||
GOLDEN_TRIANGLE_1,
|
||||
GOLDEN_TRIANGLE_2,
|
||||
EPASSPORT,
|
||||
CENTERED_SQUARE
|
||||
};
|
||||
|
||||
bool enabled;
|
||||
int x;
|
||||
int y;
|
||||
int w;
|
||||
int h;
|
||||
bool fixratio;
|
||||
Glib::ustring ratio;
|
||||
Glib::ustring orientation;
|
||||
Guide guide;
|
||||
|
||||
CropParams();
|
||||
|
||||
|
Reference in New Issue
Block a user