diff options
author | Tor Lillqvist <tml@collabora.com> | 2018-05-23 15:37:00 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2018-05-23 15:41:37 +0200 |
commit | 8adebf346e24c6131fe33165d1530319c959c352 (patch) | |
tree | c16cd93e84d9ec148c02f917dca7ee4662365bdc /vcl | |
parent | 7581730b2795a58d4fe6868e2f61572a91fde293 (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>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/salgeom.hxx | 10 |
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 { |