From 8adebf346e24c6131fe33165d1530319c959c352 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 23 May 2018 15:37:00 +0300 Subject: Add debug output operator<< for SalFrameGeometry Change-Id: Ifb855eb3fa6d58c06cf145523dbb0735b2ca5a0b Reviewed-on: https://gerrit.libreoffice.org/54702 Tested-by: Jenkins Reviewed-by: Tor Lillqvist --- vcl/inc/salgeom.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 + #include 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 { -- cgit