Kaydet (Commit) 1c0ef28f authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Add logging output operators for CGPoint and CGSize

Change-Id: I04ce457f002cfc0fdf3ab741a389082614035b17
üst a72e3ed8
......@@ -40,6 +40,8 @@ CFStringRef CreateCFString( const OUString& );
NSString* CreateNSString( const OUString& );
std::ostream &operator <<(std::ostream& s, CGRect &rRect);
std::ostream &operator <<(std::ostream& s, CGPoint &rPoint);
std::ostream &operator <<(std::ostream& s, CGSize &rSize);
#endif // INCLUDED_QUARTZ_UTILS_HXX
......
......@@ -72,7 +72,27 @@ std::ostream &operator <<(std::ostream& s, CGRect &rRect)
#ifndef SAL_LOG_INFO
(void) rRect;
#else
s << (int) rRect.size.width << "x" << (int) rRect.size.height << "@(" << (int) rRect.origin.x << "," << (int) rRect.origin.y << ")";
s << rRect.size << "@" << rRect.origin;
#endif
return s;
}
std::ostream &operator <<(std::ostream& s, CGPoint &rPoint)
{
#ifndef SAL_LOG_INFO
(void) rPoint;
#else
s << "(" << rPoint.x << "," << rPoint.y << ")";
#endif
return s;
}
std::ostream &operator <<(std::ostream& s, CGSize &rSize)
{
#ifndef SAL_LOG_INFO
(void) rSize;
#else
s << rSize.width << "x" << rSize.height;
#endif
return s;
}
......
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