summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/geometry.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/include/libcamera/geometry.h b/include/libcamera/geometry.h
index d217cfd5..f3088d33 100644
--- a/include/libcamera/geometry.h
+++ b/include/libcamera/geometry.h
@@ -13,21 +13,6 @@
namespace libcamera {
-struct Rectangle {
- int x;
- int y;
- unsigned int width;
- unsigned int height;
-
- const std::string toString() const;
-};
-
-bool operator==(const Rectangle &lhs, const Rectangle &rhs);
-static inline bool operator!=(const Rectangle &lhs, const Rectangle &rhs)
-{
- return !(lhs == rhs);
-}
-
struct Size {
Size()
: Size(0, 0)
@@ -141,6 +126,21 @@ static inline bool operator!=(const SizeRange &lhs, const SizeRange &rhs)
return !(lhs == rhs);
}
+struct Rectangle {
+ int x;
+ int y;
+ unsigned int width;
+ unsigned int height;
+
+ const std::string toString() const;
+};
+
+bool operator==(const Rectangle &lhs, const Rectangle &rhs);
+static inline bool operator!=(const Rectangle &lhs, const Rectangle &rhs)
+{
+ return !(lhs == rhs);
+}
+
} /* namespace libcamera */
#endif /* __LIBCAMERA_GEOMETRY_H__ */