Changeset View
Changeset View
Standalone View
Standalone View
output.h
Show All 39 Lines | |||||
40 | class OutputManagementInterface; | 40 | class OutputManagementInterface; | ||
41 | class XdgOutputInterface; | 41 | class XdgOutputInterface; | ||
42 | } | 42 | } | ||
43 | } | 43 | } | ||
44 | 44 | | |||
45 | namespace KWin | 45 | namespace KWin | ||
46 | { | 46 | { | ||
47 | 47 | | |||
48 | namespace ColorCorrect { | ||||
49 | struct GammaRamp; | ||||
50 | } | ||||
51 | | ||||
48 | /** | 52 | /** | ||
49 | * Generic output representation in a Wayland session | 53 | * Generic output representation in a Wayland session | ||
50 | **/ | 54 | **/ | ||
51 | class KWIN_EXPORT Output : public QObject | 55 | class KWIN_EXPORT Output : public QObject | ||
52 | { | 56 | { | ||
53 | Q_OBJECT | 57 | Q_OBJECT | ||
54 | public: | 58 | public: | ||
55 | virtual ~Output(); | 59 | virtual ~Output(); | ||
Show All 28 Lines | |||||
84 | */ | 88 | */ | ||
85 | void setChanges(KWayland::Server::OutputChangeSet *changeset); | 89 | void setChanges(KWayland::Server::OutputChangeSet *changeset); | ||
86 | virtual bool commitChanges() { return false; } | 90 | virtual bool commitChanges() { return false; } | ||
87 | 91 | | |||
88 | QPointer<KWayland::Server::OutputInterface> waylandOutput() const { | 92 | QPointer<KWayland::Server::OutputInterface> waylandOutput() const { | ||
89 | return m_waylandOutput; | 93 | return m_waylandOutput; | ||
90 | } | 94 | } | ||
91 | 95 | | |||
96 | virtual int getGammaRampSize() const { | ||||
97 | return 0; | ||||
98 | } | ||||
99 | virtual bool setGammaRamp(ColorCorrect::GammaRamp &gamma) { | ||||
100 | Q_UNUSED(gamma); | ||||
101 | return false; | ||||
102 | } | ||||
103 | | ||||
92 | protected: | 104 | protected: | ||
93 | QPointer<KWayland::Server::OutputChangeSet> changes() const { | 105 | QPointer<KWayland::Server::OutputChangeSet> changes() const { | ||
94 | return m_changeset; | 106 | return m_changeset; | ||
95 | } | 107 | } | ||
96 | 108 | | |||
97 | void setWaylandOutput(KWayland::Server::OutputInterface *set); | 109 | void setWaylandOutput(KWayland::Server::OutputInterface *set); | ||
98 | 110 | | |||
99 | QPointer<KWayland::Server::XdgOutputInterface> xdgOutput() const { | 111 | QPointer<KWayland::Server::XdgOutputInterface> xdgOutput() const { | ||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |