summaryrefslogtreecommitdiff
path: root/slideshow/source/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-14 15:42:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-15 08:33:37 +0200
commitdd803c6e2551ed3f49d2275f7020e4987773adb6 (patch)
tree2551adc307a45c105185ee42aeaecf1013b41a26 /slideshow/source/inc
parentb3204c541ee422923f069b869b2f08cd02f8f6a7 (diff)
convert ReverseMethod to scoped enum
and drop unused enumerators REVERSEMETHOD_INVERT_SWEEP REVERSEMETHOD_SUBTRACT_POLYGON Change-Id: I11b52d4b32e5f766dfa3bcd69b9c636f4106b7b4
Diffstat (limited to 'slideshow/source/inc')
-rw-r--r--slideshow/source/inc/transitioninfo.hxx26
1 files changed, 8 insertions, 18 deletions
diff --git a/slideshow/source/inc/transitioninfo.hxx b/slideshow/source/inc/transitioninfo.hxx
index 5268e7fc9a8d..a1b43541b330 100644
--- a/slideshow/source/inc/transitioninfo.hxx
+++ b/slideshow/source/inc/transitioninfo.hxx
@@ -75,36 +75,26 @@ struct TransitionInfo
the target in the outer area (instead of in the inner
area, as in normal mode).
*/
- enum ReverseMethod
+ enum class ReverseMethod
{
/** Ignore direction attribute altogether
(if it has no sensible meaning for this transition)
*/
- REVERSEMETHOD_IGNORE,
+ Ignore,
- /** Revert by changing the direction of the parameter sweep
- (from 1->0 instead of 0->1)
+ /** Combination of ReverseMethod::InvertSweep and
+ ReverseMethod::SubtractPolygon.
*/
- REVERSEMETHOD_INVERT_SWEEP,
-
- /** Revert by subtracting the generated polygon from the
- target bound rect
- */
- REVERSEMETHOD_SUBTRACT_POLYGON,
-
- /** Combination of REVERSEMETHOD_INVERT_SWEEP and
- REVERSEMETHOD_SUBTRACT_POLYGON.
- */
- REVERSEMETHOD_SUBTRACT_AND_INVERT,
+ SubtractAndInvert,
/// Reverse by rotating polygon 180 degrees
- REVERSEMETHOD_ROTATE_180,
+ Rotate180,
/// Reverse by flipping polygon at the y (!) axis
- REVERSEMETHOD_FLIP_X,
+ FlipX,
/// Reverse by flipping polygon at the x (!) axis
- REVERSEMETHOD_FLIP_Y
+ FlipY
};
/** Indicating the method to use when transition