};
#endif
-
-/* default min and max zoom */
-#define PR_ZOOM_MIN (-32.0)
-#define PR_ZOOM_MAX 32.0
+namespace
+{
/* distance to drag mouse to disable image flip */
-enum {
- PR_DRAG_SCROLL_THRESHHOLD = 4
-};
+constexpr gint PR_DRAG_SCROLL_THRESHHOLD = 4;
/* increase pan rate when holding down shift */
-enum {
- PR_PAN_SHIFT_MULTIPLIER = 6
-};
+constexpr gint PR_PAN_SHIFT_MULTIPLIER = 6;
+
+} // namespace
+
+/* default min and max zoom */
+#define PR_ZOOM_MIN (-32.0)
+#define PR_ZOOM_MAX 32.0
/* scroller config */
enum {