summaryrefslogtreecommitdiffstats
path: root/gfx
diff options
context:
space:
mode:
Diffstat (limited to 'gfx')
-rw-r--r--gfx/rect.cc4
-rw-r--r--gfx/rect.h4
-rw-r--r--gfx/size.cc4
-rw-r--r--gfx/size.h4
4 files changed, 8 insertions, 8 deletions
diff --git a/gfx/rect.cc b/gfx/rect.cc
index 1d9be1f..e9c666c 100644
--- a/gfx/rect.cc
+++ b/gfx/rect.cc
@@ -241,8 +241,8 @@ bool Rect::SharesEdgeWith(const gfx::Rect& rect) const {
(y() == rect.bottom() || bottom() == rect.y()));
}
-} // namespace gfx
-
std::ostream& operator<<(std::ostream& out, const gfx::Rect& r) {
return out << r.origin() << " " << r.size();
}
+
+} // namespace gfx
diff --git a/gfx/rect.h b/gfx/rect.h
index a07fffa..e305b9b 100644
--- a/gfx/rect.h
+++ b/gfx/rect.h
@@ -173,8 +173,8 @@ class Rect {
gfx::Size size_;
};
-} // namespace gfx
-
std::ostream& operator<<(std::ostream& out, const gfx::Rect& r);
+} // namespace gfx
+
#endif // GFX_RECT_H_
diff --git a/gfx/size.cc b/gfx/size.cc
index e39a2d7..6e5528e 100644
--- a/gfx/size.cc
+++ b/gfx/size.cc
@@ -63,8 +63,8 @@ void Size::set_height(int height) {
height_ = height;
}
-} // namespace gfx
-
std::ostream& operator<<(std::ostream& out, const gfx::Size& s) {
return out << s.width() << "x" << s.height();
}
+
+} // namespace gfx
diff --git a/gfx/size.h b/gfx/size.h
index bb45032..99896f8 100644
--- a/gfx/size.h
+++ b/gfx/size.h
@@ -75,8 +75,8 @@ class Size {
int height_;
};
-} // namespace gfx
-
std::ostream& operator<<(std::ostream& out, const gfx::Size& s);
+} // namespace gfx
+
#endif // GFX_SIZE_H_