Krita Source Code Documentation
Loading...
Searching...
No Matches
KisScreenInformationAdapter.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2019 Dmitry Kazakov <dimula73@gmail.com>
3
*
4
* SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
7
#ifndef KISSCREENINFORMATIONADAPTER_H
8
#define KISSCREENINFORMATIONADAPTER_H
9
10
#include "kritaui_export.h"
11
#include <QScopedPointer>
12
#include <
KisSurfaceColorSpaceWrapper.h
>
13
14
class
QScreen;
15
class
QOpenGLContext;
16
17
class
KRITAUI_EXPORT
KisScreenInformationAdapter
18
{
19
public
:
20
struct
ScreenInfo
{
21
QScreen *screen = 0;
22
int
bitsPerColor = 0;
23
KisSurfaceColorSpaceWrapper
colorSpace
;
24
qreal redPrimary[2] = {0, 0};
25
qreal greenPrimary[2] = {0, 0};
26
qreal bluePrimary[2] = {0, 0};
27
qreal whitePoint[2] = {0, 0};
28
qreal minLuminance = 0;
29
qreal maxLuminance = 0;
30
qreal maxFullFrameLuminance = 0;
31
32
bool
isValid
()
const
{
33
return
screen;
34
}
35
};
36
37
public
:
38
KisScreenInformationAdapter
(QOpenGLContext *context);
39
~KisScreenInformationAdapter
();
40
41
bool
isValid()
const
;
42
QString errorString()
const
;
43
44
ScreenInfo infoForScreen(QScreen *screen)
const
;
45
46
47
private
:
48
struct
Private
;
49
const
QScopedPointer<Private>
m_d
;
50
};
51
52
QDebug
operator<<
(QDebug,
const
KisScreenInformationAdapter::ScreenInfo
&);
53
54
#endif
// KISSCREENINFORMATIONADAPTER_H
operator<<
QDebug operator<<(QDebug, const KisScreenInformationAdapter::ScreenInfo &)
Definition
KisScreenInformationAdapter.cpp:262
KisSurfaceColorSpaceWrapper.h
KisScreenInformationAdapter
Definition
KisScreenInformationAdapter.h:18
KisScreenInformationAdapter::m_d
const QScopedPointer< Private > m_d
Definition
KisScreenInformationAdapter.h:49
KisSurfaceColorSpaceWrapper
Definition
KisSurfaceColorSpaceWrapper.h:20
Private
Definition
SvgTransformParser.cpp:20
KisScreenInformationAdapter::ScreenInfo
Definition
KisScreenInformationAdapter.h:20
KisScreenInformationAdapter::ScreenInfo::isValid
bool isValid() const
Definition
KisScreenInformationAdapter.h:32
KisScreenInformationAdapter::ScreenInfo::colorSpace
KisSurfaceColorSpaceWrapper colorSpace
Definition
KisScreenInformationAdapter.h:23
libs
ui
opengl
KisScreenInformationAdapter.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52