Extract common code out into kdm_for_screen()
[dcpomatic.git] / src / lib / ratio.h
index 42f29458ab883deead8b9ea4f826d3eefa6da5d1..40f596ab8ea6dd1f3d0aa6a9c9bb6e7b69d4428d 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2013 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2013-2018 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
@@ -25,6 +25,9 @@
 #include <boost/utility.hpp>
 #include <vector>
 
+/** @class Ratio
+ *  @brief Description of an image ratio.
+ */
 class Ratio : public boost::noncopyable
 {
 public:
@@ -46,6 +49,10 @@ public:
 
        std::string container_nickname () const;
 
+       bool used_for_container () const {
+               return static_cast<bool> (_container_nickname);
+       }
+
        std::string isdcf_name () const {
                return _isdcf_name;
        }