Kaydet (Commit) 8adebf34 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Add debug output operator<< for SalFrameGeometry

Change-Id: Ifb855eb3fa6d58c06cf145523dbb0735b2ca5a0b
Reviewed-on: https://gerrit.libreoffice.org/54702Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarTor Lillqvist <tml@collabora.com>
üst 7581730b
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment