Changeset View
Changeset View
Standalone View
Standalone View
abstract_output.h
Show All 21 Lines | |||||
22 | 22 | | |||
23 | #include <kwin_export.h> | 23 | #include <kwin_export.h> | ||
24 | 24 | | |||
25 | #include <QObject> | 25 | #include <QObject> | ||
26 | #include <QRect> | 26 | #include <QRect> | ||
27 | #include <QSize> | 27 | #include <QSize> | ||
28 | #include <QVector> | 28 | #include <QVector> | ||
29 | 29 | | |||
30 | namespace KWayland | ||||
31 | { | ||||
32 | namespace Server | ||||
33 | { | ||||
34 | class OutputChangeSet; | ||||
35 | } | ||||
36 | } | ||||
37 | | ||||
30 | namespace KWin | 38 | namespace KWin | ||
31 | { | 39 | { | ||
32 | 40 | | |||
33 | class KWIN_EXPORT GammaRamp | 41 | class KWIN_EXPORT GammaRamp | ||
34 | { | 42 | { | ||
35 | public: | 43 | public: | ||
36 | GammaRamp(uint32_t size); | 44 | GammaRamp(uint32_t size); | ||
37 | 45 | | |||
▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | 102 | public: | |||
96 | ~AbstractOutput() override; | 104 | ~AbstractOutput() override; | ||
97 | 105 | | |||
98 | /** | 106 | /** | ||
99 | * Returns the human readable name of this output. | 107 | * Returns the human readable name of this output. | ||
100 | */ | 108 | */ | ||
101 | virtual QString name() const = 0; | 109 | virtual QString name() const = 0; | ||
102 | 110 | | |||
103 | /** | 111 | /** | ||
112 | * Returns the identifying uuid of this output. | ||||
113 | * | ||||
114 | * Default implementation returns an empty byte array. | ||||
115 | */ | ||||
116 | virtual QByteArray uuid() const; | ||||
117 | | ||||
118 | /** | ||||
119 | * Enable or disable the output. | ||||
120 | * | ||||
121 | * Default implementation does nothing | ||||
122 | */ | ||||
123 | virtual void setEnabled(bool enable); | ||||
124 | | ||||
125 | /** | ||||
126 | * This sets the changes and tests them against the specific output. | ||||
127 | * | ||||
128 | * Default implementation does nothing | ||||
129 | */ | ||||
130 | virtual void applyChanges(const KWayland::Server::OutputChangeSet *changeSet); | ||||
131 | | ||||
132 | /** | ||||
104 | * Returns geometry of this output in device independent pixels. | 133 | * Returns geometry of this output in device independent pixels. | ||
105 | */ | 134 | */ | ||
106 | virtual QRect geometry() const = 0; | 135 | virtual QRect geometry() const = 0; | ||
107 | 136 | | |||
108 | /** | 137 | /** | ||
109 | * Returns the approximate vertical refresh rate of this output, in mHz. | 138 | * Returns the approximate vertical refresh rate of this output, in mHz. | ||
110 | */ | 139 | */ | ||
111 | virtual int refreshRate() const = 0; | 140 | virtual int refreshRate() const = 0; | ||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |