diff options
-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 { |