[Libreoffice-commits] core.git: vcl/inc

Tor Lillqvist tml at collabora.com
Wed May 23 13:42:01 UTC 2018


 vcl/inc/salgeom.hxx |   10 ++++++++++
 1 file changed, 10 insertions(+)

New commits:
commit 8adebf346e24c6131fe33165d1530319c959c352
Author: Tor Lillqvist <tml at collabora.com>
Date:   Wed May 23 15:37:00 2018 +0300

    Add debug output operator<< for SalFrameGeometry
    
    Change-Id: Ifb855eb3fa6d58c06cf145523dbb0735b2ca5a0b
    Reviewed-on: https://gerrit.libreoffice.org/54702
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Tor Lillqvist <tml at collabora.com>

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 {


More information about the Libreoffice-commits mailing list