summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-05-23 15:37:00 +0300
committerTor Lillqvist <tml@collabora.com>2018-05-23 15:41:37 +0200
commit8adebf346e24c6131fe33165d1530319c959c352 (patch)
treec16cd93e84d9ec148c02f917dca7ee4662365bdc
parent7581730b2795a58d4fe6868e2f61572a91fde293 (diff)
Add debug output operator<< for SalFrameGeometry
Change-Id: Ifb855eb3fa6d58c06cf145523dbb0735b2ca5a0b Reviewed-on: https://gerrit.libreoffice.org/54702 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tor Lillqvist <tml@collabora.com>
-rw-r--r--vcl/inc/salgeom.hxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/vcl/inc/salgeom.hxx b/vcl/inc/salgeom.hxx
index 0321e99ab368..6adeb7a6937c 100644
--- a/vcl/inc/salgeom.hxx
+++ b/vcl/inc/salgeom.hxx
@@ -20,6 +20,8 @@
#ifndef INCLUDED_VCL_INC_SALGEOM_HXX
#define INCLUDED_VCL_INC_SALGEOM_HXX
+#include <iostream>
+
#include <vcl/dllapi.h>
struct SalFrameGeometry {
@@ -47,6 +49,14 @@ struct SalFrameGeometry {
{}
};
+inline std::ostream &operator <<(std::ostream& s, const SalFrameGeometry& rGeom)
+{
+ s << rGeom.nWidth << "x" << rGeom.nHeight << "@(" << rGeom.nX << "," << rGeom.nY << "):{"
+ << rGeom.nLeftDecoration << "," << rGeom.nTopDecoration << "," << rGeom.nRightDecoration << "," << rGeom.nBottomDecoration << "}";
+
+ return s;
+}
+
/// Interface used to share logic on sizing between
/// SalVirtualDevices and SalFrames
class VCL_PLUGIN_PUBLIC SalGeometryProvider {