Krita Source Code Documentation
Loading...
Searching...
No Matches
KisScreenInformationAdapter.h File Reference
#include "kritaui_export.h"
#include <QScopedPointer>
#include <KisSurfaceColorSpaceWrapper.h>

Go to the source code of this file.

Classes

class  KisScreenInformationAdapter
 
struct  KisScreenInformationAdapter::ScreenInfo
 

Functions

QDebug operator<< (QDebug, const KisScreenInformationAdapter::ScreenInfo &)
 

Function Documentation

◆ operator<<()

QDebug operator<< ( QDebug dbg,
const KisScreenInformationAdapter::ScreenInfo & info )

Definition at line 262 of file KisScreenInformationAdapter.cpp.

263{
264 QDebugStateSaver saver(dbg);
265
266 if (info.isValid()) {
267 dbg.nospace() << "ScreenInfo("
268 << "screen " << info.screen
269 << ", bitsPerColor " << info.bitsPerColor
270 << ", colorSpace " << info.colorSpace
271 << ", redPrimary " << "(" << info.redPrimary[0] << ", " << info.redPrimary[1] << ")"
272 << ", greenPrimary " << "(" << info.greenPrimary[0] << ", " << info.greenPrimary[1] << ")"
273 << ", bluePrimary " << "(" << info.bluePrimary[0] << ", " << info.bluePrimary[1] << ")"
274 << ", whitePoint " << "(" << info.whitePoint[0] << ", " << info.whitePoint[1] << ")"
275 << ", minLuminance " << info.minLuminance
276 << ", maxLuminance " << info.maxLuminance
277 << ", maxFullFrameLuminance " << info.maxFullFrameLuminance
278 << ')';
279 } else {
280 dbg.nospace() << "ScreenInfo(<invalid>)";
281 }
282
283 return dbg;
284}

References KisScreenInformationAdapter::ScreenInfo::bitsPerColor, KisScreenInformationAdapter::ScreenInfo::bluePrimary, KisScreenInformationAdapter::ScreenInfo::colorSpace, KisScreenInformationAdapter::ScreenInfo::greenPrimary, KisScreenInformationAdapter::ScreenInfo::isValid(), KisScreenInformationAdapter::ScreenInfo::maxFullFrameLuminance, KisScreenInformationAdapter::ScreenInfo::maxLuminance, KisScreenInformationAdapter::ScreenInfo::minLuminance, KisScreenInformationAdapter::ScreenInfo::redPrimary, KisScreenInformationAdapter::ScreenInfo::screen, and KisScreenInformationAdapter::ScreenInfo::whitePoint.